Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
d04e5d7b
Commit
d04e5d7b
authored
Nov 08, 2012
by
Olga Brani
Browse files
Group summary page
parent
09ff8645
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/templates/im/astakosgroup_form_summary.html
View file @
d04e5d7b
...
...
@@ -4,7 +4,7 @@
{% block page.body %}
{{ data }}
<!--
{{ data }}
-->
<div
class=
"projects summary"
>
<h2>
CONFIRM YOUR REQUEST
</h2>
<p>
Lorem ipsum
</p>
...
...
@@ -28,7 +28,7 @@
<dt>
Expiration Date
</dt>
<dd>
{{ data.expiration_date|date:"d/m/Y"}}
</dd>
<dt>
Modaration
</dt>
<dd>
{% if
object
.moderation_enabled%}Yes{% else %}No{% endif %}
</dd>
<dd>
{% if
data
.moderation_enabled%}Yes{% else %}No{% endif %}
</dd>
<dt>
Max members per group
</dt>
<dd>
{% if data.max_participants %}{{ data.max_participants }}{% else %}Unlimited{% endif %}
</dd>
</dl>
...
...
@@ -36,14 +36,37 @@
<div
class=
"full-dotted"
>
<h3>
RESOURCES:
</h3>
<dl
class=
"alt-style"
>
<dt>
Max Vms per user
</dt>
{% for r in data.policies %}
{% with r.service|add:'.'|add:r.resource as t %}
{% with resource_catalog|lookup:'resources' as resources %}
{% with resources|lookup:t as info %}
{% with resource_presentation|lookup:t as resource_info %}
<dt>
Max {% if resource_info.is_abbreviation %}{{ r.resource|upper }}{% else %}{{ r.resource }}{% endif %}{% if not info.unit %}s {% endif %} per user
</dt>
<dd>
{% if r.uplimit %}
{{ r.uplimit }} {% if info.unit %}({{ info.unit}}){% endif %}
{% else %}
Unlimited
{% endif %}
</dd>
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
<!--<dt>Max Vms per user</dt>
<dd>3</dd>
<dt>Max diskspace per user</dt>
<dd>5GB</dd>
<dt>Max RAM per user</dt>
<dd>2GB</dd>
<dt>Max CPU per user</dt>
<dd>
2
</dd>
<dd>2</dd>
-->
</dl>
</div>
...
...
snf-astakos-app/astakos/im/views.py
View file @
d04e5d7b
...
...
@@ -737,7 +737,9 @@ def group_add(request, kind_name='default'):
return
render_response
(
template
=
'im/astakosgroup_form_summary.html'
,
context_instance
=
get_context
(
request
),
data
=
form
.
cleaned_data
data
=
form
.
cleaned_data
,
resource_catalog
=
resource_catalog
,
resource_presentation
=
resource_presentation
)
else
:
now
=
datetime
.
now
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment