xt }}
        </label>
      {% endfor %}
    </div>
  {% else %}
    {% for key, text in field.choices|items %}
      <div class="checkbox">
        <label>
          <input type="checkbox" name="{{ field.name }}" value="{{ key }}" {% if key|as_string in field.value|as_list_of_strings %}checked{% endif %}>
          {{ text }}
        </label>
      </div>
    {% endfor %}
  {% endif %}

  {% if field.errors %}
    {% for error in field.errors %}
      <span class="help-block">{{ error }}</span>
    {% end