Revision 3e99e2d1 templates/apply.html

b/templates/apply.html
1 1
{% extends "base.html" %}
2 2
{% load i18n %}
3
{% block title %}{% trans "Create new Route" %}{% endblock %}
4
{% block breadcrumbs %}:: {% trans "Create Route" %}{% endblock %}
3
	
4
{% block title %}
5
	{% if edit %}
6
		{% trans "Edit Route" %} {{form.data.name}}
7
	{% else %}
8
		{% trans "Create new Route" %}
9
	{% endif %}
10
{% endblock %}
11

  
12
{% block breadcrumbs %}:: 
13
	{% if edit %}
14
		{% trans "Edit route" %} {{form.data.name}}
15
	{% else %}
16
	{% trans "Create route" %}
17
	{% endif %}
18
		{% endblock %}
19

  
5 20
{% block content %}
6 21
<style type="text/css">
7 22
th {
......
17 32
</style>
18 33

  
19 34
<div align="center">
35
	{% if edit %}
36
	<h3>{% trans "Edit route" %}: {{form.data.name}}</h3>
37
	{% else %}
20 38
<h3>{% trans "Apply for a new route" %}</h3>
39
{% endif %}
21 40
<form method="POST">
22 41
{% csrf_token %}
23 42
{% if form.non_field_errors %}
24 43
<p class="error">{{ form.non_field_errors|join:", "}}</p>
25 44
{% endif %}
26
<fieldset>
45

  
46
<fieldset {% if edit %} style="display:none;" {% endif %}>
27 47
	<legend>{% trans "Route Basic Info" %}</legend>
28 48
<table>
29 49
<tr><th>{{ form.name.label_tag }}</th><td>{{ form.name }}<span class="error">{{ form.name.errors|join:", " }}</span></td></tr>

Also available in: Unified diff