From bb3973ffb714c932e9ec6dd6a751228dc71fe1d3 Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 14 May 2022 16:38:07 -0400 Subject: initial commit --- app/posts/templates/horizontal_select.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/posts/templates/horizontal_select.html (limited to 'app/posts/templates/horizontal_select.html') diff --git a/app/posts/templates/horizontal_select.html b/app/posts/templates/horizontal_select.html new file mode 100644 index 0000000..61dcfd8 --- /dev/null +++ b/app/posts/templates/horizontal_select.html @@ -0,0 +1,17 @@ +{% with id=widget.attrs.id %} + + {% for group, options, index in widget.optgroups %} + {% if group %} +
  • {{ group }} + + {% endif %} + {% for option in options %} +
  • {% include option.template_name with widget=option %}
  • + {% endfor %} + {% if group %} + + + {% endif %} + {% endfor %} + +{% endwith %} -- cgit v1.2.3