summaryrefslogtreecommitdiff
path: root/ishtar/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-05-11 01:42:48 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-05-11 01:42:48 +0200
commita3d2037263a6886ffb69fa8217814ec74a906324 (patch)
tree5bef0b9ef8aabcb0162b343b6b94f7d7e5e4e46d /ishtar/templates
parentf3b115804f8d4266f7ffb761eaa77012defff553 (diff)
downloadIshtar-a3d2037263a6886ffb69fa8217814ec74a906324.tar.bz2
Ishtar-a3d2037263a6886ffb69fa8217814ec74a906324.zip
Labels corrections - minors
Diffstat (limited to 'ishtar/templates')
-rw-r--r--ishtar/templates/sheet_contextrecord.html2
-rw-r--r--ishtar/templates/towns_wizard.html40
2 files changed, 41 insertions, 1 deletions
diff --git a/ishtar/templates/sheet_contextrecord.html b/ishtar/templates/sheet_contextrecord.html
index b29541d54..13c11bd5b 100644
--- a/ishtar/templates/sheet_contextrecord.html
+++ b/ishtar/templates/sheet_contextrecord.html
@@ -129,7 +129,7 @@
{#<a href="#" onclick='load_window("{% url show-find find.pk%}");'>{%trans "Details"%}</a></td>#}
</tr>
{% empty %}
- <tr><td colspan="9" class='no_items'>{% trans "No find associated to this operation" %}</td></tr>
+ <tr><td colspan="9" class='no_items'>{% trans "No find associated to this context record" %}</td></tr>
{% endfor %}
</table>
diff --git a/ishtar/templates/towns_wizard.html b/ishtar/templates/towns_wizard.html
new file mode 100644
index 000000000..115ac9838
--- /dev/null
+++ b/ishtar/templates/towns_wizard.html
@@ -0,0 +1,40 @@
+{% extends "default_wizard.html" %}
+{% load i18n %}
+{% load range %}
+{% block extra_head %}
+{{form.media}}
+{% endblock %}
+{% block content %}
+<form action="." method="post" name='wizard'>{% csrf_token %}
+<ul id='form_path'>
+{% for step in previous_steps %}
+ <li>&raquo;&nbsp;<button name="form_prev_step" value="{{forloop.counter0}}">{{step.form_label}}</button></li>
+{% endfor %}
+ <li class='current'>&raquo;&nbsp;<a href='#'>{{current_step.form_label}}</a></li>
+</ul>
+<div class='form'>
+{% if extra_context.TOWNS %}
+{% if form.forms %}
+<div class='top_button'><input type="submit" id="submit_form" value="{% trans "Validate" %}"/></div>
+<table class='formset'>
+ {%if form.non_form_errors%}<tr class='error'><th colspan='2'>{{form.non_form_errors}}</th></tr>{%endif%}
+ {{ form.management_form }}
+ {% for formsetform in form.forms %}
+ {{ formsetform.as_table }}
+ {% endfor %}
+ <tr class='modify'><td colspan="2"><button name="formset_modify" value="{{form_step}}">{% trans "Add/Modify" %}</button></td></tr></li>
+</table>
+{% else %}
+<table>
+ {{ form.as_table }}
+</table>
+{% endif %}
+{% else %}
+<p class='alert'>{% trans "No town set in the associated file." %}</p>
+{% endif %}
+<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
+{{ previous_fields|safe }}
+<input type="submit" id="submit_form" value="{% trans "Validate" %}"/>
+</div>
+</form>
+{% endblock %}