[REF] Move handling of form elements back to the Form
[civicrm-core.git] / templates / CRM / Admin / Form / 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 {* this template is used for adding/editing a saved mapping *}
11 <div class="crm-block crm-form-block crm-mapping-form-block">
12 {if $action eq 1 or $action eq 2 }
13 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
14 <table class="form-layout-compressed">
15 <tr class="crm-mapping-form-block-name">
16 <td class="label">{$form.name.label}</td>
17 <td>{$form.name.html}</td>
18 </tr>
19 <tr class="crm-mapping-form-block-description">
20 <td class="label">{$form.description.label}</td>
21 <td>{$form.description.html}</td>
22 </tr>
23 <tr class="crm-mapping-form-block-mapping_type_id">
24 <td class="label">{$form.mapping_type_id.label}</td>
25 <td>{$form.mapping_type_id.html}</td>
26 </tr>
27 </table>
28 {else}
29 <div class="messages status no-popup">
30 <div class="icon inform-icon"></div> &nbsp;
31 {ts 1=$mappingName}WARNING: Are you sure you want to delete mapping '<b>%1</b>'?{/ts} {ts}This action cannot be undone.{/ts}
32 </div>
33 <br />
34 {/if}
35 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" loaction="bottom"}</div>
36 <div class="spacer"></div>
37 </div>