Revision ed2f0452 snf-astakos-app/astakos/im/templates/im/astakosgroup_form_demo.html
b/snf-astakos-app/astakos/im/templates/im/astakosgroup_form_demo.html | ||
---|---|---|
1 | 1 |
{% extends "im/account_base.html" %} |
2 | 2 |
|
3 | 3 |
{% load filters %} |
4 |
{% block page.body %} |
|
5 |
|
|
6 | 4 |
{% block headjs %} |
7 | 5 |
{{ block.super }} |
8 | 6 |
<script src="{{ IM_STATIC_URL }}js/quotas.js"></script> |
9 |
{% endblock %} |
|
7 |
{% endblock %} |
|
8 |
{% block page.body %} |
|
9 |
|
|
10 |
|
|
10 | 11 |
<form action="" method="post" class="withlabels quotas-form">{% csrf_token %} |
11 | 12 |
|
12 | 13 |
<fieldset> |
... | ... | |
38 | 39 |
</div> |
39 | 40 |
|
40 | 41 |
</div> |
41 |
</fieldset> |
|
42 |
</fieldset> |
|
43 |
|
|
42 | 44 |
<fieldset id="icons"> |
43 | 45 |
<legend> |
44 | 46 |
2. CHOOSE RESOURCES |
... | ... | |
51 | 53 |
{% with resource_catalog|lookup:'resources' as resources %} |
52 | 54 |
{% with resource_catalog|lookup:'groups' as groups %} |
53 | 55 |
<ul class="clearfix"> |
54 |
{% for g, rs in groups.items %} |
|
55 |
<li><a href="#{{'group_'|add:g}}" id="{{'group_'|add:g}}"><img src="/static/im/images/create-resource-vm.png" alt="vm"/></a></li> |
|
56 |
<!-- |
|
57 |
<li><a href="#storage_1" id="storage_1"><img src="/static/im/images/create-resource-storage.png" alt="storage"/></a></li> |
|
58 |
--> |
|
56 |
{% for g, rs in groups.items %} |
|
57 |
{% with resource_presentation|lookup:g as group_info %} |
|
58 |
<li> |
|
59 |
<a href="#{{ g }}" id="{{'group_'|add:g}}"><img src="/static/im/images/create-{{ g }}.png" alt="vm"/></a> |
|
60 |
<p class="msg">{{ group_info.help_text }}</p> |
|
61 |
</li> |
|
62 |
{% endwith %} |
|
59 | 63 |
{% endfor %} |
60 | 64 |
</ul> |
61 |
<!--p class="msg">if you choose CPU without selecting any VMs you must also select RAM and DISKSPACE</p--> |
|
65 |
|
|
62 | 66 |
</fieldset> |
67 |
|
|
63 | 68 |
<div class="foo"> |
64 | 69 |
|
65 | 70 |
</div> |
66 |
|
|
71 |
<div class="not-foo"> |
|
67 | 72 |
{% for g, rs in groups.items %} |
68 |
<div class="{{'group_'|add:g}}"> |
|
69 |
<a href="#icons" class="delete"><strong>X</strong> remove resource</a> |
|
73 |
|
|
74 |
<div class="group {{'group_'|add:g}}" id="{{ g }}"> |
|
75 |
<a href="#icons" class="delete">X remove resource</a> |
|
70 | 76 |
{% for r in rs %} |
77 |
{% with resource_presentation|lookup:r as resource_info %} |
|
78 |
{% with resources|lookup:r as resource%} |
|
71 | 79 |
<fieldset class="quota storage"> |
72 |
<legend>{{r|upper}}</legend> |
|
73 |
<!-- |
|
74 |
<div class="form-row"> |
|
80 |
<legend> |
|
81 |
{{ r|get_value_after_dot|capfirst }} |
|
82 |
<span class="info"> |
|
83 |
<em>more info</em> |
|
84 |
<span>{{ resource_info.help_text }}</span> |
|
85 |
</span> |
|
86 |
</legend> |
|
87 |
<!-- <div class="form-row"> |
|
75 | 88 |
<p class="clearfix"> |
76 | 89 |
<label for="num_storage">Total storage</label> |
77 | 90 |
<input type="text" name="num_storage"> |
78 | 91 |
<span class="extra-img"> </span> |
79 |
<span class="info"> |
|
80 |
<em>more info</em> |
|
81 |
<span>Help Text</span> |
|
82 |
</span> |
|
92 |
<span class="info"><em>more info</em><span>Help Text</span></span> |
|
83 | 93 |
</p> |
84 |
</div> |
|
85 |
--> |
|
86 |
<div class="double-checks"> |
|
87 |
<label>Max Storage per user</label> |
|
94 |
</div>--> |
|
95 |
<div class="double-checks"> |
|
96 |
<label>Max {{ r|get_value_after_dot }}{% if not resource.unit %}s {% endif %} per user</label> |
|
88 | 97 |
<div class="form-row"> |
89 | 98 |
<p class="clearfix"> |
90 | 99 |
<label for="{{r|add:'_unlimited'}}">Unlimited</label> |
... | ... | |
101 | 110 |
|
102 | 111 |
</div> |
103 | 112 |
</fieldset> |
113 |
{% endwith %} |
|
114 |
{% endwith %} |
|
104 | 115 |
{% endfor %} |
105 | 116 |
</div> |
106 |
{% endfor %} |
|
107 |
|
|
117 |
|
|
118 |
{% endfor %} |
|
119 |
</div> |
|
108 | 120 |
{% endwith %} |
109 | 121 |
{% endwith %} |
110 |
</div> |
|
122 |
|
|
111 | 123 |
<div class="form-row submit"> |
112 | 124 |
<input type="submit" value="SUBMIT" class="submit altcol" autocomplete="off"> |
113 | 125 |
</div> |
... | ... | |
117 | 129 |
|
118 | 130 |
</script> |
119 | 131 |
|
120 |
{% endblock %} |
|
132 |
{% endblock %} |
Also available in: Unified diff