<div class="form-group row">
    <label class="col-sm-3 form-check-label">
        {{ label }}
    </label>

    <div class="col-sm-9">
      <div class="form-check">
        <input type="checkbox" class="form-check-input {% if error %}is-invalid{% endif %}" id="{{ field_id }}" name="{{ field_name }}" value="true" {% if value %}checked{% endif %}>
        {% if error %}
        <label class="form-check-label">
            <small>{{ error }}</small>
        </label>
        {% elif field.description %}
        <label class="form-check-label">
            <small class="form-text text-muted">{{ field.description }}</small>
          </label>
        {% endif %}
      </div>
    </div>
</div>
