Merge pull request #3083 from freeform/CRM-14084
[civicrm-core.git] / templates / CRM / Admin / Form / Tag.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 tag (admin) *}
27<h3>{if $action eq 1}{ts}New Tag {if $isTagSet}Set{/if}{/ts}{elseif $action eq 2}{ts}Edit Tag {if $isTagSet}Set{/if}{/ts}{else}{ts}Delete Tag {if $isTagSet}Set{/if}{/ts}{/if}</h3>
28<div class="crm-block crm-form-block crm-tag-form-block">
29 {if $action eq 1 or $action eq 2 }
30 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
31 <table class="form-layout-compressed">
32 <tr class="crm-tag-form-block-label">
33 <td class="label">{$form.name.label}</td>
34 <td>{$form.name.html}</td>
35 </tr>
36 <tr class="crm-tag-form-block-description">
37 <td class="label">{$form.description.label}</td>
38 <td>{$form.description.html}</td>
39 </tr>
40 {if $form.parent_id.html}
41 <tr class="crm-tag-form-block-parent_id">
42 <td class="label">{$form.parent_id.label}</td>
43 <td>{$form.parent_id.html}</td>
44 </tr>
45 {/if}
46 <tr class="crm-tag-form-block-used_for">
47 <td class="label">{$form.used_for.label}</td>
48 <td>{$form.used_for.html} <br />
49 <span class="description">
50 {if $is_parent}{ts}You can change the types of records which this tag can be used for by editing the 'Parent' tag.{/ts}
51 {else}{ts}What types of record(s) can this tag be used for?{/ts}
52 {/if}
53 </span>
54 </td>
55 </tr>
56 <tr class="crm-tag-form-block-is_reserved">
57 <td class="label">{$form.is_reserved.label}</td>
58 <td>{$form.is_reserved.html} <br /><span class="description">{ts}Reserved tags can not be deleted. Users with 'administer reserved tags' permission can set or unset the reserved flag. You must uncheck 'Reserved' (and delete any child tags) before you can delete a tag.{/ts}
59 </td>
60 </tr>
61 </table>
62 {if $parent_tags|@count > 0}
63 <table class="form-layout-compressed">
64 <tr><td><label>{ts}Remove Parent?{/ts}</label></td></tr>
65 {foreach from=$parent_tags item=ctag key=tag_id}
66 {assign var="element_name" value="remove_parent_tag_"|cat:$tag_id}
67 <tr><td>&nbsp;&nbsp;{$form.$element_name.html}&nbsp;{$form.$element_name.label}</td></tr>
68 {/foreach}
69 </table><br />
70 {/if}
71 {else}
72 <div class="status">{ts 1=$delName}Are you sure you want to delete <b>%1</b> Tag?{/ts}<br />{ts}This tag will be removed from any currently tagged contacts, and users will no longer be able to assign contacts to this tag.{/ts}</div>
73 {/if}
74 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
75</div>