Files @ 1886323d7431
Branch filter:

Location: symposion_app/pinaxcon/templates/forms/widget.html

Sachi King
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.
{% 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>