File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ <h1 class="page-title">Nomination for {{ nomination.name }} in {{ nomination.ele
19
19
< i > You are the nominee for this nomination.</ i > < br >
20
20
< i > It is currently accepted!</ i > </ br >
21
21
{% if editable %}
22
+ {% if nomination.nominator == request.user %}
23
+ < a href ="{{ nomination.get_edit_url }} "> Edit</ a >
24
+ {% else %}
22
25
< a href ="{{ nomination.get_accept_url }} "> Change Acceptance</ a >
26
+ {% endif %}
23
27
{% else %}
24
28
< i > It is no longer editable as nominations are closed.</ i >
25
29
{% endif %}
@@ -44,9 +48,11 @@ <h1 class="page-title">Nomination for {{ nomination.name }} in {{ nomination.ele
44
48
< li > < b > Employer</ b > : {{ nomination.employer }}</ li >
45
49
< li > < b > Other Affiliations</ b > : {{ nomination.other_affiliations }}</ li >
46
50
< li > < b > Previous Board Service</ b > : {{ nomination.previous_board_service }}</ li >
47
- < li > < b > Nominated By</ b > : {{ nomination.nominator.first_name }} {{ nomination.nominator.last_name }}</ li >
48
51
{% if nomination.nominee.user == request.user %}
52
+ < li > < b > Nominated By</ b > : Self</ li >
49
53
< li > < b > Accepted:</ b > {{ nomination.accepted }}</ li >
54
+ {% else %}
55
+ < li > < b > Nominated By</ b > : {{ nomination.nominator.first_name }} {{ nomination.nominator.last_name }}</ li >
50
56
{% endif %}
51
57
</ ul >
52
58
</ div >
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ <h2>Nominations Received</h2>
30
30
{% endif %}
31
31
< a href ="{{ nomination.get_absolute_url }} ">
32
32
{% if nomination.is_editable %}
33
- View / Manage
33
+ {% if nomination.nominator == request.user %}
34
+ View / Edit
35
+ {% else %}
36
+ View / Manage Acceptance
37
+ {% endif %}
34
38
{% else %}
35
39
View
36
40
{% endif %}
You can’t perform that action at this time.
0 commit comments