Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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"> | |
4cb067fe | 28 | <div class="crm-accordion-header">{$title}</div> |
6a488035 TO |
29 | <div class="crm-accordion-body" id="tagGroup"> |
30 | {/if} | |
31 | <table class="form-layout-compressed{if $context EQ 'profile'} crm-profile-tagsandgroups{/if}"> | |
4cb067fe | 32 | <tr> |
6a488035 | 33 | {foreach key=key item=item from=$tagGroup} |
4cb067fe CW |
34 | {* $type assigned from dynamic.tpl *} |
35 | {if !$type || $type eq $key } | |
36 | <td width={cycle name=tdWidth values="70%","30%"}><span class="label">{if $title}{$form.$key.label}{/if}</span> | |
37 | <div id="crm-tagListWrap"> | |
38 | <table id="crm-tagGroupTable"> | |
39 | {foreach key=k item=it from=$form.$key} | |
40 | {if $k|is_numeric} | |
41 | <tr class={cycle values="'odd-row','even-row'" name=$key} id="crm-tagRow{$k}"> | |
42 | <td> | |
43 | <strong>{$it.html}</strong><br /> | |
44 | {if $item.$k.description} | |
45 | <div class="description"> | |
46 | {$item.$k.description} | |
47 | </div> | |
48 | {/if} | |
49 | </td> | |
50 | </tr> | |
51 | {/if} | |
52 | {/foreach} | |
53 | </table> | |
54 | </div> | |
55 | </td> | |
56 | {/if} | |
6a488035 | 57 | {/foreach} |
4cb067fe | 58 | </tr> |
d9f679be CW |
59 | {if !$type || $type eq 'tag'} |
60 | <tr><td>{include file="CRM/common/Tag.tpl"}</td></tr> | |
61 | {/if} | |
4cb067fe | 62 | </table> |
6a488035 | 63 | {if $title} |
4cb067fe | 64 | </div> |
6a488035 | 65 | </div><!-- /.crm-accordion-wrapper --> |
6a488035 | 66 | {/if} |