|
| 1 | +{% extends "base.html" %} |
| 2 | + |
| 3 | +{% block title %} |
| 4 | +{% ifequal option "initcharter" %} |
| 5 | +Initiate chartering of WG {{ wg.acronym }} |
| 6 | +{% else %} |
| 7 | +{% ifequal option "recharter" %} |
| 8 | +Recharter WG {{ wg.acronym }} |
| 9 | +{% else %} |
| 10 | +{% ifequal option "abandon" %} |
| 11 | +Abandon effort on WG {{ wg.acronym }} |
| 12 | +{% else %} |
| 13 | +Change state of WG {{ wg.acronym }} |
| 14 | +{% endifequal %} |
| 15 | +{% endifequal %} |
| 16 | +{% endifequal %} |
| 17 | +{% endblock %} |
| 18 | + |
| 19 | +{% block morecss %} |
| 20 | +form.change-state select { |
| 21 | + width: 22em; |
| 22 | +} |
| 23 | + |
| 24 | +#id_message, #id_comment { |
| 25 | + width: 40em; |
| 26 | +} |
| 27 | + |
| 28 | +form.change-state .actions { |
| 29 | + text-align: right; |
| 30 | + padding-top: 10px; |
| 31 | +} |
| 32 | + |
| 33 | +{% endblock %} |
| 34 | + |
| 35 | +{% block content %} |
| 36 | +<h1>{% ifequal option "initcharter" %} |
| 37 | +Initiate chartering of WG {{ wg.acronym }} |
| 38 | +{% else %} |
| 39 | +{% ifequal option "recharter" %} |
| 40 | +Recharter WG {{ wg.acronym }} |
| 41 | +{% else %} |
| 42 | +{% ifequal option "abandon" %} |
| 43 | +Abandon effort on WG {{ wg.acronym }} |
| 44 | +{% else %} |
| 45 | +Change state of WG {{ wg.acronym }} |
| 46 | +{% endifequal %} |
| 47 | +{% endifequal %} |
| 48 | +{% endifequal %} |
| 49 | +</h1> |
| 50 | + |
| 51 | +{% ifnotequal option "initcharter" %}{% ifnotequal option "recharter" %}{% ifnotequal option "abandon" %}<p class="helptext">For help on the states, see the <a href="{% url help_charter_states %}">state table</a>.</p>{% endifnotequal %}{% endifnotequal %}{% endifnotequal %} |
| 52 | + |
| 53 | +<form class="change-state" action="" method="post"> |
| 54 | + <table> |
| 55 | + {% for field in form.visible_fields %} |
| 56 | + <tr> |
| 57 | + {% ifequal field.name "initial_time" %} |
| 58 | + {% ifequal option "recharter" %} |
| 59 | + <th>{{ field.label_tag }}:</th> |
| 60 | + <td>{{ field }} |
| 61 | + {% if field.help_text %}<div class="help">{{ field.help_text }}</div>{% endif %} |
| 62 | + {% else %} |
| 63 | + {% ifequal option "initcharter" %} |
| 64 | + <th>{{ field.label_tag }}:</th> |
| 65 | + <td>{{ field }} |
| 66 | + {% if field.help_text %}<div class="help">{{ field.help_text }}</div>{% endif %} |
| 67 | + {% endifequal %} |
| 68 | + {% endifequal %} |
| 69 | + {% else %} |
| 70 | + <th>{{ field.label_tag }}:</th> |
| 71 | + <td>{{ field }} |
| 72 | + {% if field.help_text %}<div class="help">{{ field.help_text }}</div>{% endif %} |
| 73 | + {% endifequal %} |
| 74 | + {% ifequal field.name "charter_state" %} |
| 75 | + {% ifequal field.errors "warning" %} |
| 76 | + <ul><li>The initial review time hasn't elapsed. Select this checkbox to proceed anyway: <label><input type="checkbox" name="confirm_state" /></label></li></ul> |
| 77 | + {% endifequal %} |
| 78 | + {% endifequal %} |
| 79 | + {% ifnotequal field.name "charter_state" %} |
| 80 | + {{ field.errors }} |
| 81 | + {% endifnotequal %} |
| 82 | + </td> |
| 83 | + </tr> |
| 84 | + {% endfor %} |
| 85 | + <tr> |
| 86 | + <td colspan="2" class="actions"> |
| 87 | + {% if option %} |
| 88 | + <input type="submit" value="Submit"/> |
| 89 | + {% else %} |
| 90 | + <a href="{% url wg_view name=wg.acronym %}">Back</a> |
| 91 | + <input type="submit" value="Save"/> |
| 92 | + {% endif %} |
| 93 | + </td> |
| 94 | + </tr> |
| 95 | + </table> |
| 96 | +</form> |
| 97 | + |
| 98 | +{% if prev_state %} |
| 99 | +<h3>Or revert to previous state</h3> |
| 100 | + |
| 101 | +<div class="prev-state"> |
| 102 | + <form action="" method="post"> |
| 103 | + <input type="hidden" name="charter_state" value="{{ prev_charter_state.slug }}" /> |
| 104 | + <input type="hidden" name="state" value="{{ prev_state.slug }}" /> |
| 105 | + <input type="submit" value="Back to {{ prev_charter_state.name }}" /> |
| 106 | + </form> |
| 107 | +</div> |
| 108 | +{% endif %} |
| 109 | +{% endblock %} |
| 110 | + |
| 111 | +{% block content_end %} |
| 112 | +<script type="text/javascript"> |
| 113 | + var message = { |
| 114 | + "infrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to Informal IESG review by {{ login.name }}", |
| 115 | + "intrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to Internal review by {{ login.name }}. Please place it on the next IESG telechat and inform the IAB.", |
| 116 | + "extrev": "The WG {{ wg.name }} ({{ wg.acronym }}) has been set to External review by {{ login.name }}. Please send out the external review announcement to the appropriate lists.\n\nSend the announcement to other SDOs: Yes\nAdditional recipients of the announcement: " |
| 117 | + }; |
| 118 | + |
| 119 | +</script> |
| 120 | +<script type="text/javascript" src="/js/wg-change-state.js"></script> |
| 121 | +{% endblock %} |
0 commit comments