Commit 4b45fd18 by Danyi Bence

new-wm interface improved

parent 2d7ee0b5
...@@ -15,12 +15,26 @@ ...@@ -15,12 +15,26 @@
</li> </li>
<li id="new-wm" style="display: none"> <li id="new-wm" style="display: none">
<h2>Rendelkezésre álló sablonok</h2> <h2>Rendelkezésre álló sablonok</h2>
<ul class="wm-list"> <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 %} <form method="POST" action="/vm/new/{{m.pk}}/">{% csrf_token %}
<div> <div class="summary">
<input type="submit" value="{{m.name}}" class="summary"/> {{m.name}}
<div class="actions">
<input type="submit" value="Indítás"/>
</div>
</div>
<div class="details">
<h3>
Részletek
</h3>
<ul>
<li>Rendszer: <span class="value">{{m.disk.name}}</span></li>
<li>Instance típus: <span class="value">{{m.instance_type.name}}</span></li>
<li>Memória: <span class="value">{{m.instance_type.RAM}} MiB</span></li>
<li>CPU magok: <span class="value">{{m.instance_type.CPU}}</span></li>
</ul>
</div> </div>
</form> </form>
</li> </li>
......
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