2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 +--------------------------------------------------------------------+
28 #tagtree .highlighted > span {
29 background-color: #fefca6;
31 #tagtree .helpicon ins {
34 #tagtree ins.jstree-icon {
38 <script type="text/javascript">
39 (function($, _){{/literal}
40 var entityID='{$entityID}',
41 entityTable='{$entityTable}',
42 $form = $('form.{$form.formClass}');
46 function highlightSelected() {
47 $("ul input:not(:checked)", '#tagtree').each(function () {
48 $(this).closest("li").removeClass('highlighted');
50 $("ul input:checked", '#tagtree').each(function () {
51 $(this).parents("li[id^=tag]").addClass('highlighted');
56 $("#tagtree input").change(function(){
61 $("#tagtree").jstree({
62 plugins : ["themes", "html_data"],
67 "url": CRM.config.resourceBase + 'packages/jquery/plugins/jstree/themes/classic/style.css'
72 {if !empty($permission) && $permission neq 'edit'}
74 $("#tagtree input").prop('disabled', true);
84 <div class="crm-accordion-wrapper crm-tagGroup-accordion collapsed">
85 <div class="crm-accordion-header">{$title}</div>
86 <div class="crm-accordion-body" id="tagGroup">
88 <table class="form-layout-compressed{if $context EQ 'profile'} crm-profile-tagsandgroups{/if}">
90 {if !$type || $type eq 'group'}
92 {if $groupElementType eq 'select'}
93 <span class="label">{if $title}{$form.group.label}{/if}</span>
100 {if !$type || $type eq 'tag'}
102 <td width="70%"><span class="label">{if $title}{$form.$key.label}{/if}</span>
104 {include file="CRM/Contact/Form/Edit/Tagtree.tpl" level=1}
108 <tr><td>{include file="CRM/common/Tagset.tpl"}</td></tr>
113 </div><!-- /.crm-accordion-wrapper -->