Commit cd5cb5cd by Dányi Bence

one: new-wm markup fixed

parent 7dae3c8d
...@@ -24,28 +24,36 @@ ...@@ -24,28 +24,36 @@
<ul class="wm-list modal"> <ul class="wm-list modal">
{% for m in templates %} {% for m in templates %}
<li class="wm"> <li class="wm">
<form method="POST" action="/vm/new/{{m.pk}}/">{% csrf_token %} <div class="summary">
<div class="summary"> <div class="quota">
<div class="name wm-on">{{m.name}}</div> <div class="used" style="width: 40%"></div>
<div class="status">
3/10
</div>
<div class="clear"></div>
</div> </div>
<div class="details"> <div class="name wm-on">{{m.name}}</div>
<h3> <div class="status">
{% trans "Details" %} 3/10
</h3> </div>
<div class="clear"></div>
</div>
<div class="details">
<div class="details-container">
<ul> <ul>
<li class="name">{% trans "System" %}: <span class="value">{{m.disk.name}}</span></li> <li class="name">{% trans "System" %}: <span class="value">{{m.disk.name}}</span></li>
<li class="type">{% trans "Size" %}: <span class="value">{{m.instance_type.name}}</span></li> <li class="type">{% trans "Size" %}: <span class="value">{{m.instance_type.name}}</span></li>
<li class="memory">{% trans "Memory" %}: <li class="memory">{% trans "Memory" %}:
<span class="value">{% blocktrans with m=m.instance_type.RAM %}{{m}} MiB{% endblocktrans %}</span></li> <span class="value">{% blocktrans with m=m.instance_type.RAM %}{{m}} MiB{% endblocktrans %}</span></li>
<li class="cpu">{% trans "CPU cores" %}: <span class="value">{{m.instance_type.CPU}}</span></li> <li class="cpu">{% trans "CPU cores" %}: <span class="value">{{m.instance_type.CPU}}</span></li>
<li>&nbsp;<span class="value"><input type="submit" value="{% trans "Launch" %}"/></span></li> <li>
&nbsp;
<span class="value">
<form method="POST" action="/vm/new/{{m.pk}}/">{% csrf_token %}
<input type="submit" value="{% trans "Launch" %}"/>
</form>
</span>
<div class="clear"></div>
</li>
</ul> </ul>
</div> </div>
</form> </div>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
......
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