Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-14-13-42-39
[civicrm-core.git] / templates / CRM / Contact / Form / Edit / TagsAndGroups.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {if $title}
27 <div class="crm-accordion-wrapper crm-tagGroup-accordion collapsed">
28 <div class="crm-accordion-header">{$title}</div>
29 <div class="crm-accordion-body" id="tagGroup">
30 {/if}
31 <table class="form-layout-compressed{if $context EQ 'profile'} crm-profile-tagsandgroups{/if}">
32 <tr>
33 {if $groupElementType eq 'select'}
34 <td><span class="label">{if $title}{$form.group.label}{/if}</span>
35 {$form.group.html}
36 </td>
37 {/if}
38 {foreach key=key item=item from=$tagGroup}
39 {* $type assigned from dynamic.tpl *}
40 {if !$type || $type eq $key }
41 <td width={cycle name=tdWidth values="70%","30%"}><span class="label">{if $title}{$form.$key.label}{/if}</span>
42 <div id="crm-tagListWrap">
43 <table id="crm-tagGroupTable">
44 {foreach key=k item=it from=$form.$key}
45 {if $k|is_numeric}
46 <tr class={cycle values="'odd-row','even-row'" name=$key} id="crm-tagRow{$k}">
47 <td>
48 <strong>{$it.html}</strong><br />
49 {if $item.$k.description}
50 <div class="description">
51 {$item.$k.description}
52 </div>
53 {/if}
54 </td>
55 </tr>
56 {/if}
57 {/foreach}
58 </table>
59 </div>
60 </td>
61 {/if}
62 {/foreach}
63 </tr>
64 {if !$type || $type eq 'tag'}
65 <tr><td>{include file="CRM/common/Tagset.tpl"}</td></tr>
66 {/if}
67 </table>
68 {if $title}
69 </div>
70 </div><!-- /.crm-accordion-wrapper -->
71 {/if}