From 841cb24e3c267be840aaee37a793562b0e6a61ba Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 2 Dec 2014 11:18:45 -0500 Subject: [PATCH] CRM-13611 - Add tabbed interface to report UI --- templates/CRM/Report/Form/Criteria.tpl | 11 ++-- templates/CRM/Report/Form/Fields.tpl | 91 +++++++++++++++++--------- templates/CRM/Report/Form/Instance.tpl | 16 +++-- 3 files changed, 74 insertions(+), 44 deletions(-) diff --git a/templates/CRM/Report/Form/Criteria.tpl b/templates/CRM/Report/Form/Criteria.tpl index d7549294ae..904ec15822 100644 --- a/templates/CRM/Report/Form/Criteria.tpl +++ b/templates/CRM/Report/Form/Criteria.tpl @@ -25,7 +25,7 @@ *} {* Report form criteria section *} {if $colGroups} -
+
{if $componentName eq 'Grant'}

{ts}Include these Statistics{/ts}

{else} @@ -64,7 +64,7 @@ {/if} {if $groupByElements} -
+

{ts}Group by Columns{/ts}

{assign var="count" value="0"} @@ -90,7 +90,7 @@ {/if} {if $orderByOptions} -
+

{ts}Order by Columns{/ts}

@@ -161,7 +161,7 @@ {/if} {if $otherOptions} -
+

{ts}Other Options{/ts}

{assign var="optionCount" value=0} @@ -182,7 +182,7 @@ {/if} {if $filters} -
+

{ts}Set Filters{/ts}

{assign var="counter" value=1} @@ -281,4 +281,3 @@ {/literal} -
{$form.buttons.html}
diff --git a/templates/CRM/Report/Form/Fields.tpl b/templates/CRM/Report/Form/Fields.tpl index 1db83d6569..c66ac250be 100644 --- a/templates/CRM/Report/Form/Fields.tpl +++ b/templates/CRM/Report/Form/Fields.tpl @@ -25,49 +25,76 @@ *} {if !$printOnly} {* NO print section starts *} {if $criteriaForm} -
{* criteria section starts *} -
-
- {ts}Report Criteria{/ts} -
-
-
{* search section starts *} +
{* criteria section starts *} +
+ {*tab navigation bar*} + + + {*criteria*} {include file="CRM/Report/Form/Criteria.tpl"} -
{* search div section ends *} -
-
-
{* criteria section ends *} + + {*settings*} + {if $instanceForm OR $instanceFormError} + {include file="CRM/Report/Form/Instance.tpl"} {/if} +
{* end mainTabContainer *} -{if $instanceForm OR $instanceFormError} {* settings section starts *} -
-
- {if $mode eq 'template'}{ts}Create Report{/ts}{else}{ts}Report Settings{/ts}{/if} -
-
-
-
- {include file="CRM/Report/Form/Instance.tpl"} {assign var=save value="_qf_"|cat:$form.formName|cat:"_submit_save"} {assign var=next value="_qf_"|cat:$form.formName|cat:"_submit_next"}
+ {$form.buttons.html} {$form.$save.html} {if $mode neq 'template' && $form.$next} {$form.$next.html} {/if}
-
-
-
-
-{if $updateReportButton} -
- {$form.$save.html} - {if $mode neq 'template' && $form.$next} {* Removed Save a Copy button here since user doesn't have chance to set a new title. *} - {ts}To save a copy with updated criteria click Report Settings above and update the Report Title. Then click Save a Copy.{/ts} +
{* criteria section ends *} {/if} -
-{/if} -{/if} {* settings section ends *} + +{literal} + +{/literal} {/if} {* NO print section ends *} diff --git a/templates/CRM/Report/Form/Instance.tpl b/templates/CRM/Report/Form/Instance.tpl index 0e6e1e7362..203f72182e 100644 --- a/templates/CRM/Report/Form/Instance.tpl +++ b/templates/CRM/Report/Form/Instance.tpl @@ -23,7 +23,8 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -

{ts}General Settings{/ts}

+
+

{ts}Display Settings{/ts}

@@ -42,10 +43,11 @@
{$form.title.label} {help id="id-report_title" file="CRM/Report/Form/Settings.hlp"}{$form.report_footer.html}
-
+
-

{ts}Email Delivery Settings{/ts} {help id="id-email_settings" file="CRM/Report/Form/Settings.hlp"}

- +
+ +
@@ -59,9 +61,10 @@ -
+
-

{ts}Other Settings{/ts}

+
+

{ts}User Access{/ts}

@@ -104,6 +107,7 @@
{$form.is_navigation.label}{$form.row_count.html}
+
{include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="is_navigation" -- 2.25.1