Revision 30dd9e0e snf-astakos-app/astakos/im/templates/im/projects/projectapplication_form.html

b/snf-astakos-app/astakos/im/templates/im/projects/projectapplication_form.html
7 7
{% endblock %}	
8 8

  
9 9
{% block page.body %}
10
<!-- 
11
{{request.POST}}
12
 -->
10

  
13 11
{% with resource_catalog|populated_resource_catalog as resource_catalog%}
14 12
{% if show_form %}
15 13
<form action="?verify=1#top" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %}
......
48 46
                {% if g %}
49 47
	    		<li>
50 48
	    		    <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>
51
	    			<input type="hidden" name="proxy_{{ 'is_selected_'|add:g }}"  id="proxy_{{ 'id_is_selected_'|add:g }}" {% if g in groups %}checked="checked"{% endif %}>
52
	    			<input type="hidden" name="{{ 'is_selected_'|add:g }}"  id="{{ 'id_is_selected_'|add:g }}" {% if g in groups %}checked="checked"{% endif %}>
49
	    			<input type="hidden" name="proxy_{{ 'is_selected_'|add:g }}"  id="proxy_{{ 'id_is_selected_'|add:g }}" {% if g in groups %}value="1"{% else %}value="0"{% endif %}>
50
	    			<input type="hidden" name="{{ 'is_selected_'|add:g }}"  id="{{ 'id_is_selected_'|add:g }}" {% if g in groups %}value="1"{% else %}value="0"{% endif %}>
53 51
	                <p class="msg">{{ group_info.help_text }}</p>
54 52
	    		</li>
55 53
	    		{% endif %}
......
83 81
			    	<div class="form-row">
84 82
			    		<p class="clearfix">
85 83
			    			<label for="{{'id_'|add:rname|add:'_uplimit'}}_proxy" >
86
								Max {% if rdata.is_abbreviation %}{{ rdata.verbose_name|upper }}{% else %}{{ rdata.verbose_name }}{% endif %}{% if not rdata.unit %}s {% endif  %} per user
84
								Amount to grant per user
87 85
							</label>
88 86
			    			<input 	type="text" 
89 87
			       						id="{{'id_'|add:rname|add:'_uplimit'}}_proxy" 
......
92 90
			       						{% if rdata.unit == 'bytes' %} 
93 91
										 	class="dehumanize"
94 92
										{% endif  %}
93
										{% if request.POST %}
94
											{% with rname|add:'_uplimit' as input_value %}
95
											value = "{{ request.POST|lookup:input_value }}"
96
											{% endwith %}
97
										{% endif %}
95 98
			       						/> 
96 99
			       			<span class="extra-img">&nbsp;</span>
97
			         		<span class="info"><em>more info</em><span>Leave this field blank if you don't want to specify this resource</span></span>
100
			         		<span class="info"><em>more info</em><span>{{ rdata.help_text_input_each }}</span></span>
98 101
			         		<p class="error-msg">Invalid format</p>
99 102
			    		</p>
100 103
			    		<p class="msg"></p>

Also available in: Unified diff