summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-31 10:39:39 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-31 10:39:39 +0200
commit80e8827b0ff40ffa4c37985a6979fca6d7eba097 (patch)
treebb6acadd1f70294bdc1322a0e08aa51f650cfc5f /ishtar_common/templates/blocks
parent14688dbd9435146b96b0743677579a622aa784ef (diff)
downloadIshtar-80e8827b0ff40ffa4c37985a6979fca6d7eba097.tar.bz2
Ishtar-80e8827b0ff40ffa4c37985a6979fca6d7eba097.zip
Target key forms: choose whom to associated with (refs #3725)
Diffstat (limited to 'ishtar_common/templates/blocks')
-rw-r--r--ishtar_common/templates/blocks/readonly_input.html2
-rw-r--r--ishtar_common/templates/blocks/readonly_input_option.html1
2 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/readonly_input.html b/ishtar_common/templates/blocks/readonly_input.html
new file mode 100644
index 000000000..41a0c1305
--- /dev/null
+++ b/ishtar_common/templates/blocks/readonly_input.html
@@ -0,0 +1,2 @@
+{% for group_name, group_choices, group_index in widget.optgroups %}{% for option in group_choices %}
+ {% include option.template_name with widget=option %}{% endfor %}{% endfor %}
diff --git a/ishtar_common/templates/blocks/readonly_input_option.html b/ishtar_common/templates/blocks/readonly_input_option.html
new file mode 100644
index 000000000..b4ac473f0
--- /dev/null
+++ b/ishtar_common/templates/blocks/readonly_input_option.html
@@ -0,0 +1 @@
+{% if widget.attrs.selected %}<input type="hidden" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value.0 }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />{% endif %}