Commit | Line | Data |
---|---|---|
b4def6e9 | 1 | <div class="af-gui-edit-options-bar" > |
d7056de0 | 2 | <h4 class="pull-left">{{:: ts('Customize options') }}</h4> |
e1aca853 | 3 | <div class="btn-group-sm"> |
b4def6e9 CW |
4 | <button type="button" class="btn btn-default" ng-click="close()"> |
5 | <i class="crm-i fa-times-circle"></i> | |
d7056de0 | 6 | {{:: ts('Cancel') }} |
b4def6e9 CW |
7 | </button> |
8 | <button type="button" class="btn btn-success" ng-click="save()"> | |
9 | <i class="crm-i fa-check-circle"></i> | |
d7056de0 | 10 | {{:: ts('Done') }} |
b4def6e9 CW |
11 | </button> |
12 | </div> | |
13 | </div> | |
14 | <ul ui-sortable="{connectWith: '.af-gui-edit-options-deleted', cancel: 'input,textarea,button,select,option,a,[contenteditable]'}" ng-model="options" class="af-gui-edit-options-enabled"> | |
15 | <li ng-repeat="option in options"> | |
16 | <div af-gui-editable ng-model="option.label" default-value="originalLabels[option.key]" >{{ option.label }}</div> | |
d7056de0 | 17 | <button type="button" class="btn btn-danger-outline btn-xs pull-right" ng-click="deleteOption(option, $index)" title="{{:: ts('Remove option') }}"> |
b4def6e9 CW |
18 | <i class="crm-i fa-trash"></i> |
19 | </button> | |
20 | </li> | |
21 | </ul> | |
22 | <h5 ng-show="deletedOptions.length">{{ ts('Deleted options') }}</h5> | |
23 | <ul ng-if="deletedOptions.length" ui-sortable="{connectWith: '.af-gui-edit-options-enabled'}" ng-model="deletedOptions" class="af-gui-edit-options-deleted"> | |
24 | <li ng-repeat="option in deletedOptions"> | |
25 | <div>{{ option.label }}</div> | |
d7056de0 | 26 | <button type="button" class="btn btn-success-outline btn-xs pull-right" ng-click="restoreOption(option, $index)" title="{{:: ts('Restore option') }}"> |
b4def6e9 CW |
27 | <i class="crm-i fa-arrow-circle-o-up"></i> |
28 | </button> | |
29 | </li> | |
30 | </ul> |