using the htmlization code previously developed for tools.ietf.org. As the generation of the htmlized page is a bit too costly to do on the fly for often-referenced drafts and RFCs, the part of each page which contains the htmlized document is cached on file with a cache time of 2 weeks. Changed all links which pointed to the htmlized version on tools to instead point at the datatracker htmlized document. Tweaked some URLs which didn't permit retrieval of intermediate-rev-charters. Narrowed the pattern for document names to disallow dots in names, and instead explicitly enumerated the few historical draftw with dots in the name. Added a file-system cache for the htmlized documents, and specified a max_entries value for caches, overriding the default 300 entries. Tweaked the code for new author email entries to provide a time if missing in an updated entry. Changed links in various email templates which pointed at tools.ietf.org pages to instead point at datatracker pages, where appropriate. Changed the search result rows to provide links to both the current meta- information document pages (with a (i) info symbol) and to the new htmlized document pages. - Legacy-Id: 13040
117 lines
4.8 KiB
HTML
117 lines
4.8 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
|
|
{% load bootstrap3 %}
|
|
|
|
{% block title %}Customize Workflow for {{ group.acronym }} {{ group.type.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% origin %}
|
|
{% load ietf_filters %}
|
|
|
|
<div id="group-customize-workflow">
|
|
|
|
<h1>Customize Workflow for {{ group.acronym }} {{ group.type.name }}</h1>
|
|
|
|
<p class="help-block">Below you can customize the draft states and tags used in the
|
|
<a href="{{ group.about_url }}">{{ group.acronym }} {{ group.type.name }}</a>. Note that some states are
|
|
mandatory for group operation and cannot be deactivated.</p>
|
|
|
|
{% if group.type_id == "wg" %}
|
|
<p class="help-block">You can see the default Working Group I-D State Diagram
|
|
in <a href="/doc/html/rfc6174#section-4.1">Section 4.1 of RFC6174</a>.</p>
|
|
{% endif %}
|
|
|
|
<h3>States</h3>
|
|
|
|
<table class="table state-table">
|
|
<thead>
|
|
<tr>
|
|
<th>State</th>
|
|
<th>Next states</th>
|
|
<th>Turn on/off</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for state in states %}
|
|
<tr class="{% if not state.used %}inactive{% endif %}">
|
|
<td class="name">
|
|
{{ state.name }} {% if not state.used %} (not used in {{ group.acronym }}){% endif %} {{ state|statehelp }}
|
|
</td>
|
|
<td class="next-states">
|
|
<div>
|
|
{% if state.used_next_states %}
|
|
{% for n in state.used_next_states %}<div class="state">{{ n.name }}</div>{% endfor %}
|
|
{% else %}
|
|
<div><i>None</i></div>
|
|
{% endif %}
|
|
|
|
<div>
|
|
<button class="btn btn-default btn-sm {% if not state.used %}disabled{% endif %}" title="Click to set next states for state" data-toggle="collapse" data-target="#nexts{{ state.pk }}" aria-expanded="false" aria-controls="nexts{{ state.pk }}">
|
|
<span class="caret"></span> Customize
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<form id="nexts{{ state.pk }}" class="set-next-states collapse out" method="post">{% csrf_token %}
|
|
<div>Select the next states:</div>
|
|
|
|
{% for checked, default, s in state.next_states_checkboxes %}
|
|
<div class="checkbox {% if not s.used %}inactive{% endif %}">
|
|
<label>
|
|
<input type="checkbox" name="next_states" value="{{ s.pk }}"{% if checked %} checked="checked"{% endif %} />
|
|
{{ s.name }} {% if default %}<span class="label label-default">default</span>{% endif %}
|
|
</label>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<input type="hidden" name="state" value="{{ state.pk }}" />
|
|
<input type="hidden" name="action" value="setnextstates" />
|
|
<button class="btn btn-primary" type="submit">Save</button>
|
|
</form>
|
|
</td>
|
|
<td>
|
|
{% if state.mandatory %}
|
|
(mandatory)
|
|
{% else %}
|
|
<form class="set-state" method="post">{% csrf_token %}
|
|
<input type="hidden" name="state" value="{{ state.pk }}" />
|
|
<input type="hidden" name="action" value="setstateactive" />
|
|
<input type="hidden" name="active" value="{{ state.used|yesno:"0,1" }}" />
|
|
<button class="btn btn-{% if state.used %}danger{% else %}success{% endif %}" type="submit" title="Click to {% if state.used %}de{% endif %}activate this state">{% if state.used %}Deactivate{% else %}Activate{% endif %}</button>
|
|
</form>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<h3>Tags</h3>
|
|
|
|
<table class="table tag-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Tag</th>
|
|
<th>Turn on/off</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for tag in tags %}
|
|
<tr class="{% if not tag.used %}inactive{% endif %}">
|
|
<td class="name">{{ tag.name }} {% if not tag.used %} (not used in {{ group.acronym }}){% endif %}</td>
|
|
<td>
|
|
<form class="set-tag" method="post">{% csrf_token %}
|
|
<input type="hidden" name="tag" value="{{ tag.pk }}" />
|
|
<input type="hidden" name="action" value="settagactive" />
|
|
<input type="hidden" name="active" value="{{ tag.used|yesno:"0,1" }}" />
|
|
<button class="btn btn-{% if tag.used %}danger{% else %}success{% endif %}" type="submit" title="Click to {% if tag.used %}de{% endif %}activate this tag">{% if tag.used %}Deactivate{% else %}Activate{% endif %}</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock content %}
|