forked from OptimalBPM/angular-schema-form-dynamic-select
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrapselect.html
More file actions
26 lines (24 loc) · 1.76 KB
/
strapselect.html
File metadata and controls
26 lines (24 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div ng-controller="dynamicSelectController" class="form-group {{form.htmlClass}}"
ng-class="{'has-error': hasError(), 'has-success': hasSuccess()}">
<label class="control-label {{form.labelHtmlClass}}" ng-show="showTitle()">{{form.title}}</label>
<div class="form-group {{form.fieldHtmlClass}}" ng-init="populateTitleMap(form)">
<button ng-if="(form.options.multiple == 'true') || (form.options.multiple == true)"
type="button" class="btn btn-default" sf-changed="form" schema-validate="form" ng-model="$$value$$"
data-placeholder="{{form.placeholder || form.schema.placeholder || ('placeholders.select')}}"
data-html="1" data-multiple="1" data-max-length="{{form.options.inlineMaxLength}}"
data-placement="{{form.options.placement || 'bottom-left'}}"
data-max-length-html="{{form.options.inlineMaxLengthHtml}}"
bs-options="item.value as item.name for item in form.titleMap | selectFilter:this:$$value$$:"$$value$$""
bs-select>
</button>
<button ng-if="!((form.options.multiple == 'true') || (form.options.multiple == true))"
type="button" class="btn btn-default" sf-changed="form" schema-validate="form" ng-model="$$value$$"
data-placeholder="{{form.placeholder || form.schema.placeholder || ('placeholders.select')}}"
data-html="1"
data-placement="{{form.options.placement || 'bottom-left'}}"
bs-options="item.value as item.name for item in form.titleMap | selectFilter:this:$$value$$:"$$value$$""
bs-select>
</button>
<span class="help-block">{{ (hasError() && errorMessage(schemaError())) || form.description}} </span>
</div>
</div>