module_edit_branches.html 959 Bytes
Newer Older
1 2
{% extends "base.html" %}
{% load i18n %}
3
{% load url from future %}
4 5 6 7 8 9

{% block title %} Module Edition (branches) {% endblock %}

{% block content %}
<div class="mainpage">

10
<h1><a href="{% url 'module' module.name %}">{{ module.get_description }}</a></h1>
11 12 13 14 15

{% if module.homepage %}
  <p><a href="{{ module.homepage }}">{{ module.homepage }}</a></p>
{% endif %}

Tom Tryfonidis's avatar
Tom Tryfonidis committed
16
<form action="#" method="POST" class="djform">
17
{% csrf_token %}
18
<table>
Tom Tryfonidis's avatar
Tom Tryfonidis committed
19
<tr><td><h4>{% trans "Branch" %}</h4></td><td><h4>{% trans "Release" %}</h4></td><td><h4>{% trans "Category" %}</h4></td></tr>
20
{% for field1, field2 in form.get_branches %}
Tom Tryfonidis's avatar
Tom Tryfonidis committed
21
  <tr><th>{{ field1.label }}</th><td>{{ field1 }}</td><td>{{ field2 }}</td></tr>
22 23 24
{% endfor %}

  <tr><td>{{ form.new_branch }}</td><td>{{ form.new_branch_release }}</td><td>{{ form.new_branch_category }}</td></tr>
25
  <tr><td colspan="3" align="right"><input type="submit" value="{% trans "Save" %}" /></td></tr>
26 27 28 29 30
</table>
</form>

</div>
{% endblock %}