root / snf-astakos-app / astakos / im / templates / im / astakosgroup_form_demo.html @ 8c804c12
History | View | Annotate | Download (4.3 kB)
1 |
{% extends "im/account_base.html" %} |
---|---|
2 |
|
3 |
{% load filters %} |
4 |
{% block headjs %} |
5 |
{{ block.super }} |
6 |
<script src="{{ IM_STATIC_URL }}js/quotas.js"></script> |
7 |
{% endblock %} |
8 |
{% block page.body %} |
9 |
|
10 |
|
11 |
<form action="" method="post" class="withlabels quotas-form">{% csrf_token %} |
12 |
|
13 |
<fieldset>
|
14 |
<legend>
|
15 |
1. CREATE GROUP |
16 |
<span class="info"> |
17 |
<em>more info</em> |
18 |
<span>Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text</span> |
19 |
</span>
|
20 |
</legend>
|
21 |
|
22 |
{% include "im/form_render.html" %} |
23 |
|
24 |
<div class="double-checks"> |
25 |
<label>Max users per group</label> |
26 |
<div class="form-row"> |
27 |
<p class="clearfix"> |
28 |
<label for="members_unlimited">Unlimited</label> |
29 |
<input type="checkbox" id="members_unlimited" name="members_unlimited" class="unlimited" checked="checked"> |
30 |
</p>
|
31 |
</div>
|
32 |
<div class="form-row"> |
33 |
<p class="clearfix"> |
34 |
<label for="members_limited">Limited</label> |
35 |
<input type="checkbox" id="members_limited" name="members_limited" class="limited"> |
36 |
<input type="text" id="members_uplimit" name="members_uplimit" /> |
37 |
|
38 |
</p>
|
39 |
</div>
|
40 |
|
41 |
</div>
|
42 |
</fieldset>
|
43 |
|
44 |
<fieldset id="icons"> |
45 |
<legend>
|
46 |
2. CHOOSE RESOURCES |
47 |
<span class="info"> |
48 |
<em>more info</em> |
49 |
<span>Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text Help Text</span> |
50 |
</span>
|
51 |
</legend>
|
52 |
|
53 |
{% with resource_catalog|lookup:'resources' as resources %} |
54 |
{% with resource_catalog|lookup:'groups' as groups %} |
55 |
<ul class="clearfix"> |
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 |
<input type="hidden" name="{{ 'is_selected_'|add:g }}" id="{{ 'id_is_selected_'|add:g }}" value="0"> |
61 |
<p class="msg">{{ group_info.help_text }}</p> |
62 |
</li>
|
63 |
{% endwith %} |
64 |
{% endfor %} |
65 |
</ul>
|
66 |
|
67 |
</fieldset>
|
68 |
|
69 |
<div class="foo"> |
70 |
|
71 |
</div>
|
72 |
<div class="not-foo"> |
73 |
{% for g, rs in groups.items %} |
74 |
|
75 |
<div class="group {{'group_'|add:g}}" id="{{ g }}"> |
76 |
<a href="#icons" class="delete">X remove resource</a> |
77 |
{% for r in rs %} |
78 |
{% with resource_presentation|lookup:r as resource_info %} |
79 |
{% with resources|lookup:r as resource%} |
80 |
<fieldset class="quota storage"> |
81 |
<legend>
|
82 |
{{ r|get_value_after_dot|capfirst }} |
83 |
<span class="info"> |
84 |
<em>more info</em> |
85 |
<span>{{ resource_info.help_text }}</span> |
86 |
</span>
|
87 |
</legend>
|
88 |
<!-- <div class="form-row">
|
89 |
<p class="clearfix">
|
90 |
<label for="num_storage">Total storage</label>
|
91 |
<input type="text" name="num_storage">
|
92 |
<span class="extra-img"> </span>
|
93 |
<span class="info"><em>more info</em><span>Help Text</span></span>
|
94 |
</p>
|
95 |
</div>-->
|
96 |
<div class="double-checks"> |
97 |
<label>Max {{ r|get_value_after_dot }}{% if not resource.unit %}s {% endif %} per user</label> |
98 |
<div class="form-row"> |
99 |
<p class="clearfix"> |
100 |
<label for="{{r|add:'_unlimited'}}">Unlimited</label> |
101 |
<input type="checkbox" id="{{'id_'|add:r|add:'_unlimited'}}" name="{{r|add:'_unlimited'}}" class="unlimited" checked="checked"> |
102 |
</p>
|
103 |
</div>
|
104 |
<div class="form-row"> |
105 |
<p class="clearfix"> |
106 |
<label for="{{r|add:'_limited'}}">Limited</label> |
107 |
<input type="checkbox" id="id_storage_per_user_limited" name="{{r|add:'_limited'}}" class="limited"> |
108 |
<input type="text" id="{{'id_'|add:r|add:'_uplimit'}}" name="{{r|add:'_uplimit'}}"/> |
109 |
</p>
|
110 |
</div>
|
111 |
|
112 |
</div>
|
113 |
</fieldset>
|
114 |
{% endwith %} |
115 |
{% endwith %} |
116 |
{% endfor %} |
117 |
</div>
|
118 |
|
119 |
{% endfor %} |
120 |
</div>
|
121 |
{% endwith %} |
122 |
{% endwith %} |
123 |
|
124 |
<div class="form-row submit"> |
125 |
<input type="submit" value="VIEW REQUEST SUMMARY" class="submit altcol" autocomplete="off"> |
126 |
</div>
|
127 |
</form>
|
128 |
|
129 |
<script>
|
130 |
|
131 |
</script>
|
132 |
|
133 |
{% endblock %} |