Skip to content
Snippets Groups Projects
Commit 4cb067fe authored by colemanw's avatar colemanw
Browse files

tpl cleanup

parent 7f9683f3
Branches
Tags
No related merge requests found
......@@ -25,43 +25,40 @@
*}
{if $title}
<div class="crm-accordion-wrapper crm-tagGroup-accordion collapsed">
<div class="crm-accordion-header">
{$title}
</div><!-- /.crm-accordion-header -->
<div class="crm-accordion-header">{$title}</div>
<div class="crm-accordion-body" id="tagGroup">
{/if}
<table class="form-layout-compressed{if $context EQ 'profile'} crm-profile-tagsandgroups{/if}">
<tr>
<tr>
{foreach key=key item=item from=$tagGroup}
{* $type assigned from dynamic.tpl *}
{if !$type || $type eq $key }
<td width={cycle name=tdWidth values="70%","30%"}><span class="label">{if $title}{$form.$key.label}{/if}</span>
<div id="crm-tagListWrap">
<table id="crm-tagGroupTable">
{foreach key=k item=it from=$form.$key}
{if $k|is_numeric}
<tr class={cycle values="'odd-row','even-row'" name=$key} id="crm-tagRow{$k}">
<td>
<strong>{$it.html}</strong><br />
{if $item.$k.description}
<div class="description">
{$item.$k.description}
</div>
{/if}
</td>
</tr>
{/if}
{* $type assigned from dynamic.tpl *}
{if !$type || $type eq $key }
<td width={cycle name=tdWidth values="70%","30%"}><span class="label">{if $title}{$form.$key.label}{/if}</span>
<div id="crm-tagListWrap">
<table id="crm-tagGroupTable">
{foreach key=k item=it from=$form.$key}
{if $k|is_numeric}
<tr class={cycle values="'odd-row','even-row'" name=$key} id="crm-tagRow{$k}">
<td>
<strong>{$it.html}</strong><br />
{if $item.$k.description}
<div class="description">
{$item.$k.description}
</div>
{/if}
</td>
</tr>
{/if}
{/foreach}
</table>
</div>
</td>
{/if}
{/foreach}
</table>
</div>
</td>
{/if}
{/foreach}
</tr>
<tr><td>{include file="CRM/common/Tag.tpl"}</td></tr>
</table>
</tr>
<tr><td>{include file="CRM/common/Tag.tpl"}</td></tr>
</table>
{if $title}
</div><!-- /.crm-accordion-body -->
</div>
</div><!-- /.crm-accordion-wrapper -->
{/if}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment