From 3286894e487984515ccf07524b3fa18771348ff8 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Sat, 9 May 2020 00:16:13 -0400 Subject: [PATCH] Event aggregate custom search: Remove archaic form patterns --- .../Form/Search/Custom/EventDetails.tpl | 73 ++++++++----------- 1 file changed, 32 insertions(+), 41 deletions(-) diff --git a/templates/CRM/Contact/Form/Search/Custom/EventDetails.tpl b/templates/CRM/Contact/Form/Search/Custom/EventDetails.tpl index 42a7bc6904..2ad2a0bea4 100644 --- a/templates/CRM/Contact/Form/Search/Custom/EventDetails.tpl +++ b/templates/CRM/Contact/Form/Search/Custom/EventDetails.tpl @@ -11,40 +11,39 @@ {assign var="showBlock" value="'searchForm'"} {assign var="hideBlock" value="'searchForm_show','searchForm_hide'"}
-
- {ts}open section{/ts} - -
- -
-
- {ts}close section{/ts}{ts}Search Criteria{/ts} -
{include file="CRM/common/formButtons.tpl" location="top"}
- - {* Loop through all defined search criteria fields (defined in the buildForm() function). *} - {foreach from=$elements item=element} - - - +
+
+ {ts}Edit Search Criteria{/ts} +
+
+
+
{include file="CRM/common/formButtons.tpl" location="top"}
+
{$form.$element.label}{$form.$element.html}
+ {* Loop through all defined search criteria fields (defined in the buildForm() function). *} + {foreach from=$elements item=element} + + + + + {/foreach} + + + - {/foreach} - - - - -
{$form.$element.label}{$form.$element.html}
{ts}Event Type{/ts} +
+ {foreach from=$form.event_type_id item="event_val"} +
+ {$event_val.html} +
+ {/foreach} +
+
+
{ts}Event Type{/ts} -
- {foreach from=$form.event_type_id item="event_val"} -
- {$event_val.html} -
- {/foreach} -
-
-
-
{include file="CRM/common/formButtons.tpl" location="bottom"}
-
-
+ +
{include file="CRM/common/formButtons.tpl" location="bottom"}
+
+ + {if $rowsEmpty} {include file="CRM/Contact/Form/Search/Custom/EmptyResults.tpl"} @@ -118,12 +117,4 @@ {* END Actions/Results section *} {/if} - - -- 2.25.1