Revision 6556e514 snf-astakos-app/astakos/im/templates/im/projects/projectapplication_form.html
b/snf-astakos-app/astakos/im/templates/im/projects/projectapplication_form.html | ||
---|---|---|
9 | 9 |
|
10 | 10 |
{% block page.body %} |
11 | 11 |
<h2>CREATE PROJECT</h2> |
12 |
|
|
13 |
{% with resource_catalog|populated_resource_catalog as resource_catalog %} |
|
12 |
|
|
14 | 13 |
{% if show_form %} |
15 | 14 |
<form action="?verify=1#top" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %} |
16 | 15 |
|
... | ... | |
25 | 24 |
{% for field in form %} |
26 | 25 |
|
27 | 26 |
{% if field.name in details_fields %} |
28 |
<div class="form-row {% if field.errors|length %}with-errors{% endif %} {% if field.is_hidden %}with-hidden{% endif %}"> |
|
27 |
<div class="form-row {% if field.errors|length %}with-errors |
|
28 |
{% endif %} |
|
29 |
{% if field.is_hidden %}with-hidden{% endif %}"> |
|
29 | 30 |
{{ field.errors }} |
30 | 31 |
<p class="clearfix {% if field.blank %}required{% endif %}"> |
31 | 32 |
{{ field.label_tag }} |
... | ... | |
45 | 46 |
|
46 | 47 |
|
47 | 48 |
|
48 |
{% for g, resources in resource_catalog.get_groups_resources %} |
|
49 |
{% for rname in resources.keys %} |
|
49 |
{% for g, resources in resource_catalog %} |
|
50 |
{% for r in resources %} |
|
51 |
{% with r.str_repr as rname %} |
|
50 | 52 |
{% with object|resource_grants|lookup:rname as value %} |
51 | 53 |
<input type="hidden" id="{{'id_'|add:rname|add:'_uplimit'}}" name="{{rname|add:'_uplimit'}}" autocomplete="off" {% if value %}value="{{value}}"{% endif %} /> |
52 | 54 |
{% endwith %} |
55 |
{% endwith %} |
|
53 | 56 |
{% endfor %} |
54 | 57 |
{% endfor %} |
55 | 58 |
</fieldset> |
... | ... | |
94 | 97 |
</legend> |
95 | 98 |
<ul class="clearfix"> |
96 | 99 |
{% with object|resource_groups as groups %} |
97 |
{% for g, group_info in resource_catalog.groups.items %}
|
|
100 |
{% for g, group_info in resource_groups.items %} |
|
98 | 101 |
{% if g %} |
99 | 102 |
<li> |
100 | 103 |
<a href="#{{ g }}" id="{{'group_'|add:g}}" {% if g in groups %}class="selected"{% endif %}><img src="/static/im/images/create-{{ g }}.png" alt="vm"/></a> |
... | ... | |
111 | 114 |
|
112 | 115 |
<div class="visible"> </div> |
113 | 116 |
<div class="not-visible"> |
114 |
{% for gname, resources in resource_catalog.get_groups_resources %}
|
|
117 |
{% for gname, resources in resource_catalog %} |
|
115 | 118 |
<div class="group {{'group_'|add:gname}}" id="{{ gname }}"> |
116 | 119 |
<a href="#icons" class="delete">X remove resource</a> |
117 |
{% for rname, rdata in resources.items %} |
|
120 |
{% for rdata in resources %} |
|
121 |
{% with rdata.str_repr as rname %} |
|
118 | 122 |
<fieldset class="quota"> |
119 | 123 |
|
120 | 124 |
<legend> |
... | ... | |
155 | 159 |
<p class="msg"></p> |
156 | 160 |
</div> |
157 | 161 |
</fieldset> |
162 |
{% endwith %} |
|
158 | 163 |
{% endfor %} |
159 | 164 |
</div> |
160 | 165 |
|
... | ... | |
174 | 179 |
|
175 | 180 |
</script> |
176 | 181 |
|
177 |
{% endwith %} |
|
178 |
{% endblock %} |
|
182 |
{% endblock %} |
Also available in: Unified diff