Update status msgs in similar code in 3 other places
[civicrm-core.git] / templates / CRM / Contact / Form / Edit / TagsAndGroups.tpl
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">
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 {foreach key=key item=item from=$tagGroup}
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}
57 {/foreach}
58 </tr>
59 {if !$type || $type eq 'tag'}
60 <tr><td>{include file="CRM/common/Tag.tpl"}</td></tr>
61 {/if}
62 </table>
63 {if $title}
64 </div>
65 </div><!-- /.crm-accordion-wrapper -->
66 {/if}