(af-field) Rename "field-defn" to "defn"
[civicrm-core.git] / ext / afform / core / ang / afField / widgets / CheckBox.html
CommitLineData
a715f6d4
TO
1<ul class="crm-checkbox-list" id="{{ fieldId }}" ng-if="defn.options">
2 <li ng-repeat="(key, val) in defn.options" >
17d153bd
CW
3 <input type="checkbox" checklist-model="getData()[fieldName]" id="{{ fieldId + key }}" checklist-value="key" />
4 <label for="{{ fieldId + key }}">{{ val }}</label>
5 </li>
6</ul>
a715f6d4 7<input type="checkbox" ng-if="!defn.options" id="{{ fieldId }}" ng-model="getData()[fieldName]" />