From b53239024638373224eae4a26f1bf96a77b12153 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 12 Nov 2015 19:36:09 -0500 Subject: [PATCH] Date preferences form cleanup --- CRM/Admin/Page/PreferencesDate.php | 2 ++ templates/CRM/Admin/Form/PreferencesDate.tpl | 2 -- templates/CRM/Admin/Page/PreferencesDate.tpl | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CRM/Admin/Page/PreferencesDate.php b/CRM/Admin/Page/PreferencesDate.php index 698773a5e0..933265a7c8 100644 --- a/CRM/Admin/Page/PreferencesDate.php +++ b/CRM/Admin/Page/PreferencesDate.php @@ -43,6 +43,8 @@ class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic { */ static $_links = NULL; + public $useLivePageJS = TRUE; + /** * Get BAO Name. * diff --git a/templates/CRM/Admin/Form/PreferencesDate.tpl b/templates/CRM/Admin/Form/PreferencesDate.tpl index 8c122a1d68..67fbff4c9c 100644 --- a/templates/CRM/Admin/Form/PreferencesDate.tpl +++ b/templates/CRM/Admin/Form/PreferencesDate.tpl @@ -25,7 +25,6 @@ *} {* this template is used for adding/editing location type *}
-
{ts}Edit Date Settings{/ts}
{include file="CRM/common/formButtons.tpl" location="top"}
@@ -50,5 +49,4 @@
{include file="CRM/common/formButtons.tpl" location="bottom"}
-
diff --git a/templates/CRM/Admin/Page/PreferencesDate.tpl b/templates/CRM/Admin/Page/PreferencesDate.tpl index 5c64d3ba52..0c6d319d81 100644 --- a/templates/CRM/Admin/Page/PreferencesDate.tpl +++ b/templates/CRM/Admin/Page/PreferencesDate.tpl @@ -23,14 +23,13 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -
- {capture assign=crmURL}{crmURL p='civicrm/admin/setting/date' q='action=reset=1'}{/capture} - {ts 1=$crmURL}Changing the parameters here affects the input and display for specific fields types. Setting the default date format for the entire site is a Localisation setting. See Administer > Localization > Date Formats{/ts} -
- {if $action eq 1 or $action eq 2 or $action eq 8} {include file="CRM/Admin/Form/PreferencesDate.tpl"} {else} +
+ {capture assign=crmURL}{crmURL p='civicrm/admin/setting/date' q='action=reset=1'}{/capture} + {ts 1=$crmURL}Changing the parameters here affects the input and display for specific fields types. Setting the default date format for the entire site is a Localisation setting. See Administer > Localization > Date Formats{/ts} +
-- 2.25.1