Commit | Line | Data |
---|---|---|
33044927 CW |
1 | <table class="crm-export-field-selector"> |
2 | <thead> | |
3 | <tr> | |
4 | <th colspan="6"> | |
f9c5f498 | 5 | <label>{{:: ts('Contact Type') }}</label> |
33044927 CW |
6 | <input class="twelve" crm-ui-select="{data: contact_types, placeholder: ts('All'), allowClear: true}" ng-model="data.contact_type" /> |
7 | </th> | |
8 | </tr> | |
9 | </thead> | |
10 | <tbody ui-sortable="{axis: 'y'}" ng-model="data.columns"> | |
11 | <tr ng-repeat="field in data.columns"> | |
12 | <td ng-include="'~/exportui/exportField.html'"></td> | |
13 | <td ng-repeat="row in data.preview"> | |
14 | {{ showPreview(row, field) }} | |
15 | </td> | |
16 | </tr> | |
17 | </tbody> | |
18 | <tfoot> | |
19 | <tr> | |
20 | <td colspan="6"> | |
21 | <input class="crm-action-menu fa-plus crm-export-add-field" crm-ui-select="{data: getFields, placeholder: ts('Add field')}" ng-model="new.col" /> | |
e99512cf | 22 | <span ng-if="data.columns.length && perms.admin"> |
33044927 | 23 | <button type="button" ng-click="saveMappingDialog()" crm-icon="fa-save"> |
f9c5f498 | 24 | {{:: ts('Save Fields') }} |
33044927 CW |
25 | </button> |
26 | </span> | |
27 | </td> | |
28 | </tr> | |
29 | </tfoot> | |
30 | </table> |