Revision 8327782d snf-astakos-app/astakos/im/templates/im/projects/projectapplication_form.html
b/snf-astakos-app/astakos/im/templates/im/projects/projectapplication_form.html | ||
---|---|---|
6 | 6 |
<script src="{{ IM_STATIC_URL }}js/quotas.js"></script> |
7 | 7 |
{% endblock %} |
8 | 8 |
{% block page.body %} |
9 |
|
|
9 | 10 |
<form action="#top" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %} |
10 | 11 |
|
11 | 12 |
<fieldset class="with-info" id="top"> |
... | ... | |
18 | 19 |
</legend> |
19 | 20 |
|
20 | 21 |
{% include "im/form_render.html" %} |
21 |
|
|
22 |
|
|
23 |
{% for g, resources in resource_catalog.get_groups_resources %} |
|
24 |
{% for rname in resources.keys %} |
|
25 |
{% with object|resource_grants|lookup:rname as value %} |
|
26 |
<input type="hidden" id="{{'id_'|add:rname|add:'_uplimit'}}" name="{{rname|add:'_uplimit'}}" autocomplete="off" {% if value %}value="{{value}}"{% endif %}"> |
|
27 |
{% endwith %} |
|
28 |
{% endfor %} |
|
29 |
{% endfor %} |
|
22 | 30 |
</fieldset> |
23 | 31 |
|
24 | 32 |
<fieldset id="icons"> |
... | ... | |
30 | 38 |
</span> |
31 | 39 |
</legend> |
32 | 40 |
<ul class="clearfix"> |
41 |
{% with object|resource_groups as groups %} |
|
33 | 42 |
{% for g, group_info in resource_catalog.groups.items %} |
34 | 43 |
{% if g %} |
35 | 44 |
<li> |
36 |
<a href="#{{ g }}" id="{{'group_'|add:g}}"><img src="/static/im/images/create-{{ g }}.png" alt="vm"/></a>
|
|
37 |
<input type="hidden" name="proxy_{{ 'is_selected_'|add:g }}" id="proxy_{{ 'id_is_selected_'|add:g }}"> |
|
38 |
<input type="hidden" name="{{ 'is_selected_'|add:g }}" id="{{ 'id_is_selected_'|add:g }}"> |
|
45 |
<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>
|
|
46 |
<input type="hidden" name="proxy_{{ 'is_selected_'|add:g }}" id="proxy_{{ 'id_is_selected_'|add:g }}" {% if g in groups %}checked="checked"{% endif %}>
|
|
47 |
<input type="hidden" name="{{ 'is_selected_'|add:g }}" id="{{ 'id_is_selected_'|add:g }}" {% if g in groups %}checked="checked"{% endif %}>
|
|
39 | 48 |
<p class="msg">{{ group_info.help_text }}</p> |
40 | 49 |
</li> |
41 | 50 |
{% endif %} |
42 | 51 |
{% endfor %} |
52 |
{% endwith %} |
|
43 | 53 |
</ul> |
44 | 54 |
|
45 | 55 |
</fieldset> |
... | ... | |
78 | 88 |
class="dehumanize" |
79 | 89 |
{% endif %} |
80 | 90 |
/> |
81 |
<input type="hidden" name="{{rname|add:'_uplimit'}}" id="{{'id_'|add:rname|add:'_uplimit'}}" "> |
|
82 |
<span class="extra-img"> </span> |
|
91 |
<span class="extra-img"> </span> |
|
83 | 92 |
<span class="info"><em>more info</em><span>Leave this field blank if you don't want to specify this resource</span></span> |
84 | 93 |
<p class="error-msg">Invalid format</p> |
85 | 94 |
</p> |
Also available in: Unified diff