Merge pull request #15978 from civicrm/5.20
[civicrm-core.git] / templates / CRM / Admin / Page / Mapping.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {if $action eq 1 or $action eq 2 or $action eq 8}
11 {include file="CRM/Admin/Form/Mapping.tpl"}
12 {else}
13
14 <div class="help">
15 {ts}Saved mappings allow you to easily run the same import or export job multiple times. Mappings are created and updated as part of an Import or Export task. This screen allows you to rename or delete existing mappings.{/ts}
16 </div>
17 <div class="crm-content-block crm-block">
18 {if $rows}
19 <div id="mapping">
20 <div class="form-item">
21 {strip}
22 <table cellpadding="0" cellspacing="0" border="0">
23 <tr class="columnheader">
24 <th>{ts}Name{/ts}</th>
25 <th>{ts}Description{/ts}</th>
26 <th>{ts}Mapping Type{/ts}</th>
27 <th></th>
28 </tr>
29 {foreach from=$rows item=row}
30 <tr class="{cycle values="odd-row,even-row"} {$row.class} crm-mapping">
31 <td class="crm-mapping-name">{$row.name}</td>
32 <td class="crm-mapping-description">{$row.description}</td>
33 <td class="crm-mapping-mapping_type">{$row.mapping_type}</td>
34 <td>{$row.action|replace:'xx':$row.id}</td>
35 </tr>
36 {/foreach}
37 </table>
38 {/strip}
39 </div>
40 </div>
41 {else}
42 <div class="messages status no-popup">
43 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
44 {ts}There are currently no saved import or export mappings. You create saved mappings as part of an Import or Export task.{/ts}
45 </div>
46 {/if}
47 </div>
48 {/if}