| 1 | <div id="bootstrap-theme"> |
| 2 | <div ng-controller="crmSearchActionUpdate"> |
| 3 | <p><strong>{{:: ts('Update the %1 selected %2 with the following values:', {1: model.ids.length, 2: $ctrl.entityTitle}) }}</strong></p> |
| 4 | <div class="form-inline" ng-repeat="clause in $ctrl.values" > |
| 5 | <input class="form-control" ng-change="$ctrl.updateField($index)" ng-model="clause[0]" crm-ui-select="{data: $ctrl.availableFields, allowClear: true, placeholder: 'Field'}" /> |
| 6 | <input class="form-control" ng-model="clause[1]" crm-search-value="{field: clause[0]}" /> |
| 7 | </div> |
| 8 | <div class="form-inline"> |
| 9 | <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')}"/> |
| 10 | </div> |
| 11 | <hr /> |
| 12 | <div class="buttons pull-right"> |
| 13 | <button type="button" ng-click="$ctrl.cancel()" class="btn btn-danger">{{:: ts('Cancel') }}</button> |
| 14 | <button ng-click="$ctrl.save()" class="btn btn-primary" ng-disabled="!$ctrl.values.length">{{:: ts('Update %1', {1: $ctrl.entityTitle}) }}</button> |
| 15 | </div> |
| 16 | </div> |
| 17 | </div> |