summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-02-03 00:49:58 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-02-03 00:49:58 +0100
commit5d3e9a1435a575dd27695e3c0ff0e6282acc0c0f (patch)
tree9afd7c785b7c1fa04abcf1b2a2d5a477f85e9e48 /ishtar_common/templates
parentb3e9441a212d033a3282dd63e1fa336e8abd60ce (diff)
downloadIshtar-5d3e9a1435a575dd27695e3c0ff0e6282acc0c0f.tar.bz2
Ishtar-5d3e9a1435a575dd27695e3c0ff0e6282acc0c0f.zip
Implement Select2 selection as a multi select widget
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/window.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/templates/window.html b/ishtar_common/templates/window.html
index c473eff89..c3d8ccf6a 100644
--- a/ishtar_common/templates/window.html
+++ b/ishtar_common/templates/window.html
@@ -14,6 +14,7 @@
<script language="javascript" type="text/javascript" src="{{JQUERY_UI_URL}}jquery-ui.js"></script>
<script language="javascript" type="text/javascript" src="{{JQUERY_UI_URL}}ui/i18n/jquery.ui.datepicker-{{COUNTRY}}.js"></script>
<script language="javascript" type="text/javascript" src="{{STATIC_URL}}/js/ishtar.js"></script>
+ {{form.media}}
<link type="text/css" href="{{JQUERY_UI_URL}}css/smoothness/jquery-ui.css" rel="stylesheet" />
<link rel="stylesheet" href="{{STATIC_URL}}/media/style.css" />
{% block extra_head %}
@@ -31,8 +32,8 @@ save_and_close_window("{{parent_name}}", "{{parent_pk}}", "{{new_item_label}}",
<table>
{% for field in form %}
<tr{% if field.field.required %} class='required'{% endif %}>
- <th><label for="{{ field.label }}">{{ field.label_tag }}</th>
- <td> {{ field.errors }}{{field|safe}}</td>
+ <th>{{ field.label_tag }}</th>
+ <td>{{ field.errors }}{{field|safe}}</td>
</tr>{% endfor %}
<tr><td colspan='2' class='submit_button'><input type="submit" id="submit_new_item" value="{% trans "Add" %}"/></td></tr>
</table>