checkbox_row.html 823 B

123456789101112131415
  1. {% load misago_admin_form %}
  2. <div class="form-group{% if field.errors %} has-error{% endif %}">
  3. <div class="custom-control custom-checkbox">
  4. <input type="checkbox" class="custom-control-input{% if field_class %} {{ field_class }}{% endif %}" id="{{ field.id_for_label }}" name="{{ field.html_name }}" value="1"{% if field.required %} required{% endif %}{% if field.value %} checked{% endif %}>
  5. <label class="custom-control-label{% if label_class %} {{ label_class }}{% endif %}" for="{{ field.id_for_label }}">
  6. {{ field.label }}
  7. </label>
  8. {% for error in field.errors %}
  9. <small class="form-text text-danger font-weight-bold">{{ error }}</small>
  10. {% endfor %}
  11. {% if field.help_text %}
  12. <small class="form-text text-muted">{{ field.help_text }}</small>
  13. {% endif %}
  14. </div>
  15. </div>