root / templates / apply.html @ 9cad4715
History | View | Annotate | Download (2.7 kB)
1 |
{% extends "base.html" %} |
---|---|
2 |
{% load i18n %} |
3 |
{% block title %}{% trans "Create new Route" %}{% endblock %} |
4 |
{% block breadcrumbs %}:: {% trans "Create Route" %}{% endblock %} |
5 |
{% block content %} |
6 |
<style type="text/css"> |
7 |
th { |
8 |
text-align: right; |
9 |
padding-right: 0.5em; |
10 |
vertical-align: top; |
11 |
} |
12 |
|
13 |
.help { |
14 |
font-style: italic; |
15 |
|
16 |
} |
17 |
</style>
|
18 |
|
19 |
<div align="center"> |
20 |
<h3>{% trans "Apply for a new route" %}</h3> |
21 |
<form method="POST"> |
22 |
{% csrf_token %} |
23 |
{% if form.non_field_errors %} |
24 |
<p class="error">{{ form.non_field_errors|join:", "}}</p> |
25 |
{% endif %} |
26 |
<fieldset>
|
27 |
<legend>{% trans "Route Basic Info" %}</legend> |
28 |
<table>
|
29 |
<tr><th>{{ form.name.label_tag }}</th><td>{{ form.name }}<span class="error">{{ form.name.errors|join:", " }}</span></td></tr> |
30 |
<tr class="help"><td></td><td>{{ form.name.help_text }}</td></tr> |
31 |
</table>
|
32 |
</fieldset>
|
33 |
|
34 |
<fieldset>
|
35 |
<legend>{% trans "Route Match Conditions" %}</legend> |
36 |
<table>
|
37 |
<tr><th>{{ form.source.label_tag }}</th><td>{{ form.source }}<span class="error">{{ form.source.errors|join:", " }}</span></td></tr> |
38 |
<tr class="help"><td></td><td>{{ form.source.help_text }}</td></tr> |
39 |
<tr><th>{{ form.sourceport.label_tag }}</th><td>{{ form.sourceport }}<span class="error">{{ form.sourceport.errors|join:", " }}</span></td></tr> |
40 |
<tr class="help"><td></td><td>{{ form.sourceport.help_text }}</td></tr> |
41 |
<tr><th>{{ form.destination.label_tag }}</th><td>{{ form.destination }}<span class="error">{{ form.destination.errors|join:", " }}</span></td></tr> |
42 |
<tr class="help"><td></td><td>{{ form.destination.help_text }}</td></tr> |
43 |
<tr><th>{{ form.destinationport.label_tag }}</th><td>{{ form.destinationport }}<span class="error">{{ form.destinationport.errors|join:", " }}</span></td></tr> |
44 |
<tr class="help"><td></td><td>{{ form.destinationport.help_text }}</td></tr> |
45 |
<tr><th>{{ form.port.label_tag }}</th><td>{{ form.port }}<span class="error">{{ form.port.errors|join:", " }}</span></td></tr> |
46 |
<tr class="help"><td></td><td>{{ form.port.help_text }}</td></tr> |
47 |
</table>
|
48 |
</fieldset>
|
49 |
<fieldset>
|
50 |
<legend>{% trans "Route Actions" %}</legend> |
51 |
<table>
|
52 |
<tr><th>{{ form.then.label_tag }}</th><td>{{ form.then }}<span class="error">{{ form.then.errors|join:", " }}</span></td></tr> |
53 |
<tr class="help"><td></td><td>{{ form.then.help_text }}</td></tr> |
54 |
</table>
|
55 |
</fieldset>
|
56 |
<fieldset>
|
57 |
<legend>{% trans "Use/Comments" %}</legend> |
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> |
60 |
{% endblocktrans %} |
61 |
<p>{{ form.comments }}
|
62 |
{% if form.errors %}<br /><span class="error">{{ form.comments.errors|join:", " }}</span>{% endif %} |
63 |
</p>
|
64 |
</fieldset>
|
65 |
|
66 |
<p><input type="submit" value="{% trans "Apply" %}" /></p> |
67 |
</form>
|
68 |
</div>
|
69 |
|
70 |
{% endblock %} |