<div class="form-check">
    <input type="checkbox" data-type="{{= type }}" class="form-check-input field" name="{{= name }}" id="{{= name }}"{{ if(value) {}} checked="checked" {{ } }}>
    <label for="{{= name }}" class="form-check-label">{{= polyglot.t(label) }}</label>
</div>
