{% load bulma_utils %}

<div class="field">
  {% if field|is_checkbox %}

  {% include "elections/forms/checkbox.html" with field=field %}

  {% elif field|is_radio %}

  {% include "elections/forms/radio.html" with field=field %}

  {% elif field|is_input %}

  {% include "elections/forms/input.html" with field=field %}

  {% elif field|is_textarea %}

  {% include "elections/forms/textarea.html" with field=field %}

  {% elif field|is_select %}

  {% include "elections/forms/select.html" with field=field %}

  {% elif field|is_file %}

  {% include "elections/forms/file.html" with field=field %}

  {% else %}

  {% include "elections/forms/other.html" with field=field %}

  {% endif %}
</div>
