From b77309d242eb334236ee2d62c8adae5ce318e5e5 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Sun, 28 May 2017 15:38:03 +0530 Subject: [PATCH] CRM-20622: contact edit: tags and groups panel layout/styling --- .../CRM/Contact/Form/Edit/TagsAndGroups.tpl | 59 ++++++++++--------- templates/CRM/common/Tagset.tpl | 4 +- 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl b/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl index df271f19d1..9e2da5f8f6 100644 --- a/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl +++ b/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl @@ -87,35 +87,38 @@
{$title}
{/if} - - - {if !$type || $type eq 'group'} - - {/if} - {if (!$type || $type eq 'tag') && $tree} - - - {/if} - -
- {if $groupElementType eq 'select'} - {if $title}{$form.group.label}{/if} - {$form.group.html} - {else} - {foreach key=key item=item from=$tagGroup.group} -
- {$form.group.$key.html} - {if $item.description} -
{$item.description}
- {/if} -
- {/foreach} +
+ {if !$type || $type eq 'group'} +
+ {if $title} +
{$form.group.label}
+ {/if} + {if $groupElementType eq 'select'} +
{$form.group.html}
+ {else} + {foreach key=key item=item from=$tagGroup.group} +
+ {$form.group.$key.html} + {if $item.description} + {$item.description} {/if} -
{if $title}{$form.tag.label}{/if} -
- {include file="CRM/Contact/Form/Edit/Tagtree.tpl" level=1} -
-
{include file="CRM/common/Tagset.tpl"}
+
+ {/foreach} + {/if} + + {/if} + {if (!$type || $type eq 'tag') && $tree} +
+ {if $title} +
{$form.tag.label}
+ {/if} +
+ {include file="CRM/Contact/Form/Edit/Tagtree.tpl" level=1} +
+
+ {include file="CRM/common/Tagset.tpl"} + {/if} + {if $title} diff --git a/templates/CRM/common/Tagset.tpl b/templates/CRM/common/Tagset.tpl index 930ed44337..94da2ab0ac 100644 --- a/templates/CRM/common/Tagset.tpl +++ b/templates/CRM/common/Tagset.tpl @@ -41,8 +41,8 @@ {else}
- {$form.$elemName.$parID.label} - {$form.$elemName.$parID.html} +
{$form.$elemName.$parID.label}
+
{$form.$elemName.$parID.html}
{/if} -- 2.25.1