astakosgroup_form_demo.html 4.78 KB
Newer Older
Olga Brani's avatar
Olga Brani committed
1
2
{% extends "im/account_base.html" %}

Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
3
{% load filters %}
Olga Brani's avatar
Olga Brani committed
4
5
6
{% block headjs %}
	{{ block.super }}	 
	<script src="{{ IM_STATIC_URL }}js/quotas.js"></script>	
Olga Brani's avatar
Olga Brani committed
7
8
9
10
{% endblock %}	
{% block page.body %}
 
	
11
<form action="" method="post" class="withlabels quotas-form">{% csrf_token %}
Olga Brani's avatar
Olga Brani committed
12
	 
Olga Brani's avatar
Olga Brani committed
13
    <fieldset class="with-info">
Olga Brani's avatar
Olga Brani committed
14
15
16
17
18
19
20
    	<legend>
    		1. CREATE GROUP
			<span class="info"> 
		    	<em>more info</em>
		    	<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>
	    	</span>    		
    	</legend>
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
21
22
23
        
        {% include "im/form_render.html" %}
		
24
<!-- 
Olga Brani's avatar
Olga Brani committed
25
26
27
28
		<div class="double-checks">
    		<label>Max users per group</label>
    		<div class="form-row">
    			<p class="clearfix">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
29
30
    				<label for="members_unlimited">Unlimited</label>
    				<input type="checkbox" id="members_unlimited" name="members_unlimited" class="unlimited" checked="checked">
Olga Brani's avatar
Olga Brani committed
31
32
33
34
    				<span class="info"> 
				    	<em>more info</em>
				    	<span>Help Text Help Text Help Text Text Help Text Help Text</span>
			    	</span>  
Olga Brani's avatar
Olga Brani committed
35
36
37
38
    			</p>
    		</div>
    		<div class="form-row">
    			<p class="clearfix">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
39
40
41
    				<label for="members_limited">Limited</label>
    				<input type="checkbox" id="members_limited" name="members_limited" class="limited">
       				<input type="text" id="members_uplimit" name="members_uplimit" />
Olga Brani's avatar
Olga Brani committed
42
	       			  		 
Olga Brani's avatar
Olga Brani committed
43
    			</p>
Olga Brani's avatar
Olga Brani committed
44
    			
Olga Brani's avatar
Olga Brani committed
45
46
47
    		</div>
    		
    	</div> 
48
 -->
Olga Brani's avatar
Olga Brani committed
49
50
    </fieldset>     
    
Olga Brani's avatar
Olga Brani committed
51
52
53
54
55
56
57
58
    <fieldset id="icons">
    	<legend>
    		2. CHOOSE RESOURCES
    		<span class="info"> 
		    	<em>more info</em>
		    	<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>
	    	</span>    
    	</legend>
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
59
60
61

    {% with resource_catalog|lookup:'resources' as resources %}
    {% with resource_catalog|lookup:'groups' as groups %}    	
Olga Brani's avatar
Olga Brani committed
62
    	<ul class="clearfix">
Olga Brani's avatar
Olga Brani committed
63
64
65
66
            {% for g, rs in groups.items %}   
            {% with resource_presentation|lookup:g as group_info %} 		
    		<li>
    			<a href="#{{ g }}" id="{{'group_'|add:g}}"><img src="/static/im/images/create-{{ g }}.png" alt="vm"/></a>
Olga Brani's avatar
Olga Brani committed
67
    			<input type="hidden" name="{{ 'is_selected_'|add:g }}"  id="{{ 'id_is_selected_'|add:g }}" value="0">
Olga Brani's avatar
Olga Brani committed
68
69
70
    			<p class="msg">{{ group_info.help_text }}</p>
    		</li>
    		{% endwith %}
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
71
            {% endfor %}
Olga Brani's avatar
Olga Brani committed
72
    	</ul>
Olga Brani's avatar
Olga Brani committed
73
    	
Olga Brani's avatar
Olga Brani committed
74
    </fieldset>
Olga Brani's avatar
Olga Brani committed
75
   
Olga Brani's avatar
Olga Brani committed
76
    <div class="foo">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
77
78
    
    </div>
Olga Brani's avatar
Olga Brani committed
79
    <div class="not-foo">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
80
        {% for g, rs in groups.items %}
Olga Brani's avatar
Olga Brani committed
81
82
83
        
        <div class="group {{'group_'|add:g}}" id="{{ g }}">
			<a href="#icons" class="delete">X remove resource</a>	
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
84
		    {% for r in rs %}
Olga Brani's avatar
Olga Brani committed
85
86
		    {% with resource_presentation|lookup:r as resource_info %}
		    {% with resources|lookup:r as resource%}
Olga Brani's avatar
Olga Brani committed
87
		    <fieldset class="quota storage">
Olga Brani's avatar
Olga Brani committed
88
		    	<legend>
Olga Brani's avatar
Olga Brani committed
89
90
91
92
93
		    		{% if resource_info.is_abbreviation %}
		    			{{ r|get_value_after_dot|upper }}
		    		{% else %}
		    			{{ r|get_value_after_dot|capfirst }}
		    		{% endif %}
Olga Brani's avatar
Olga Brani committed
94
95
96
97
98
99
		    		<span class="info"> 
				    	<em>more info</em>
				    	<span>{{ resource_info.help_text }}</span>
			    	</span>  
		    	</legend>
<!--	    	<div class="form-row">
Olga Brani's avatar
Olga Brani committed
100
101
102
103
		    		<p class="clearfix">
		    			<label for="num_storage">Total storage</label>
		    			<input type="text" name="num_storage">
		    			<span class="extra-img">&nbsp;</span>
Olga Brani's avatar
Olga Brani committed
104
		         		<span class="info"><em>more info</em><span>Help Text</span></span>
Olga Brani's avatar
Olga Brani committed
105
		    		</p>
Olga Brani's avatar
Olga Brani committed
106
107
		    	</div>-->
 				<div class="double-checks">
Olga Brani's avatar
Olga Brani committed
108
109
110
111
112
113
		    		<label>
		    			Max {% if resource_info.is_abbreviation %}{{ r|get_value_after_dot|upper }}{% else %}{{ r|get_value_after_dot }}{% endif %}{% if not resource.unit %}s {% endif  %} per user
						{% if resource.unit %} 
						 	({{ resource.unit }})
						{% endif  %}
					</label>
Olga Brani's avatar
Olga Brani committed
114
115
		    		<div class="form-row">
		    			<p class="clearfix">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
116
		    				<label for="{{r|add:'_unlimited'}}">Unlimited</label>
Olga Brani's avatar
Olga Brani committed
117
		    				<input type="checkbox" id="{{'id_'|add:r|add:'_unlimited'}}" name="{{r|add:'_unlimited'}}" class="unlimited radio" checked="checked">
Olga Brani's avatar
Olga Brani committed
118
119
120
121
		    			</p>
		    		</div>
		    		<div class="form-row">
		    			<p class="clearfix">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
122
		    				<label for="{{r|add:'_limited'}}">Limited</label>
Olga Brani's avatar
Olga Brani committed
123
		    				<input type="checkbox" id="id_storage_per_user_limited" name="{{r|add:'_limited'}}" class="radio limited">
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
124
		       				<input type="text" id="{{'id_'|add:r|add:'_uplimit'}}" name="{{r|add:'_uplimit'}}"/> 
Olga Brani's avatar
Olga Brani committed
125
126
127
128
129
		    			</p>
		    		</div>
		    		
		    	</div> 
		    </fieldset>
Olga Brani's avatar
Olga Brani committed
130
131
		    {% endwith %}
		    {% endwith %}
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
132
		    {% endfor %}
Olga Brani's avatar
Olga Brani committed
133
	    </div>
Olga Brani's avatar
Olga Brani committed
134
135
136
	    
    	{% endfor %}
	</div>
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
137
138
    {% endwith %}
    {% endwith %}
Olga Brani's avatar
Olga Brani committed
139
	 
Olga Brani's avatar
Olga Brani committed
140
    <div class="form-row submit">
Olga Brani's avatar
Olga Brani committed
141
   		<input type="submit" value="SUBMIT" class="submit altcol" autocomplete="off">
Olga Brani's avatar
Olga Brani committed
142
143
144
	</div>     
</form>
	 
Olga Brani's avatar
Olga Brani committed
145
146
147
<script>
	
</script>	 
Olga Brani's avatar
Olga Brani committed
148
 
Olga Brani's avatar
Olga Brani committed
149
{% endblock %}