root / snf-astakos-app / astakos / im / templates / im / projects / _form_resource_field.html @ 9efd0075
History | View | Annotate | Download (2.5 kB)
1 |
{% load astakos_tags filters %} |
---|---|
2 |
<fieldset class="quota"> |
3 |
<legend>
|
4 |
{% if rinfo.is_abbreviation %} |
5 |
{{ rinfo.verbose_name|upper }} |
6 |
{% else %} |
7 |
{{ rinfo.verbose_name|capfirst }} |
8 |
{% endif %} |
9 |
<span class="info"> |
10 |
<em>more info</em> |
11 |
<span>{{ rinfo.help_text }}</span> |
12 |
</span>
|
13 |
</legend>
|
14 |
|
15 |
<div class="form-row"> |
16 |
<p class="clearfix"> |
17 |
<label for="id_{{resource}}_p_uplimit_proxy" > |
18 |
Total {{rinfo.pluralized_display_name}} |
19 |
</label>
|
20 |
|
21 |
<input type="text" |
22 |
id="id_{{resource}}_p_uplimit_proxy" |
23 |
name="{{ resource }}_p_uplimit_proxy" |
24 |
placeholder="{{ rinfo.placeholder }}" |
25 |
{% if == 'bytes' %} |
26 |
class="dehumanize" |
27 |
{% endif %} |
28 |
{% if %} |
29 |
{% with |add:'_p_uplimit' as %} |
30 |
value = "{{ request.POST|lookup:input_value }}" |
31 |
{% endwith %} |
32 |
{% else %} |
33 |
{% with =object|get_project_resource_grant_value:resource %} |
34 |
{% if %} |
35 |
value = "{{ value }}" |
36 |
{% else %} |
37 |
value = "" |
38 |
{% endif %} |
39 |
{% endwith %} |
40 |
{% endif %} |
41 |
autocomplete="off"> |
42 |
<span class="extra-img"> </span> |
43 |
<span class="info"><em>more info</em> |
44 |
<span>{{ rinfo.help_text_input_each }}</span></span> |
45 |
</p>
|
46 |
<p class="clearfix"> |
47 |
<label for="id_{{resource}}_m_uplimit_proxy" > |
48 |
Per user {{rdata.pluralized_display_name}} |
49 |
</label>
|
50 |
<input type="text" |
51 |
id="id_{{resource}}_m_uplimit_proxy" |
52 |
name="{{ resource }}_m_uplimit_proxy" |
53 |
placeholder="{{ rinfo.placeholder }}" |
54 |
{% if == 'bytes' %} |
55 |
class="dehumanize" |
56 |
{% endif %} |
57 |
{% if %} |
58 |
{% with |add:'_m_uplimit' as %} |
59 |
value = "{{ request.POST|lookup:input_value }}" |
60 |
{% endwith %} |
61 |
{% else %} |
62 |
{% with =object|get_member_resource_grant_value:resource %} |
63 |
{% if %} |
64 |
value = "{{ value }}" |
65 |
{% endif %} |
66 |
{% endwith %} |
67 |
{% endif %} |
68 |
autocomplete="off"> |
69 |
<span class="extra-img"> </span> |
70 |
<span class="info"><em>more info</em> |
71 |
<span>{{ rinfo.help_text_input_each }}</span></span> |
72 |
</p>
|
73 |
<p class="error-msg">Invalid format</p> |
74 |
<p class="msg"></p> |
75 |
</div>
|
76 |
</fieldset>
|