From 637ca83bc460d9d6f645ab706f838c256b168dbe Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 8 Oct 2013 18:10:52 +0530 Subject: [PATCH] UI changes to Activity Search form --- templates/CRM/Activity/Form/Search.tpl | 64 ++++++---- templates/CRM/Activity/Form/Search/Common.tpl | 116 +++++++++--------- 2 files changed, 98 insertions(+), 82 deletions(-) diff --git a/templates/CRM/Activity/Form/Search.tpl b/templates/CRM/Activity/Form/Search.tpl index 2a92179aa0..31ea3a8dc0 100644 --- a/templates/CRM/Activity/Form/Search.tpl +++ b/templates/CRM/Activity/Form/Search.tpl @@ -61,34 +61,46 @@ {if $rowsEmpty || $rows } -
-{if $rowsEmpty} -
- {include file="CRM/Activity/Form/Search/EmptyResults.tpl"} -
-{/if} +
+ {if $rowsEmpty} +
+ {include file="CRM/Activity/Form/Search/EmptyResults.tpl"} +
+ {/if} -{if $rows} -
- {* Search request has returned 1 or more matching rows. *} + {if $rows} +
+ {* Search request has returned 1 or more matching rows. *} - {* This section handles form elements for action task select and submit *} -
- {include file="CRM/common/searchResultTasks.tpl"} -
- {* This section displays the rows along and includes the paging controls *} -
- {include file="CRM/Activity/Form/Selector.tpl" context="Search"} -
- {* END Actions/Results section *} -
-{/if} -
+ {* This section handles form elements for action task select and submit *} +
+ {include file="CRM/common/searchResultTasks.tpl"} +
+ {* This section displays the rows along and includes the paging controls *} +
+ {include file="CRM/Activity/Form/Selector.tpl" context="Search"} +
+ {* END Actions/Results section *} +
+ {/if} +
{/if} {literal} - + {/literal} diff --git a/templates/CRM/Activity/Form/Search/Common.tpl b/templates/CRM/Activity/Form/Search/Common.tpl index 66ae230c74..16d7e38d09 100644 --- a/templates/CRM/Activity/Form/Search/Common.tpl +++ b/templates/CRM/Activity/Form/Search/Common.tpl @@ -24,7 +24,7 @@ +--------------------------------------------------------------------+ *} - + {$form.activity_role.html} ( -{if $form.activity_type_id} - -
- {foreach from=$form.activity_type_id item="activity_type_val"} -
- {$activity_type_val.html} -
- {/foreach} -
- + {if $form.activity_type_id} + +
+ {foreach from=$form.activity_type_id item="activity_type_val"} +
+ {$activity_type_val.html} +
+ {/foreach} +
+ {else} -   -{/if} -{if $form.activity_survey_id || $buildEngagementLevel} - - {if $form.activity_survey_id} -
{$form.activity_survey_id.html} - {/if} - {if $buildEngagementLevel} -

-
{$form.activity_engagement_level.html} - {/if} - -{/if} +   + {/if} + {if $form.activity_survey_id || $buildEngagementLevel} + + {if $form.activity_survey_id} + +
+ {$form.activity_survey_id.html} + {/if} + {if $buildEngagementLevel} +
+
+ +
+ {$form.activity_engagement_level.html} + {/if} + + {/if} -{if $form.activity_tags} - -
- {foreach from=$form.activity_tags item="tag_val"} -
- {$tag_val.html} -
- {/foreach} - -{else} -   -{/if} + {if $form.activity_tags} + +
+ {foreach from=$form.activity_tags item="tag_val"} +
+ {$tag_val.html} +
+ {/foreach} + + {else} +   + {/if} - -{include file="CRM/Core/DateRange.tpl" fieldName="activity_date" from='_low' to='_high'} + + + + {include file="CRM/Core/DateRange.tpl" fieldName="activity_date" from='_low' to='_high'} - {$form.activity_subject.label}
- {$form.activity_subject.html|crmAddClass:big} + {$form.activity_subject.label}
+ {$form.activity_subject.html|crmAddClass:big} - {$form.activity_status.label}
- {$form.activity_status.html} + {$form.activity_status.label}
+ {$form.activity_status.html} {* td intentionally left blank to align the 'is test' widget on the right *} - {$form.activity_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"} + {$form.activity_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}   {$form.activity_test.html} (
{ts}clear{/ts}) @@ -101,18 +109,20 @@ -{include file="CRM/common/Tag.tpl" tagsetType='activity'} + + {include file="CRM/common/Tag.tpl" tagsetType='activity'} + {* campaign in activity search *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''} {if $activityGroupTree} - - - {include file="CRM/Custom/Form/Search.tpl" groupTree=$activityGroupTree showHideLinks=false} - - + + + {include file="CRM/Custom/Form/Search.tpl" groupTree=$activityGroupTree showHideLinks=false} + + {/if} {literal} @@ -155,14 +165,8 @@ campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}