tpl cleanup
authorColeman Watts <coleman@civicrm.org>
Wed, 27 Mar 2013 18:45:05 +0000 (11:45 -0700)
committerColeman Watts <coleman@civicrm.org>
Thu, 28 Mar 2013 15:49:00 +0000 (08:49 -0700)
templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl

index 7cf07b93609d99d106f0c5fc74f008ec0635b318..48da7766c284622ae2975ef25270ffdb52481205 100644 (file)
 *}
 {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}