Commit 34243b48 by Dányi Bence

webui: markup fix (commit commit hátán)

parent fc9ec538
...@@ -166,6 +166,9 @@ ...@@ -166,6 +166,9 @@
li { li {
height: 30px; height: 30px;
position: relative; position: relative;
form {
position: relative;
}
} }
} }
@placeholderColor: #555; @placeholderColor: #555;
......
...@@ -26,16 +26,15 @@ ...@@ -26,16 +26,15 @@
<ul class="shares"> <ul class="shares">
{% for i in t.myshares %} {% for i in t.myshares %}
<li> <li>
<div class="quota">
<div class="quota"> <div class="used" style="width: {{ i.get_instance_pc|unlocalize }}%"></div>
<div class="used" style="width: {{ i.get_instance_pc }}%"></div> </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}} = {{i.get_instance_pc}}%)
{% csrf_token %} {% csrf_token %}
<input type="submit" value="unshare" style="float: right"/> <input type="submit" value="{% trans "Delete" %}" style="float: right"/>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
...@@ -100,12 +99,15 @@ ...@@ -100,12 +99,15 @@
<ul class="shares"> <ul class="shares">
{% for i in t.myshares %} {% for i in t.myshares %}
<li> <li>
<div class="quota">
<div class="used" style="width: {{ i.get_instance_pc|unlocalize }}%"></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}} = {{i.get_instance_pc}}%)
{% csrf_token %} {% csrf_token %}
<input type="submit" value="unshare" style="float: right"/> <input type="submit" value="{% trans "Delete" %}" style="float: right"/>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</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