symposion_app/pinaxcon/templates/forms/widget.html
Sachi King 1886323d74 Bootstrapification
Boot custom CSS, and put some base, standard css in its place.
Shame I did not start with fresh Bootstrap4, but oh well.

Some more templates could be made to make this less messy, which would
be good.
2017-04-16 16:30:45 +10:00

14 lines
597 B
HTML

{% load pyconau2017_tags %}
<div class="form-group row">
{% classname field.field.widget as widget %}
{% if widget == "CheckboxInput" %}
{% include "forms/widget_boolean_single.html" %}
{% elif widget == "RadioSelect" or widget == "CheckboxSelectMultiple" %}
{% include "forms/widget_boolean_multiple.html" %}
{% elif widget == "Select" or widget == "SelectMultiple" or widget == "LazySelect" or widget == "CountrySelectWidget" %}
{% include "forms/widget_basic.html" with widget_class="select" %}
{% else %}
{% include "forms/widget_basic.html" %}
{% endif %}
</div>