Add the template for the material upload page

- Legacy-Id: 7777
This commit is contained in:
Ole Laursen 2014-05-23 16:27:24 +00:00
parent 3bfb6dcd43
commit 3c88dc127b

View file

@ -0,0 +1,52 @@
{% extends "base.html" %}
{% block title %}Upload Material for Group {{ group.acronym }}{% endblock %}
{% block morecss %}
{{ block.super }}
form.upload-material td { padding-bottom: 0.6em; }
form.upload-material #id_title { width: 30em; }
form.upload-material .submit-row td { padding-top: 1em; text-align: right; }
{% endblock %}
{% block content %}
{% load ietf_filters %}
<div class="group-customize-workflow">
<h1>Upload Material for Group {{ group.acronym }}</h1>
{% if action == "new" %}
<p>
Below you can upload a file for the group
<a href="{% url "group_materials" acronym=group.acronym %}">{{ group.acronym }}</a>.
The file will appear under the materials tab in the group pages.
</p>
{% elif action == "edit" %}
<p>
Below you can edit the details of the material for the group
<a href="{% url "group_materials" acronym=group.acronym %}">{{ group.acronym }}</a>.
</p>
{% elif action == "revise" %}
<p>
Below you can upload a new revision of the material for the group
<a href="{% url "group_materials" acronym=group.acronym %}">{{ group.acronym }}</a>.
</p>
{% endif %}
<h3>Upload</h3>
<form class="upload-material" method="post" enctype="multipart/form-data">{% csrf_token %}
<table>
{{ form.as_table }}
<tr class="submit-row">
<td colspan="2">
<a class="button" href="{% url "group_materials" acronym=group.acronym %}">Cancel</a>
<input class="submit button" type="submit" value="Save" />
</td>
</tr>
</table>
</form>
{% endblock content %}