Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / astakosgroup_form.html @ 279d6e51

History | View | Annotate | Download (3.3 kB)

1 8e45d6fd Sofia Papagiannaki
{% extends "im/account_base.html" %}
2 8e45d6fd Sofia Papagiannaki
3 ae497612 Olga Brani
{% load filters %}
4 ae497612 Olga Brani
{% block headjs %}
5 ae497612 Olga Brani
        {{ block.super }}         
6 ae497612 Olga Brani
        <script src="{{ IM_STATIC_URL }}js/quotas.js"></script>        
7 ae497612 Olga Brani
{% endblock %}        
8 8e45d6fd Sofia Papagiannaki
{% block page.body %}
9 5841646f Olga Brani
<form action="#top" method="post" class="withlabels quotas-form" id="group_create_form">{% csrf_token %}
10 3cbd5e47 Olga Brani
11 5841646f Olga Brani
    <fieldset class="with-info" id="top">
12 ae497612 Olga Brani
            <legend>
13 67be1883 Olga Brani
                    1. CREATE PROJECT
14 ae497612 Olga Brani
                        <span class="info"> 
15 ae497612 Olga Brani
                            <em>more info</em>
16 67be1883 Olga Brani
                            <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>
17 ae497612 Olga Brani
                    </span>                    
18 ae497612 Olga Brani
            </legend>
19 ae497612 Olga Brani
        
20 ae497612 Olga Brani
        {% include "im/form_render.html" %}
21 6abd262c Olga Brani
22 ae497612 Olga Brani
    </fieldset>     
23 ae497612 Olga Brani
    
24 ae497612 Olga Brani
    <fieldset id="icons">
25 ae497612 Olga Brani
            <legend>
26 bdc1c103 Olga Brani
                    2. ADD RESOURCES
27 ae497612 Olga Brani
                    <span class="info"> 
28 ae497612 Olga Brani
                            <em>more info</em>
29 67be1883 Olga Brani
                            <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>
30 ae497612 Olga Brani
                    </span>    
31 ae497612 Olga Brani
            </legend>
32 ae497612 Olga Brani
            <ul class="clearfix">
33 3cbd5e47 Olga Brani
            {% for g, group_info in resource_catalog.groups.items %}  
34 3cbd5e47 Olga Brani
                    {% if g %}
35 3cbd5e47 Olga Brani
                            <li>
36 3cbd5e47 Olga Brani
                                    <a href="#{{ g }}" id="{{'group_'|add:g}}"><img src="/static/im/images/create-{{ g }}.png" alt="vm"/></a>
37 3cbd5e47 Olga Brani
                                    <input type="hidden" name="proxy_{{ 'is_selected_'|add:g }}"  id="proxy_{{ 'id_is_selected_'|add:g }}">
38 3cbd5e47 Olga Brani
                                    <p class="msg">{{ group_info.help_text }}</p>
39 3cbd5e47 Olga Brani
                            </li>
40 3cbd5e47 Olga Brani
                            {% endif %}
41 ae497612 Olga Brani
            {% endfor %}
42 ae497612 Olga Brani
            </ul>
43 ae497612 Olga Brani
            
44 ae497612 Olga Brani
    </fieldset>
45 ae497612 Olga Brani
   
46 3cbd5e47 Olga Brani
    <div class="visible">
47 3cbd5e47 Olga Brani
            
48 3cbd5e47 Olga Brani
    </div>
49 3cbd5e47 Olga Brani
    <div class="not-visible">
50 3cbd5e47 Olga Brani
            {% for gname, resources in resource_catalog.get_groups_resources %}
51 59728d4e Olga Brani
                    <div class="group {{'group_'|add:gname}}" id="{{ gname }}">
52 3cbd5e47 Olga Brani
                            <a href="#icons" class="delete">X remove resource</a>        
53 3cbd5e47 Olga Brani
                            {% for rname, rdata in resources.items %}
54 3cbd5e47 Olga Brani
                            <fieldset class="quota">
55 3cbd5e47 Olga Brani
                                    
56 3cbd5e47 Olga Brani
                                    <legend>
57 3cbd5e47 Olga Brani
                                            {% if rdata.is_abbreviation %}
58 3cbd5e47 Olga Brani
                                                    {{ rdata.verbose_name|upper }}
59 3cbd5e47 Olga Brani
                                            {% else %}
60 3cbd5e47 Olga Brani
                                                    {{ rdata.verbose_name|capfirst }}
61 3cbd5e47 Olga Brani
                                            {% endif %}
62 3cbd5e47 Olga Brani
                                            <span class="info"> 
63 3cbd5e47 Olga Brani
                                                    <em>more info</em>
64 3cbd5e47 Olga Brani
                                                    <span>{{ rdata.help_text }}</span>
65 3cbd5e47 Olga Brani
                                            </span>  
66 3cbd5e47 Olga Brani
                                    </legend>
67 3cbd5e47 Olga Brani
                                    <div class="form-row">
68 3cbd5e47 Olga Brani
                                            <p class="clearfix">
69 3cbd5e47 Olga Brani
                                                    <label for="{{'id_'|add:rname|add:'_uplimit'}}_proxy" >
70 2db258bf Olga Brani
                                                                 Amount to grant per user
71 3cbd5e47 Olga Brani
                                                        </label>
72 3cbd5e47 Olga Brani
                                                    <input         type="text" 
73 3cbd5e47 Olga Brani
                                                                               id="{{'id_'|add:rname|add:'_uplimit'}}_proxy" 
74 3cbd5e47 Olga Brani
                                                                               name="{{rname|add:'_uplimit'}}_proxy" 
75 3cbd5e47 Olga Brani
                                                                               placeholder="{{ rdata.placeholder}} " 
76 3cbd5e47 Olga Brani
                                                                               {% if  == 'bytes' %} 
77 3cbd5e47 Olga Brani
                                                                                         class="dehumanize"
78 3cbd5e47 Olga Brani
                                                                                {% endif  %}
79 3cbd5e47 Olga Brani
                                                                               /> 
80 3cbd5e47 Olga Brani
                                                    <span class="extra-img">&nbsp;</span>
81 67be1883 Olga Brani
                                                 <span class="info"><em>more info</em><span>{{ rdata.help_text_input_each }}</span></span>
82 3cbd5e47 Olga Brani
                                                 <p class="error-msg">Invalid format</p>
83 3cbd5e47 Olga Brani
                                            </p>
84 3cbd5e47 Olga Brani
                                            <p class="msg"></p>
85 3cbd5e47 Olga Brani
                                    </div>
86 3cbd5e47 Olga Brani
                                </fieldset>        
87 3cbd5e47 Olga Brani
                                {% endfor %}
88 3cbd5e47 Olga Brani
                    </div>
89 3cbd5e47 Olga Brani
                     
90 3cbd5e47 Olga Brani
            {% endfor %}
91 ae497612 Olga Brani
    </div>
92 ae497612 Olga Brani
    <div class="form-row submit">
93 2a997e5f Olga Brani
                   <input type="submit" value="CONTINUE" class="submit altcol" autocomplete="off">
94 ae497612 Olga Brani
        </div>     
95 ae497612 Olga Brani
</form>
96 ae497612 Olga Brani
         
97 ae497612 Olga Brani
<script>
98 ae497612 Olga Brani
        
99 ae497612 Olga Brani
</script>         
100 ae497612 Olga Brani
 
101 ae497612 Olga Brani
{% endblock %}