Commit 9bd0693f by Dányi Bence

webui: add edit share button

parent d3355a06
...@@ -78,12 +78,15 @@ ...@@ -78,12 +78,15 @@
<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.type}} ({{i.get_running}}/{{i.instance_limit}}) {{i.type}}
<a href="#" class="edit" data-id="{{i.id}}">
<img src="/static/icons/pencil.png" alt="{% trans "Edit" %}" title="{% trans "Edit" %}" />
</a>
{% csrf_token %} {% csrf_token %}
<input type="submit" class="template-unshare" value="{% trans "Delete" %}" style="float: right"/> <input type="submit" class="template-unshare" value="{% trans "Delete" %}" style="float: right"/>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
<li class="description"> <li class="description{% if not i.description %} empty{% endif %}">
{% if i.description %} {% if i.description %}
{{i.description}} {{i.description}}
{% else %} {% else %}
......
...@@ -16,12 +16,15 @@ ...@@ -16,12 +16,15 @@
<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.type}} ({{i.get_running}}/{{i.instance_limit}}) {{i.type}}
<a href="#" class="edit" data-id="{{i.id}}">
<img src="/static/icons/pencil.png" alt="{% trans "Edit" %}" title="{% trans "Edit" %}" />
</a>
{% csrf_token %} {% csrf_token %}
<input class="template-unshare" type="submit" value="{% trans "Delete" %}" style="float: right"/> <input class="template-unshare" type="submit" value="{% trans "Delete" %}" style="float: right"/>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
<li class="description"> <li class="description{% if not i.description %} empty{% endif %}">
{% if i.description %} {% if i.description %}
{{i.description}} {{i.description}}
{% else %} {% else %}
......
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