Commit | Line | Data |
---|---|---|
25523059 CW |
1 | <div id="bootstrap-theme"> |
2 | <div ng-controller="crmSearchActionUpdate"> | |
8e4920a5 | 3 | <p><strong>{{:: ts('Update the %1 selected %2 with the following values:', {1: model.ids.length, 2: $ctrl.entityTitle}) }}</strong></p> |
25523059 CW |
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'}" /> | |
493f83d4 | 6 | <input class="form-control" ng-model="clause[1]" crm-search-value="{field: $ctrl.getField(clause[0])}" /> |
25523059 CW |
7 | </div> |
8 | <div class="form-inline"> | |
493f83d4 | 9 | <input class="form-control twenty" style="width: 15em;" ng-model="$ctrl.add" ng-change="$ctrl.addField()" ng-disabled="!$ctrl.fields" ng-class="{loading: !$ctrl.fields}" crm-ui-select="{data: $ctrl.availableFields, placeholder: ts('Add Value')}"/> |
25523059 CW |
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> | |
8e4920a5 | 14 | <button ng-click="$ctrl.save()" class="btn btn-primary" ng-disabled="!$ctrl.values.length">{{:: ts('Update %1', {1: $ctrl.entityTitle}) }}</button> |
25523059 CW |
15 | </div> |
16 | </div> | |
17 | </div> |