Commit 3019fd42 by Dányi Bence

webui: more simple template share display

parent 4b4d4733
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<li class="wm" id="t{{t.id }}"> <li class="wm" id="t{{t.id }}">
<div class="summary {% if t.state == 'NEW' or t.state == 'SAVING'%}unfinished{% endif %}"> <div class="summary {% if t.state == 'NEW' or t.state == 'SAVING'%}unfinished{% endif %}">
<div class="name">{{t.name}}</div> <div class="name">{{t.name}}</div>
<div class="status">{{t.state}}</div> <div class="status">{{t.state}}</div>
<div class="actions"> <div class="actions">
{% if t.state == 'READY' %} {% if t.state == 'READY' %}
...@@ -36,10 +35,9 @@ ...@@ -36,10 +35,9 @@
</div> </div>
<form action="/vm/unshare/{{i.id}}/" method="post"> <form action="/vm/unshare/{{i.id}}/" method="post">
<span title="{{i.name}}">{{i.name|truncatechars:20}}</span> <span title="{{i.name}}">{{i.name|truncatechars:20}}</span>
({{i.get_running}}/{{i.instance_limit}} = {{i.get_instance_pc}}%) ({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %} {% csrf_token %}
<input type="submit" value="{% trans "Delete" %}" style="float: right"/> <input class="unshare" type="submit" value="{% trans "Delete" %}" style="float: right"/>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
...@@ -127,8 +125,7 @@ ...@@ -127,8 +125,7 @@
</div> </div>
<form action="/vm/unshare/{{i.id}}/" method="post"> <form action="/vm/unshare/{{i.id}}/" method="post">
<span title="{{i.name}}">{{i.name|truncatechars:20}}</span> <span title="{{i.name}}">{{i.name|truncatechars:20}}</span>
({{i.get_running}}/{{i.instance_limit}} = {{i.get_instance_pc}}%) ({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %} {% csrf_token %}
<input type="submit" value="{% trans "Delete" %}" style="float: right"/> <input type="submit" value="{% trans "Delete" %}" style="float: right"/>
</form> </form>
......
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