2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* this template is used for adding/editing a tag (admin) *}
27 <div class="crm-block crm-form-block crm-tag-form-block">
28 {if $action eq 1 or $action eq 2 }
29 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
30 <table class="form-layout-compressed">
31 <tr class="crm-tag-form-block-label">
32 <td class="label">{$form.name.label}</td>
33 <td>{$form.name.html}</td>
35 <tr class="crm-tag-form-block-description">
36 <td class="label">{$form.description.label}</td>
37 <td>{$form.description.html}</td>
39 {if $form.parent_id.html}
40 <tr class="crm-tag-form-block-parent_id">
41 <td class="label">{$form.parent_id.label}</td>
42 <td>{$form.parent_id.html}</td>
45 <tr class="crm-tag-form-block-used_for">
46 <td class="label">{$form.used_for.label}</td>
47 <td>{$form.used_for.html} <br />
48 <span class="description">
49 {if $is_parent}{ts}You can change the types of records which this tag can be used for by editing the 'Parent' tag.{/ts}
50 {else}{ts}What types of record(s) can this tag be used for?{/ts}
55 <tr class="crm-tag-form-block-is_reserved">
56 <td class="label">{$form.is_reserved.label}</td>
57 <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}
61 {if $parent_tags|@count > 0}
62 <table class="form-layout-compressed">
63 <tr><td><label>{ts}Remove Parent?{/ts}</label></td></tr>
64 {foreach from=$parent_tags item=ctag key=tag_id}
65 {assign var="element_name" value="remove_parent_tag_"|cat:$tag_id}
66 <tr><td> {$form.$element_name.html} {$form.$element_name.label}</td></tr>
71 <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 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>