summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/window.html
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
commit77500b5ae4a0ce3e2fbb928b5cf9847ab9a69c5e (patch)
tree9afd7c785b7c1fa04abcf1b2a2d5a477f85e9e48 /ishtar_common/templates/window.html
parentd3959af5b232f0ab121c5e32032d1389d0e97139 (diff)
downloadIshtar-77500b5ae4a0ce3e2fbb928b5cf9847ab9a69c5e.tar.bz2
Ishtar-77500b5ae4a0ce3e2fbb928b5cf9847ab9a69c5e.zip
Implement Select2 selection as a multi select widget
Diffstat (limited to 'ishtar_common/templates/window.html')
-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>