Commit | Line | Data |
---|---|---|
33044927 CW |
1 | <form class="crm-export-ui-save-mapping-dialog"> |
2 | <div class="crm-form-block"> | |
3 | <div ng-if="model.mapping_id"> | |
4 | <label><input type="radio" ng-model="model.overwrite" value="1"> {{ model.ts('Update %1', {1: model.mapping_names[model.mapping_id]}) }}</label> | |
5 | <label><input type="radio" ng-model="model.overwrite" value="0"> {{ model.ts('Save new mapping') }}</label> | |
6 | </div> | |
7 | <div> | |
8 | <label for="export_save_mapping_name">{{ model.ts('Name this field mapping:') }} <span class="crm-marker">*</span></label> | |
9 | <input class="crm-form-text" ng-model="model.new_name" id="export_save_mapping_name" /> | |
10 | <span class="crm-error" ng-show="!model.nameIsUnique()"> | |
11 | {{ model.ts('That name is already taken') }} | |
12 | </span> | |
13 | </div> | |
14 | <div> | |
15 | <label for="export_save_mapping_description">{{ model.ts('Description:') }}</label> | |
16 | <input class="crm-form-text huge" ng-model="model.description" id="export_save_mapping_description" /> | |
17 | </div> | |
18 | </div> | |
19 | <div class="ui-dialog-buttonpane ui-widget-content"> | |
20 | <div class="ui-dialog-buttonset"> | |
21 | <button type="button" class="crm-button" ng-click="model.saveMapping()" ng-disabled="!model.new_name || model.saving || !model.nameIsUnique()"> | |
22 | <i class="crm-i" ng-class="{'fa-check': !model.saving, 'fa-spinner fa-pulse': model.saving}"></i> | |
23 | {{ model.ts('Save Fields') }} | |
24 | </button> | |
25 | </div> | |
26 | </div> | |
27 | </form> |