Commit ef6ba3f7 by Kálmán Viktor

dashboard: trans for disk create

parent 2c4dfe47
{% load sizefieldtags %} {% load sizefieldtags %}
{% load i18n %}
<div class="vm-create-template-list"> <div class="vm-create-template-list">
{% for t in templates %} {% for t in templates %}
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
<div class="vm-create-template-details"> <div class="vm-create-template-details">
<ul> <ul>
<li> <li>
<i class="icon-gears"></i> CPU <i class="icon-gears"></i> {% trans "CPU" %}
<div class="progress pull-right"> <div class="progress pull-right">
<div class="progress-bar progress-bar-success" role="progressbar" <div class="progress-bar progress-bar-success" role="progressbar"
aria-valuenow="{{ t.num_cores }}" aria-valuemin="0" aria-valuemax="8" style="width: 80%"> aria-valuenow="{{ t.num_cores }}" aria-valuemin="0" aria-valuemax="8" style="width: 80%">
...@@ -19,7 +20,7 @@ ...@@ -19,7 +20,7 @@
</div> </div>
</li> </li>
<li> <li>
<i class="icon-ticket"></i> Memory <i class="icon-ticket"></i> {% trans "Memory" %}
<div class="progress pull-right"> <div class="progress pull-right">
<div class="progress-bar progress-bar-info" role="progressbar" <div class="progress-bar progress-bar-info" role="progressbar"
aria-valuenow="{{ t.ram_size }}" aria-valuemin="0" aria-valuemax="4096" aria-valuenow="{{ t.ram_size }}" aria-valuemin="0" aria-valuemax="4096"
...@@ -29,19 +30,20 @@ ...@@ -29,19 +30,20 @@
</div> </div>
</li> </li>
<li> <li>
<i class="icon-file"></i> Disks <i class="icon-file"></i> {% trans "Disks" %}
<span style="float: right;"> <span style="float: right; text-align: right;">
{% for d in t.disks.all %}{{ d.name }} ({{ d.size|filesize }}){% if not forloop.last %}, {% endif %}{% endfor %} {% for d in t.disks.all %}{{ d.name }} ({{ d.size|filesize }}){% if not forloop.last %}, {% endif %}{% endfor %}
</span> </span>
<div style="clear: both;"></div>
</li> </li>
<li> <li>
<i class="icon-globe"></i> Network: <i class="icon-globe"></i> {% trans "Network" %}
<span style="float: right;"> <span style="float: right;">
{% for i in t.interface_set.all %}{{ i.vlan.name }}{% if not forloop.last %}, {% endif %}{% endfor %} {% for i in t.interface_set.all %}{{ i.vlan.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
</span> </span>
</li> </li>
<li> <li>
<i class="icon-tag"></i> Típus: {{ t.lease.name }} <i class="icon-tag"></i> {% trans "Type" %}: {{ t.lease.name }}
<span style="float: right;"> <span style="float: right;">
<i class="icon-pause"></i> {{ t.lease.get_readable_suspend_time }} <i class="icon-pause"></i> {{ t.lease.get_readable_suspend_time }}
<i class="icon-remove"></i> {{ t.lease.get_readable_delete_time }} <i class="icon-remove"></i> {{ t.lease.get_readable_delete_time }}
......
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