astakosgroup_form.html 3.38 KB
Newer Older
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
1
2
{% extends "im/account_base.html" %}

Olga Brani's avatar
Olga Brani committed
3
4
5
6
7
{% load filters %}
{% block headjs %}
	{{ block.super }}	 
	<script src="{{ IM_STATIC_URL }}js/quotas.js"></script>	
{% endblock %}	
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
8
{% block page.body %}
Olga Brani's avatar
Olga Brani committed
9
<form action="#top" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %}
Olga Brani's avatar
Olga Brani committed
10

Olga Brani's avatar
Olga Brani committed
11
    <fieldset class="with-info" id="top">
Olga Brani's avatar
Olga Brani committed
12
    	<legend>
Olga Brani's avatar
Olga Brani committed
13
    		1. CREATE PROJECT
Olga Brani's avatar
Olga Brani committed
14
15
			<span class="info"> 
		    	<em>more info</em>
Olga Brani's avatar
Olga Brani committed
16
		    	<span> To create a new Project, first enter the following required fields.<br> The information you enter will be visible to all ~okeanos users. </span>
Olga Brani's avatar
Olga Brani committed
17
18
19
20
	    	</span>    		
    	</legend>
        
        {% include "im/form_render.html" %}
21

Olga Brani's avatar
Olga Brani committed
22
23
24
25
    </fieldset>     
    
    <fieldset id="icons">
    	<legend>
Olga Brani's avatar
Olga Brani committed
26
    		2. ADD RESOURCES
Olga Brani's avatar
Olga Brani committed
27
28
    		<span class="info"> 
		    	<em>more info</em>
Olga Brani's avatar
Olga Brani committed
29
		    	<span> Here you add resources to your Project. Each resource you specify here, will be granted to *EACH* user of this Project. So the total resources will be: &lt;Total number of members&gt; * &lt;amount_of_resource&gt; for each resource. </span>
Olga Brani's avatar
Olga Brani committed
30
31
32
	    	</span>    
    	</legend>
    	<ul class="clearfix">
Olga Brani's avatar
Olga Brani committed
33
34
35
36
37
38
39
40
            {% for g, group_info in resource_catalog.groups.items %}  
            	{% if g %}
	    		<li>
	    			<a href="#{{ g }}" id="{{'group_'|add:g}}"><img src="/static/im/images/create-{{ g }}.png" alt="vm"/></a>
	    			<input type="hidden" name="proxy_{{ 'is_selected_'|add:g }}"  id="proxy_{{ 'id_is_selected_'|add:g }}">
	    			<p class="msg">{{ group_info.help_text }}</p>
	    		</li>
	    		{% endif %}
Olga Brani's avatar
Olga Brani committed
41
42
43
44
45
            {% endfor %}
    	</ul>
    	
    </fieldset>
   
Olga Brani's avatar
Olga Brani committed
46
47
48
49
50
    <div class="visible">
    	
    </div>
    <div class="not-visible">
    	{% for gname, resources in resource_catalog.get_groups_resources %}
Olga Brani's avatar
Fixes    
Olga Brani committed
51
	    	<div class="group {{'group_'|add:gname}}" id="{{ gname }}">
Olga Brani's avatar
Olga Brani committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
	    		<a href="#icons" class="delete">X remove resource</a>	
	    		{% for rname, rdata in resources.items %}
	    		<fieldset class="quota">
			    	
			    	<legend>
			    		{% if rdata.is_abbreviation %}
			    			{{ rdata.verbose_name|upper }}
			    		{% else %}
			    			{{ rdata.verbose_name|capfirst }}
			    		{% endif %}
			    		<span class="info"> 
					    	<em>more info</em>
					    	<span>{{ rdata.help_text }}</span>
				    	</span>  
			    	</legend>
			    	<div class="form-row">
			    		<p class="clearfix">
			    			<label for="{{'id_'|add:rname|add:'_uplimit'}}_proxy" >
								Max {% if rdata.is_abbreviation %}{{ rdata.verbose_name|upper }}{% else %}{{ rdata.verbose_name }}{% endif %}{% if not rdata.unit %}s {% endif  %} per user
							</label>
			    			<input 	type="text" 
			       						id="{{'id_'|add:rname|add:'_uplimit'}}_proxy" 
			       						name="{{rname|add:'_uplimit'}}_proxy" 
			       						placeholder="{{ rdata.placeholder}} " 
			       						{% if rdata.unit == 'bytes' %} 
										 	class="dehumanize"
										{% endif  %}
			       						/> 
			    			<span class="extra-img">&nbsp;</span>
Olga Brani's avatar
Olga Brani committed
81
			         		<span class="info"><em>more info</em><span>{{ rdata.help_text_input_each }}</span></span>
Olga Brani's avatar
Olga Brani committed
82
83
84
85
86
87
88
89
90
			         		<p class="error-msg">Invalid format</p>
			    		</p>
			    		<p class="msg"></p>
			    	</div>
				</fieldset>	
				{% endfor %}
	    	</div>
	    	 
	    {% endfor %}
Olga Brani's avatar
Olga Brani committed
91
92
    </div>
    <div class="form-row submit">
Olga Brani's avatar
Merge    
Olga Brani committed
93
   		<input type="submit" value="CONTINUE" class="submit altcol" autocomplete="off">
Olga Brani's avatar
Olga Brani committed
94
95
96
97
98
99
100
101
	</div>     
</form>
	 
<script>
	
</script>	 
 
{% endblock %}