datatracker/ietf/templates/doc/document_charter.html
Henrik Levkowetz a80c58f932 Merged in [9857] from lars@netapp.com:
Apply more of the styling from the current meta tables.
 - Legacy-Id: 9868
Note: SVN reference [9857] has been migrated to Git commit dcccd9c863
2015-07-23 09:57:33 +00:00

211 lines
5.2 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% block pagehead %}
<link rel="alternate" type="application/atom+xml" href="/feed/group-changes/{{ group.acronym }}/">
{% endblock %}
{% block title %}{{ doc.title }}{% endblock %}
{% block content %}
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<table class="table table-condensed">
<thead id="message-row">
<tr>
{% if doc.rev != latest_rev %}
<th colspan="4" class="alert-warning">The information below is for an old version of the document</th>
{% else %}
<th colspan="4"></th>
{% endif %}
</tr>
</thead>
<tbody class="meta">
<tr>
<th>Document</th>
<th>
{% if doc.get_state_slug != "approved" %}
Proposed charter
{% else %}
Charter
{% endif %}
</th>
<td class="edit"></td>
<td>
{{ group.name }} {{ group.type.name }}
<a href="{{ group.about_url }}">({{ group.acronym }})</a>
{% if snapshot %}
<span class="label label-warning">Snapshot</span>
{% endif %}
</td>
</tr>
<tr>
<td></td>
<th>Title</th>
<td class="edit">
{% if not snapshot and can_manage %}
{% doc_edit_button "charter_change_title" name=doc.name %}
{% endif %}
</td>
<td>{{ doc.title }}</td>
</tr>
<tr>
<td></td>
<th>Last updated</th>
<td class="edit"></td>
<td>{{ doc.time|date:"Y-m-d" }}</td>
</tr>
<tr>
<td></td>
<th><a href="/doc/help/state/charter/">State</a></th>
<td class="edit">
{% if not snapshot and can_manage %}
{% doc_edit_button "charter_change_state" name=doc.name %}
{% endif %}
</td>
<td>
<span title="{{ doc.get_state.desc }}">{{ doc.get_state.name }}</span>
{% if chartering == "initial" %}
<span class="label label-info">Initial chartering</span>
{% endif %}
{% if chartering == "rechartering" %}
<span class="label label-info">Rechartering</span>
{% endif %}
</td>
</tr>
</tbody>
<tbody class="meta">
<tr>
<th>WG</th>
<th>State</th>
<td class="edit"></td>
<td>{{ group.state.name }}</td>
</tr>
</tbody>
<tbody class="meta">
<tr>
<th>IESG</th>
<th>Responsible AD</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button "charter_edit_ad" name=doc.name %}
{% endif %}
</td>
<td>
{{ doc.ad|default:"(None)" }}
</td>
</tr>
{% if not snapshot and chartering %}
<tr>
<td></td>
<th>Telechat date</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button "charter_telechat_date" name=doc.name %}
{% endif %}
</td>
<td>
{% if not telechat %}
(None)
{% else %}
On agenda of {{ telechat.telechat_date|date:"Y-m-d" }} IESG telechat
{% endif %}
{% if ballot_summary %}
<br><i>{{ ballot_summary }}</i>
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<td></td>
<th>Send notices to</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button "charter_edit_notify" name=doc.name %}
{% endif %}
</td>
<td>
{{ doc.notify|default:"(None)" }}
</td>
</tr>
</tbody>
</table>
<p class="buttonlist">
{% if not snapshot and can_manage %}
{% if chartering %}
{% url "charter_startstop_process" name=doc.name option='abandon' as abandon_url %}
{% if abandon_url %}
<a class="btn btn-danger" href="{{ abandon_url }}">Abandon chartering</a>
{% endif %}
{% if user|has_role:"Secretariat" %}
{% url "charter_approve" name=doc.name as approve_url %}
{% if approve_url %}
<a class="btn btn-warning" href="{{ approve_url }}">Approve charter</a>
{% endif %}
{% endif %}
{% else %}
{% if group.state_id == "proposed" or group.state_id == "bof" %}
{% url "charter_submit" name=doc.name option='initcharter' as start_url %}
{% if start_url %}
<a class="btn btn-default" href="{{ start_url }}">Start chartering</a>
{% endif %}
{% else %}
{% url "charter_submit" name=doc.name option='recharter' as recharter_url %}
{% if recharter_url %}
<a class="btn btn-default" href="{{ recharter_url }}">Recharter</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</p>
<h2>Charter<br><small>{{ doc.canonical_name }}-{{ doc.rev }}</small></h2>
{% if not snapshot and can_manage and chartering and group.state_id != "conclude" %}
<p><a class="btn btn-default" href="{% url "charter_submit" name=doc.name %}">Change charter text</a></p>
{% endif %}
{% if doc.rev != "" %}
{{ content|safe|keep_spacing|sanitize_html|wordwrap:80|safe }}
{% endif %}
{% if not snapshot and chartering %}
<h2>Proposed milestones</h2>
{% if can_manage %}
<p><a class="btn btn-primary" href="{% url "group_edit_charter_milestones" group_type=doc.group.type_id acronym=doc.group.acronym %}">Edit milestones</a></p>
{% endif %}
{% if milestones %}
{% include "group/milestones.html" %}
{% else %}
<p>No milestones for charter found.</p>
{% endif %}
{% endif %}
{% endblock %}