apply.html 2.68 KB
Newer Older
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
1 2
{% extends "base.html" %}
{% load i18n %}
3 4
{% block title %}{% trans "Create new Route" %}{% endblock %}
{% block breadcrumbs %}:: {% trans "Create Route" %}{% endblock %}
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{% block content %}
<style type="text/css">
th {
	text-align: right;
	padding-right: 0.5em;
	vertical-align: top;
}

.help {
	font-style: italic;

}
</style>

<div align="center">
20
<h3>{% trans "Apply for a new route" %}</h3>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
21 22
<form method="POST">
{% csrf_token %}
23 24 25
{% if form.non_field_errors %}
<p class="error">{{ form.non_field_errors|join:", "}}</p>
{% endif %}
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
26
<fieldset>
27
	<legend>{% trans "Route Basic Info" %}</legend>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
28
<table>
29 30
<tr><th>{{ form.name.label_tag }}</th><td>{{ form.name }}<span class="error">{{ form.name.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.name.help_text }}</td></tr>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
31 32 33 34
</table>
</fieldset>

<fieldset>
35 36 37 38 39 40 41 42 43 44 45 46 47
<legend>{% trans "Route Match Conditions" %}</legend>
<table>
<tr><th>{{ form.source.label_tag }}</th><td>{{ form.source }}<span class="error">{{ form.source.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.source.help_text }}</td></tr>
<tr><th>{{ form.sourceport.label_tag }}</th><td>{{ form.sourceport }}<span class="error">{{ form.sourceport.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.sourceport.help_text }}</td></tr>
<tr><th>{{ form.destination.label_tag }}</th><td>{{ form.destination }}<span class="error">{{ form.destination.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.destination.help_text }}</td></tr>
<tr><th>{{ form.destinationport.label_tag }}</th><td>{{ form.destinationport }}<span class="error">{{ form.destinationport.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.destinationport.help_text }}</td></tr>
<tr><th>{{ form.port.label_tag }}</th><td>{{ form.port }}<span class="error">{{ form.port.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.port.help_text }}</td></tr>
</table>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
48 49
</fieldset>
<fieldset>
50
<legend>{% trans "Route Actions" %}</legend>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
51
<table>
52 53
<tr><th>{{ form.then.label_tag }}</th><td>{{ form.then }}<span class="error">{{ form.then.errors|join:", " }}</span></td></tr>
<tr class="help"><td></td><td>{{ form.then.help_text }}</td></tr>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
54 55 56
</table>
</fieldset>
<fieldset>
57
<legend>{% trans "Use/Comments" %}</legend>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
58
{% blocktrans %}
59
<p>Give a short description of the intended use of this route, that justifies the parameter selection above. Feel free to include any additional comments.</p>
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
60
{% endblocktrans %}
61 62
<p>{{ form.comments }}
{% if form.errors %}<br /><span class="error">{{ form.comments.errors|join:", " }}</span>{% endif %}
Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
63 64 65 66 67 68
</p>
</fieldset>

<p><input type="submit" value="{% trans "Apply" %}" /></p>
</form>
</div>
69

Leonidas Poulopoulos's avatar
Leonidas Poulopoulos committed
70
{% endblock %}