From: Kurund Jalmi Date: Mon, 13 May 2013 16:21:45 +0000 (-0400) Subject: template cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=55a66cac42af6525924c8ad93921df23c1402731;p=civicrm-core.git template cleanup --- diff --git a/templates/CRM/Campaign/Form/Search/Campaign.tpl b/templates/CRM/Campaign/Form/Search/Campaign.tpl index 8b547c6992..0d5a0bcc62 100755 --- a/templates/CRM/Campaign/Form/Search/Campaign.tpl +++ b/templates/CRM/Campaign/Form/Search/Campaign.tpl @@ -25,253 +25,263 @@ *} {if !$hasCampaigns} -
-
  - {ts}No campaigns found.{/ts} -
- - - +
+
+   + {ts}No campaigns found.{/ts} +
+ {elseif $buildSelector} - {* load campaign selector *} - - {include file="CRM/common/enableDisable.tpl"} - - {literal} - - {/literal} - - - - - - +{* load campaign selector *} + + {include file="CRM/common/enableDisable.tpl"} + + {literal} + + {/literal} +
{ts}Campaign ID{/ts}{ts}Campaign Name{/ts}
+ + + + - - - + + + - + - + - - - -
{ts}Campaign ID{/ts}{ts}Campaign Name{/ts} {ts}Title{/ts}{ts}Description{/ts}{ts}Start Date{/ts}{ts}End Date{/ts}{ts}Description{/ts}{ts}Start Date{/ts}{ts}End Date{/ts} {ts}Type ID{/ts} {ts}Type{/ts} {ts}Status ID{/ts}{ts}Status{/ts}{ts}Status{/ts} {ts}Is Active?{/ts}{ts}Active?{/ts}{ts}Active?{/ts}
- + + + + {else} + +{* build search form here *} - - - {* build search form here *} - - {* Search form and results for campaigns *} -
+{* Search form and results for campaigns *} +
{assign var='searchForm' value="search_form_$searchFor"} -
+
- {ts}Search Campaigns{/ts} -
+ {ts}Search Campaigns{/ts} +
+
- {strip} - - - - - - - - - - - - - - - - - - - -
{$form.campaign_title.label}
- {$form.campaign_title.html}   -
- {$form.description.label}
- {$form.description.html|crmAddClass:huge} -
{$form.start_date.label}
- {include file="CRM/common/jcalendar.tpl" elementName=start_date} -
{$form.end_date.label}
- {include file="CRM/common/jcalendar.tpl" elementName=end_date} -
{$form.campaign_type_id.label}
- {$form.campaign_type_id.html} -
{$form.status_id.label}
- {$form.status_id.html} -
- {if $context eq 'search'} - {$form.buttons.html} - {else} - {ts}Search{/ts} - {/if} -
- {/strip} + {strip} + + + + + + + + + + + + + + + + + + + +
{$form.campaign_title.label}
+ {$form.campaign_title.html}   +
+ {$form.description.label}
+ {$form.description.html|crmAddClass:huge} +
{$form.start_date.label}
+ {include file="CRM/common/jcalendar.tpl" elementName=start_date} +
{$form.end_date.label}
+ {include file="CRM/common/jcalendar.tpl" elementName=end_date} +
{$form.campaign_type_id.label}
+ {$form.campaign_type_id.html} +
{$form.status_id.label}
+ {$form.status_id.html} +
+ {if $context eq 'search'} + {$form.buttons.html} + {else} + {ts}Search{/ts} + {/if} +
+ {/strip}
- {* search form ends here *} - -
- +{* search form ends here *} +
{/if} {* end of search form build *} {literal} {/literal}