Revision 94777aaf
b/snf-astakos-app/astakos/im/messages.py | ||
---|---|---|
159 | 159 |
NOT_ALIVE_PROJECT = 'Project %(id)s is not alive.' |
160 | 160 |
NOT_ALLOWED = 'You do not have the permissions to perform this action.' |
161 | 161 |
MEMBER_NUMBER_LIMIT_REACHED = 'You have reached the maximum number of members for this Project.' |
162 |
MEMBER_JOIN_POLICY_CLOSED = 'The Project\'s member join-policy is closed.'
|
|
163 |
MEMBER_LEAVE_POLICY_CLOSED = 'The project\'s member leave-policy is closed.'
|
|
162 |
MEMBER_JOIN_POLICY_CLOSED = 'The Project\'s member join policy is closed.'
|
|
163 |
MEMBER_LEAVE_POLICY_CLOSED = 'The project\'s member leave policy is closed.'
|
|
164 | 164 |
NOT_MEMBERSHIP_REQUEST = 'This is not a valid membership request.' |
165 | 165 |
MEMBERSHIP_REQUEST_EXISTS = 'The membership request already exists.' |
166 | 166 |
NO_APPLICANT = 'Project application requires an applicant. None found.' |
b/snf-astakos-app/astakos/im/templates/im/projects/project_detail.html | ||
---|---|---|
3 | 3 |
{% load filters %} |
4 | 4 |
|
5 | 5 |
{% block page.body %} |
6 |
{% with object.project.members as members %} |
|
7 | 6 |
{% with object.project.approved_members as approved_members %} |
8 | 7 |
{% with resource_catalog|populated_resource_catalog as resource_catalog%} |
9 | 8 |
<div class="projects"> |
... | ... | |
12 | 11 |
<h2> |
13 | 12 |
<em> |
14 | 13 |
{% if user == object.owner %} |
15 |
{% if object.is_active %} |
|
16 |
[ ADMINISTRATOR - ACTIVE ] |
|
17 |
{% else %} |
|
18 |
[ ADMINISTRATOR - PENDING ] |
|
19 |
{% endif %} |
|
14 |
[ ADMINISTRATOR - {{ object.state|upper }}] |
|
20 | 15 |
{% else %} |
21 | 16 |
{% if user in approve_members %} |
22 | 17 |
[ ENROLLED - ACTIVE ] |
... | ... | |
28 | 23 |
<span>{{ object.name|upper }}</span> |
29 | 24 |
</h2> |
30 | 25 |
|
31 |
<!-- |
|
32 |
<div class="details"> |
|
33 |
<h3> |
|
34 |
GENERAL INFO |
|
35 |
{% if user == object.owner %} |
|
36 |
<a href="#" class="edit">EDIT</a> |
|
37 |
{% endif %} |
|
38 |
</h3> |
|
39 |
|
|
40 |
<div class="data"> |
|
41 |
<p class="restricted">{{ object.description|safe }}</p> |
|
42 |
<dl class="alt-style"> |
|
43 |
</dl> |
|
44 |
</div> |
|
45 |
<div class="editable" style="display:none;"> |
|
46 |
<form action="{% url project_detail object.id %}" method="post" |
|
47 |
class="withlabels">{% csrf_token %} |
|
48 |
{% with update_form as form %} |
|
49 |
{% include "im/form_render.html" %} |
|
50 |
<div class="form-row submit"> |
|
51 |
<input type="submit" class="submit altcol" value="SAVE" /> |
|
52 |
</div> |
|
53 |
{% endwith %} |
|
54 |
</form> |
|
55 |
</div> |
|
56 |
</div> |
|
57 |
--> |
|
58 | 26 |
<div class="full-dotted"> |
59 | 27 |
<h3>DETAILS</h3> |
60 | 28 |
<dl class="alt-style"> |
... | ... | |
120 | 88 |
{% with resource_catalog|lookup:'resources' as resource_info %} |
121 | 89 |
{% with rp.resource|to_unicode as resource_name %} |
122 | 90 |
{% with resource_info|lookup:resource_name as decorated_resource %} |
123 |
<!-- |
|
124 |
<dt> |
|
125 |
{{rp.resource}} |
|
126 |
</dt> |
|
127 |
<dd> |
|
128 |
{{rp.member_capacity}} |
|
129 |
<dd/> |
|
130 |
--> |
|
131 | 91 |
<dt> |
132 | 92 |
Max {% if decorated_resource.is_abbreviation %}{{ decorated_resource.verbose_name|upper }}{% else %}{{ decorated_resource.verbose_name }}{% endif %}{% if not q.unit %}s {% endif %} per user |
133 | 93 |
</dt> |
... | ... | |
252 | 212 |
|
253 | 213 |
{% endwith %} |
254 | 214 |
{% endwith %} |
255 |
{% endwith %} |
|
256 | 215 |
{% endblock %} |
Also available in: Unified diff