Commit 23c71f57 by Dányi Bence

webui: separate template for vm-credentials

parent 05fcc028
......@@ -84,30 +84,7 @@
</div>
<div class="contentblock" id="vm-credentials">
<h2>{% trans "Login credentials" %}</h2>
<div class="content">
<table>
<tr>
<th>{% trans "Protocol" %}:</th>
<td>{{i.template.access_type|upper}}</td>
</tr>
<tr>
<th>{% trans "IP" %}:</th>
<td>{{ i.firewall_host.pub_ipv4 }}</td>
</tr>
<tr>
<th>{% trans "Port" %}:</th>
<td>{{ i.get_port}}</td>
</tr>
<tr>
<th>{% trans "Username" %}:</th>
<td>cloud</td>
</tr>
<tr>
<th>{% trans "Password" %}:</th>
<td>{{ i.pw }}</td>
</tr>
</table>
</div>
{% include "vm-credentials.html" %}
</div>
{% if i.firewall_host %}
<div class="contentblock" id="ports">
......
......@@ -20,7 +20,7 @@
</tr>
<tr>
<th>{% trans "Password" %}:</th>
<td>{{ i.pw }}</td>
<td><span id="vm-password">{{ i.pw }}</span><a id="vm-password-show" href="#">Jelszó megjelenítése</a></td>
</tr>
</table>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment