Skip to content

Commit 015242d

Browse files
committed
Improve guidance on when, and when not, to delete a Position
- Legacy-Id: 10584
1 parent d2f1d1f commit 015242d

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

ietf/templates/nomcom/remove_position.html

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,33 @@
77
{% block nomcom_content %}
88
{% origin %}
99
<h2>Position: {{ position }}</h2>
10-
<dl>
11-
<dt>Is open:</dt>
12-
<dd>{{ position.is_open }}</dd>
13-
</dl>
1410

15-
<h3>Do you want to remove it?</h3>
11+
<p>This position is currently {{position.is_open|yesno:"open,closed"}}.</p>
12+
<p>It has {{position.feedback_set.count|default:"no"}} feedback objects associated with it.</p>
13+
{% if position.feedback_set.count %}
14+
<p>
15+
<span class="alert alert-warning">Unless this is a position created only for testing, deleting it is likely to be harmful. All of the feedback will also be deleted.</span>
16+
</p>
17+
<p>
18+
{% if position.is_open %}
19+
If you are just wanting the position to disappear from the lists available to the community for providing nominations and feedback, instead of deleting the position, edit the position and change is_open to False.
20+
{% else %}
21+
Since the position is closed, it will not appear on the lists available to the community for providing nominations and feedback.
22+
{% endif %}
23+
</p>
24+
<p>If this is just a test position, it is ok to delete it.</p>
25+
{% else %}
26+
<p>This position is safe to delete.</p>
27+
{% endif %}
1628

1729
<form method="post">
1830
{% csrf_token %}
1931

2032
<input type="hidden" name="remove" value="1">
2133

2234
{% buttons %}
23-
<a class="btn btn-default pull-right" href="../">No, get me out of here</a>
24-
<button class="btn btn-primary" type="submit">Yes, remove it</button>
35+
<button class="btn btn-primary btn-warning" type="submit">Delete</button>
36+
<a class="btn btn-default" href="{% url 'nomcom_list_positions' year %}">Cancel</a>
2537
{% endbuttons %}
2638
</form>
2739

0 commit comments

Comments
 (0)