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