checkbox.html 508 B

12345678910111213
  1. <div class="form-check">
  2. <input type="checkbox" class="form-check-input {% if error %}is-invalid{% endif %}" id="{{ field_id }}" name="{{ field_name }}" value="true" {% if value %}checked{% endif %}>
  3. <label class="form-check-label" for="{{ field_id }}">
  4. {{ label }}
  5. </label>
  6. {% if error %}
  7. <small class="invalid-feedback">{{ error }}</small>
  8. {% elif field.description %}
  9. <small class="form-text text-muted">{{ field.description }}</small>
  10. {% endif %}
  11. </div>