Built motion from commit (unavailable).|2.5.26
[motion2.git] / public / assets / plugins / angular-material-form-builder / src / lib / directives / checkboxes-item / checkboxes-view.tpl.html
diff --git a/public/assets/plugins/angular-material-form-builder/src/lib/directives/checkboxes-item/checkboxes-view.tpl.html b/public/assets/plugins/angular-material-form-builder/src/lib/directives/checkboxes-item/checkboxes-view.tpl.html
new file mode 100644 (file)
index 0000000..de22d81
--- /dev/null
@@ -0,0 +1,20 @@
+<md-input-container>
+  <div
+    layout="{{CheckboxesView.formItem.config.direction == 'horizontal' ? 'row' : 'column'}}"
+  >
+    <md-checkbox
+      ng-repeat="option in CheckboxesView.formItem.options track by $index"
+      ng-model="option.selected"
+      ng-change="CheckboxesView.toggleSelectedOption(option)"
+      ng-disabled="CheckboxesView.disableOptions && !option.selected"
+      aria-label="..."
+      >{{option.value}}</md-checkbox
+    >
+  </div>
+
+  <div ng-messages="CheckboxesView.form.$error">
+    <div ng-message="minSelections">
+      Must select {{CheckboxesView.formItem.maxSelections || 1}} items
+    </div>
+  </div>
+</md-input-container>