Merge pull request #2965 from generalredneck/CRM-14135
[civicrm-core.git] / templates / CRM / Admin / Form / Mapping.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25*}
26{* this template is used for adding/editing a saved mapping *}
27<h3>{if $action eq 1}{ts}New Tag{/ts}{elseif $action eq 2}{ts}Edit Mapping{/ts}{else}{ts}Delete Mapping{/ts}{/if}</h3>
28<div class="crm-block crm-form-block crm-mapping-form-block">
29 {if $action eq 1 or $action eq 2 }
edc51caa 30 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
6a488035
TO
31 <table class="form-layout-compressed">
32 <tr class="crm-mapping-form-block-name">
33 <td class="label">{$form.name.label}</td>
34 <td>{$form.name.html}</td>
35 </tr>
36 <tr class="crm-mapping-form-block-description">
37 <td class="label">{$form.description.label}</td>
38 <td>{$form.description.html}</td>
39 </tr>
40 <tr class="crm-mapping-form-block-mapping_type_id">
41 <td class="label">{$form.mapping_type_id.label}</td>
42 <td>{$form.mapping_type_id.html}</td>
43 </tr>
44 </table>
45 {else}
46 <div class="messages status no-popup">
47 <div class="icon inform-icon"></div> &nbsp;
48 {ts 1=$mappingName}WARNING: Are you sure you want to delete mapping '<b>%1</b>'?{/ts} {ts}This action cannot be undone.{/ts}
49 </div>
50 <br />
51 {/if}
52 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" loaction="bottom"}</div>
53 <div class="spacer"></div>
54</div>