From: Seamus Lee Date: Fri, 10 May 2019 00:16:19 +0000 (+1000) Subject: Add in Wrapper template around DatePickerRange template to have better layout of... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b04ec4797a0162a3d7a44dbc68c409aa08620e80;p=civicrm-core.git Add in Wrapper template around DatePickerRange template to have better layout of Activity Search Form Allow for colspan and class to be set when adding in wrapper Update the wrapper to be only one td and not all and fix activity template appropriately --- diff --git a/templates/CRM/Activity/Form/Search/Common.tpl b/templates/CRM/Activity/Form/Search/Common.tpl index 315f6cd34e..e9ac9139fa 100644 --- a/templates/CRM/Activity/Form/Search/Common.tpl +++ b/templates/CRM/Activity/Form/Search/Common.tpl @@ -89,9 +89,8 @@ - - {include file="CRM/Core/DatePickerRange.tpl" fieldName="activity_date_time"} - + {include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="activity_date_time" colspan="2"} +   diff --git a/templates/CRM/Core/DatePickerRangeWrapper.tpl b/templates/CRM/Core/DatePickerRangeWrapper.tpl new file mode 100644 index 0000000000..9396375a38 --- /dev/null +++ b/templates/CRM/Core/DatePickerRangeWrapper.tpl @@ -0,0 +1,29 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM version 5 | + +--------------------------------------------------------------------+ + | Copyright CiviCRM LLC (c) 2004-2018 | + +--------------------------------------------------------------------+ + | 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 | + +--------------------------------------------------------------------+ +*} +{* Wrapper around DatePickerRange TPL file *} + + {include file="CRM/Core/DatePickerRange.tpl" fieldName=$fieldName} +