forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove_position.html
More file actions
38 lines (38 loc) · 1.71 KB
/
remove_position.html
File metadata and controls
38 lines (38 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% block nomcom_content %}
{% origin %}
<h2 class="mb-3">Position: {{ position }}</h2>
<p>
This position is currently <b>{{ position.is_open|yesno:"open,closed" }}</b>.
It has <b>{{ position.feedback_set.count|default:"no" }}</b> feedback objects associated with it.
</p>
{% if position.feedback_set.count %}
<p class="alert alert-warning my-3">
Unless this is a position created only for testing, deleting it is likely to be harmful. All of the feedback will also be deleted.
</p>
<p>
{% if position.is_open %}
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 accepting_nominations and/or accepting_feedback to False.
{% else %}
Since the position is closed, it will not appear on the lists available to the community for providing nominations and feedback.
{% endif %}
</p>
<p>
If this is just a test position, it is ok to delete it.
</p>
{% else %}
<p>
This position is safe to delete.
</p>
{% endif %}
<form method="post">
{% csrf_token %}
<input type="hidden" name="remove" value="1">
<button class="btn btn-danger btn-warning" type="submit">Delete</button>
<a class="btn btn-secondary float-end"
href="{% url 'ietf.nomcom.views.list_positions' year %}">Back</a>
</form>
{% endblock %}