1 <div id=
"bootstrap-theme">
2 <div ng-controller=
"crmSearchActionUpdate">
3 <div class=
"form-inline" ng-repeat=
"clause in $ctrl.values" >
4 <input class=
"form-control" ng-change=
"$ctrl.updateField($index)" ng-model=
"clause[0]" crm-ui-select=
"{data: $ctrl.availableFields, allowClear: true, placeholder: 'Field'}" />
5 <input class=
"form-control" ng-model=
"clause[1]" crm-search-value=
"{field: clause[0]}" />
7 <div class=
"form-inline">
8 <input class=
"form-control twenty" style=
"width: 15em;" ng-model=
"$ctrl.add" ng-change=
"$ctrl.addField()" crm-ui-select=
"{data: $ctrl.availableFields, placeholder: ts('Add Value')}"/>
11 <div class=
"buttons pull-right">
12 <button type=
"button" ng-click=
"$ctrl.cancel()" class=
"btn btn-danger">{{:: ts('Cancel') }}
</button>
13 <button ng-click=
"$ctrl.save()" class=
"btn btn-primary" ng-disabled=
"!$ctrl.values.length">{{:: ts('Update %
1 %
2', {
1: model.ids.length,
2: (model.ids.length ===
1 ? $ctrl.entity.title : $ctrl.entity.titlePlural)}) }}
</button>