Merge pull request #24164 from herbdool/core-3783
[civicrm-core.git] / ang / exportui / export.html
1 <table class="crm-export-field-selector">
2 <thead>
3 <tr>
4 <th colspan="6">
5 <label>{{:: ts('Contact Type') }}</label>
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" />
22 <span ng-if="data.columns.length && perms.admin">
23 <button type="button" ng-click="saveMappingDialog()" crm-icon="fa-save">
24 {{:: ts('Save Fields') }}
25 </button>
26 </span>
27 </td>
28 </tr>
29 </tfoot>
30 </table>