Support is_primary fields and boolean options.
[civicrm-core.git] / ext / afform / core / ang / af / fields / CheckBox.html
1 <ul class="crm-checkbox-list" id="{{ fieldId }}" ng-if="defn.options">
2 <li ng-repeat="opt in defn.options track by opt.key" >
3 <input type="checkbox" checklist-model="dataProvider.getFieldData()[fieldName]" id="{{ fieldId + opt.key }}" checklist-value="opt.key" />
4 <label for="{{ fieldId + opt.key }}">{{ opt.label }}</label>
5 </li>
6 </ul>
7 <input type="checkbox" ng-if="!defn.options" id="{{ fieldId }}" ng-model="dataProvider.getFieldData()[fieldName]" />