Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / projects / _project_detail_actions.html @ 6d583e07

History | View | Annotate | Download (1.5 kB)

1
{% load astakos_tags i18n %}
2

    
3
<!-- make room for buttons -->
4
{% if owner_mode or admin_mode or can_join_request or can_leave_request %}
5
  <br />
6
{% endif %}
7

    
8
<div class="project-actions">
9
{% if owner_mode or admin_mode %}
10
<a class="owner-action" href="{% url astakos.im.views.project_modify object.pk %}">MODIFY</a>
11

    
12
{% if owner_mode %}
13
{% with object.last_pending_incl_me as last_pending %}
14
{% if last_pending %}
15
{% if object.project.is_initialized %}
16
- {% confirm_link "CANCEL PROJECT MODIFICATION" "project_modification_cancel" "project_app_cancel" last_pending.pk "" "OK" %}
17
{% else %}
18
- {% confirm_link "CANCEL PROJECT APPLICATION" "project_app_cancel" "project_app_cancel" last_pending.pk "" "OK" %}
19
{% endif %}
20
{% endif %}
21
{% endwith %}
22
{% endif %}
23

    
24
{% if admin_mode %}
25
{% if object.can_approve %}
26
- {% confirm_link "APPROVE" "project_app_approve" "project_app_approve" object.pk "" "OK" %}
27
- {% confirm_link "DENY" "project_app_deny" "project_app_deny" object.pk %}
28
{% endif %}
29
{% endif %}
30

    
31
{% if owner_mode %}
32
{% if object.can_dismiss %}
33
- {% confirm_link "DISMISS" "project_app_dismiss" "project_app_dismiss" object.pk %}
34
{% endif %}
35
{% endif %}
36

    
37
<!-- only one is possible, perhaps add cancel button too -->
38
{% if can_join_request or can_leave_request %}
39
-
40
{% endif %}
41
{% endif %}
42

    
43
{% if can_join_request %}
44
{% confirm_link "JOIN" "project_join" "project_join" project.pk %}
45
{% endif %}
46

    
47
{% if can_leave_request %}
48
{% confirm_link "LEAVE" "project_leave" "project_leave" project.pk %}
49
{% endif %}
50
</div>