From 84d4b6a74e99ba05732ac7ace90fd0a9b8a2cb6e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 4 Jul 2017 14:52:33 -0700 Subject: [PATCH] CRM-20816 - Implement new screen `civicrm/admin/setting/case` --- CRM/Admin/Form/Setting/Case.php | 53 +++++++++++++++++++++++ CRM/Case/xml/Menu/Case.xml | 8 ++++ templates/CRM/Admin/Form/Setting/Case.tpl | 53 +++++++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 CRM/Admin/Form/Setting/Case.php create mode 100644 templates/CRM/Admin/Form/Setting/Case.tpl diff --git a/CRM/Admin/Form/Setting/Case.php b/CRM/Admin/Form/Setting/Case.php new file mode 100644 index 0000000000..015b8422dd --- /dev/null +++ b/CRM/Admin/Form/Setting/Case.php @@ -0,0 +1,53 @@ + CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, + 'civicaseAllowMultipleCaseClients' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, + 'civicaseNaturalActivityTypeSort' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, + ); + + /** + * Build the form object. + */ + public function buildQuickForm() { + CRM_Utils_System::setTitle(ts('Settings - CiviCase')); + parent::buildQuickForm(); + } + +} diff --git a/CRM/Case/xml/Menu/Case.xml b/CRM/Case/xml/Menu/Case.xml index 2d270503cc..386cdc131d 100644 --- a/CRM/Case/xml/Menu/Case.xml +++ b/CRM/Case/xml/Menu/Case.xml @@ -64,6 +64,14 @@ Case Details CRM_Case_Page_CaseDetails + + civicrm/admin/setting/case + CiviCase Settings + CRM_Admin_Form_Setting_Case + CiviCase + admin/small/36.png + 380 + civicrm/admin/options/case_type Case Types diff --git a/templates/CRM/Admin/Form/Setting/Case.tpl b/templates/CRM/Admin/Form/Setting/Case.tpl new file mode 100644 index 0000000000..83e05e9f6a --- /dev/null +++ b/templates/CRM/Admin/Form/Setting/Case.tpl @@ -0,0 +1,53 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM version 4.7 | + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC (c) 2004-2017 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM. | + | | + | CiviCRM is free software; you can copy, modify, and distribute it | + | under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | + | | + | CiviCRM is distributed in the hope that it will be useful, but | + | WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License and the CiviCRM Licensing Exception along | + | with this program; if not, contact CiviCRM LLC | + | at info[AT]civicrm[DOT]org. If you have questions about the | + | GNU Affero General Public License or the licensing of CiviCRM, | + | see the CiviCRM license FAQ at http://civicrm.org/licensing | + +--------------------------------------------------------------------+ +*} +
+ {*
*} + {*{ts}...{/ts} {docURL page="Debugging for developers" resource="wiki"}*} + {*
*} +
{include file="CRM/common/formButtons.tpl" location="top"}
+ + + + + + + + + + + + + +
{$form.civicaseRedactActivityEmail.label}{$form.civicaseRedactActivityEmail.html}
+ {*{ts}...{/ts}*} +
{$form.civicaseAllowMultipleCaseClients.label}{$form.civicaseAllowMultipleCaseClients.html}
+ {*{ts}...{/ts}*} +
{$form.civicaseNaturalActivityTypeSort.label}{$form.civicaseNaturalActivityTypeSort.html}
+ {*{ts}...{/ts}*} +
+
{include file="CRM/common/formButtons.tpl" location="bottom"}
+
+
-- 2.25.1