From 13d0ffc382cde450bf10bf30f7939ceaad72ed1f Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Sat, 18 May 2013 22:33:03 -0400 Subject: [PATCH] template cleanip --- .../CRM/Contact/Page/View/GroupContact.tpl | 297 +++++++++++------- 1 file changed, 176 insertions(+), 121 deletions(-) diff --git a/templates/CRM/Contact/Page/View/GroupContact.tpl b/templates/CRM/Contact/Page/View/GroupContact.tpl index cee0b16ce9..b33ed1f57b 100644 --- a/templates/CRM/Contact/Page/View/GroupContact.tpl +++ b/templates/CRM/Contact/Page/View/GroupContact.tpl @@ -24,145 +24,200 @@ +--------------------------------------------------------------------+ *}
-{if $groupCount eq 0 AND ! $groupSmart AND ! $groupParent} -
-
 {ts}This contact does not currently belong to any groups.{/ts} -
- {/if} + {if $groupCount eq 0 AND ! $groupSmart AND ! $groupParent} +
+
+  {ts}This contact does not currently belong to any groups.{/ts} +
+ {/if} -{include file="CRM/common/jsortable.tpl"} + {include file="CRM/common/jsortable.tpl"} -{* Include 'add to new group' form if session has edit contact permissions *} -{if $permission EQ 'edit'} - {include file="CRM/Contact/Form/GroupContact.tpl"} -{/if} + {* Include 'add to new group' form if session has edit contact permissions *} + {if $permission EQ 'edit'} + {include file="CRM/Contact/Form/GroupContact.tpl"} + {/if} -{if $groupIn } -
-

{ts}Regular Groups{/ts}

-
{ts 1=$displayName}%1 has joined or been added to these group(s).{/ts}
- {strip} - - + {if $groupIn } +
+

{ts}Regular Groups{/ts}

+
{ts 1=$displayName}%1 has joined or been added to these group(s).{/ts}
+ {strip} +
+ - - - - - - - {foreach from=$groupIn item=row} - - - - - + + + + - {/foreach} -
{ts}Group{/ts}{ts}Status{/ts}{ts}Date Added{/ts}
{$row.title}{ts 1=$row.in_method}Added (by %1){/ts}{$row.in_date|crmDate}{if $permission EQ 'edit'}[ {ts}Remove{/ts} ]{/if} - {if $permission EQ 'edit'}[ {ts}Delete{/ts} ]{/if} - {ts}Group{/ts}{ts}Status{/ts}{ts}Date Added{/ts}
- {/strip} -{/if} + + {foreach from=$groupIn item=row} + + + + {$row.title} + + + {ts 1=$row.in_method}Added (by %1){/ts} + {$row.in_date|crmDate} + + {if $permission EQ 'edit'} + + [ {ts}Remove{/ts} ] + {/if} + {if $permission EQ 'edit'} + [ {ts}Delete{/ts} + ] + {/if} + + + {/foreach} + + {/strip} + {/if} -{if $groupSmart} -
-

{ts}Smart Groups{/ts}

-
{ts 1=$displayName}%1 is currently included in these Smart group(s) (e.g. saved searches).{/ts}
- {strip} - - - - - - - - {foreach from=$groupSmart item=row} - - - + {if $groupSmart} +
+

{ts}Smart Groups{/ts}

+
+ {ts 1=$displayName}%1 is currently included in these Smart group(s) (e.g. saved searches).{/ts} +
+ {strip} +
{ts}Group{/ts}{ts}Description{/ts}
{$row.title}{$row.description}
+ + + + - {/foreach} -
{ts}Group{/ts}{ts}Description{/ts}
- {/strip} -{/if} + + {foreach from=$groupSmart item=row} + + + + {$row.title} + + + {$row.description} + + {/foreach} + + {/strip} + {/if} -{if $groupParent} -
-

{ts}Parent Groups{/ts}

-
{ts 1=$displayName}%1 is included in these Parent group(s) based on belonging to group(s) which are their children.{/ts}
- {strip} - - - - - - - {foreach from=$groupParent item=row} - - + {if $groupParent} +
+

{ts}Parent Groups{/ts}

+
+ {ts 1=$displayName}%1 is included in these Parent group(s) based on belonging to group(s) which are their + children.{/ts} +
+ {strip} +
{ts}Group{/ts}
{$row.title}
+ + + - {/foreach} -
{ts}Group{/ts}
- {/strip} -{/if} + + {foreach from=$groupParent item=row} + + + + {$row.title} + + + + {/foreach} + + {/strip} + {/if} -{if $groupPending } -
-

{ts}Pending{/ts}

-
{ts}Joining these group(s) is pending confirmation by this contact.{/ts}
- {strip} - - - - - - - - - - {foreach from=$groupPending item=row} - - + {if $groupPending } +
+

{ts}Pending{/ts}

+
{ts}Joining these group(s) is pending confirmation by this contact.{/ts}
+ {strip} +
{ts}Group{/ts}{ts}Status{/ts}{ts}Date Pending{/ts}
{$row.title}
+ + + + + + + + + {foreach from=$groupPending item=row} + + - - - {/foreach} -
{ts}Group{/ts}{ts}Status{/ts}{ts}Date Pending{/ts}
+ + {$row.title} + + {ts 1=$row.pending_method}Pending (by %1){/ts} {$row.pending_date|crmDate}{if $permission EQ 'edit'}[ {ts}Remove{/ts} ]{/if} - {if $permission EQ 'edit'}[ {ts}Delete{/ts} ]{/if} + + {if $permission EQ 'edit'} + + [ {ts}Remove{/ts} ] + {/if} + {if $permission EQ 'edit'} + + [ {ts}Delete{/ts} ] + {/if}
- {/strip} -{/if} + + {/foreach} + + {/strip} + {/if} -{if $groupOut } -
-

{ts}Past Groups{/ts}

+ {if $groupOut} +
+

{ts}Past Groups{/ts}

{ts 1=$displayName}%1 is no longer part of these group(s).{/ts}
{strip} - - - - - - - - - - - {foreach from=$groupOut item=row} - - - +
{ts}Group{/ts}{ts}Status{/ts}{ts}Date Added{/ts}{ts}Date Removed{/ts}
{$row.title}{ts 1=$row.out_method}Removed (by %1){/ts}
+ + + + + + + + + + {foreach from=$groupOut item=row} + + + - - - {/foreach} -
{ts}Group{/ts}{ts}Status{/ts}{ts}Date Added{/ts}{ts}Date Removed{/ts}
+ + {$row.title} + + {ts 1=$row.out_method}Removed (by %1){/ts} {$row.date_added|crmDate} {$row.out_date|crmDate}{if $permission EQ 'edit'}[ {ts}Rejoin Group{/ts} ]{/if} - {if $permission EQ 'edit'}[ {ts}Delete{/ts} ]{/if} -
- {/strip} + {if $permission EQ 'edit'} + + [ {ts}Rejoin Group{/ts} ]{/if} + {if $permission EQ 'edit'} + + [ {ts}Delete{/ts} ]{/if} + + + {/foreach} + + {/strip} {/if}
\ No newline at end of file -- 2.25.1