Commit f0ffd30b by Bence Dnyi

'new wm' button added

parent 67251539
...@@ -5,13 +5,21 @@ ...@@ -5,13 +5,21 @@
<div class="boxes"> <div class="boxes">
<div class="contentblock" id="state"> <div class="contentblock" id="state">
<h2>Virtuális gépek</h2> <h2>Virtuális gépek</h2>
<div class="content"> <ul class="wm-list">
{% for m in templates %} <li id="new-wm-button" class="wm">
<form method="POST" action="/vm/new/{{m.pk}}/">{% csrf_token %} <div class="summary">
<p><input type="submit" value="{{m.name}}" class="button widebutton"/></p> <div class="name">Új gép indítása</div>
</form> <div class="clear"></div>
{% endfor %} </div>
</div> </li>
<li id="new-wm" style="display: none">
{% for m in templates %}
<form method="POST" action="/vm/new/{{m.pk}}/">{% csrf_token %}
<p><input type="submit" value="{{m.name}}" class="button widebutton"/></p>
</form>
{% endfor %}
</li>
</ul>
</div> </div>
{% include "box-vmlist.html" %} {% include "box-vmlist.html" %}
{% for box in boxes %} {% for box in boxes %}
......
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