From fd7a66d1d390ce2e9a88026b3cc36982d39c621d Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Sun, 9 Oct 2022 17:42:07 -0600 Subject: [PATCH] clarify nested ifs --- .../CRM/Contact/Page/View/GroupContact.tpl | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/templates/CRM/Contact/Page/View/GroupContact.tpl b/templates/CRM/Contact/Page/View/GroupContact.tpl index d4163ce137..9089c5c103 100644 --- a/templates/CRM/Contact/Page/View/GroupContact.tpl +++ b/templates/CRM/Contact/Page/View/GroupContact.tpl @@ -141,22 +141,25 @@ {$row.out_date|crmDate} {if $permission EQ 'edit'} - {if $row.saved_search_id} - - {ts}Manual Add{/ts} - {else} - - {ts}Rejoin Group{/ts} - {/if} - - - {if $row.saved_search_id} - - {else} - - {/if} - {ts}Delete{/ts} - + {if $row.saved_search_id} + + {ts}Manual Add{/ts} + {else} + + {ts}Rejoin Group{/ts} + {/if} + + + + {if $row.saved_search_id} + + {ts}Delete{/ts} + + {else} + + {ts}Delete{/ts} + + {/if} {/if} -- 2.25.1