{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing a tag (admin) *}
{if $action eq 1 or $action eq 2 }
{include file="CRM/common/formButtons.tpl" location="top"}
{if $form.parent_id.html} {/if} {if ! $isTagSet} {* Tagsets are not selectable by definition, so exclude this field for tagsets *} {/if}
{$form.name.label} {$form.name.html}
{$form.description.label} {$form.description.html}
{$form.parent_id.label} {$form.parent_id.html}
{$form.used_for.label} {$form.used_for.html}
{if $is_parent}{ts}You can change the types of records which this tag can be used for by editing the 'Parent' tag.{/ts} {else}{ts}What types of record(s) can this tag be used for?{/ts} {/if}
{$form.is_reserved.label} {$form.is_reserved.html}
{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}
{$form.is_selectable.label} {$form.is_selectable.html}
{ts}Defines if you can select this tag.{/ts}
{if $parent_tags|@count > 0} {foreach from=$parent_tags item=ctag key=tag_id} {assign var="element_name" value="remove_parent_tag_"|cat:$tag_id} {/foreach}
  {$form.$element_name.html} {$form.$element_name.label}

{/if} {else}
{ts 1=$delName}Are you sure you want to delete %1 Tag?{/ts}
{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}
{/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}