datatracker/ietf/templates/doc/charter/submit.html
Henrik Levkowetz aa5e61d958 Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
in order to autogenerate dotted path url pattern names.  Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.

Changed some imports to prevent import of ietf.urls before django
initialization was complete.


Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.

Started converting old-style middleware classes to new-style middleware
functions (incomplete).

Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.

Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.

Rewrote the filename argument handling in a management command which had
broken with the upgrade.
 - Legacy-Id: 12818
2017-02-11 14:43:01 +00:00

100 lines
2.7 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load bootstrap3 %}
{% block title %}
Charter submission for {{ group.acronym }} {{ group.type.name }}
{% endblock %}
{% block content %}
{% origin %}
<h1>Charter submission</h1>
<table class="table table-condensed">
<tbody class="meta">
<tr>
<th>{{ group.type.name }}</th>
<th>Name</th>
<td>{{ group.name }}</td>
</tr>
<tr>
<td></td>
<th>Acronym</th>
<td>{{ group.acronym }}</td>
</tr>
<tr>
<td></td>
{% if group.parent and group.parent.type_id == "area" %}
<th>{{ group.parent.type.name }}</th>
<td>{{ group.parent.name }} ({{ group.parent.acronym }})</td>
{% else %}
<th></th><td></td>
{% endif %}
</tr>
<tr>
<td></td>
<th>State</th>
<td>
{{ group.state.name }}
{% if requested_close %}
<div class="label label-info">In the process of being closed</div>
{% endif %}
</td>
</tr>
</tbody>
<tbody class="meta">
{% for slug, label, roles in group.personnel %}
<tr>
{% if forloop.first %}
<th>Personnel</th>
{% else %}
<td></td>
{% endif %}
<th>{{ label }}</th>
<td>
{% for r in roles %}
<span class="fa fa-envelope-o"></span>
<a href="mailto:{{ r.email.address }}">{{ r.person.plain_name }}</a>
<br>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
{% if group.list_email %}
<tbody class="meta">
<tr>
<th>Mailing list</th>
<th>Address</th><td>{{ group.list_email|urlize }}</td>
</tr>
<tr><td></td><th>To subscribe</th><td>{{ group.list_subscribe|urlize }}</td></tr>
<tr><td></td><th>Archive</th><td>{{ group.list_archive|urlize }}</td></tr>
</tbody>
{% endif %}
</table>
<p class="alert alert-info">The text will be submitted as <b>{{ name }}-{{ next_rev }}</b>.</p>
<form enctype="multipart/form-data" method="post" id="charter-form">
{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">Submit</button>
{% if group.charter %}
<a class="btn btn-default pull-right" href="{% url "doc_view" name=name %}">Back</a>
{% else %}
<a class="btn btn-default pull-right" href="{% url "ietf.group.views.group_about" group_type=group.type_id acronym=group.acronym %}">Back</a>
{% endif %}
{% endbuttons %}
</form>
{% endblock %}