Skip to content

Commit

Permalink
Merge pull request #14230 from eileenmcnaughton/5.13
Browse files Browse the repository at this point in the history
Fixes to layout on activity date time on search page
  • Loading branch information
seamuslee001 authored May 10, 2019
2 parents 2c3458f + 0032e7a commit f017ce8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CRM/Core/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ public function addDatePickerRange($fieldName, $label, $isDateTime = FALSE, $req
$label,
$options,
$required,
NULL
['class' => 'crm-select2']
);
$attributes = ['format' => 'searchDate'];
$extra = ['time' => $isDateTime];
Expand Down
5 changes: 2 additions & 3 deletions templates/CRM/Activity/Form/Search/Common.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@
</tr>

<tr>
<td>
{include file="CRM/Core/DatePickerRange.tpl" fieldName="activity_date_time"}
</td>
{include file="CRM/Core/DatePickerRangeWrapper.tpl" fieldName="activity_date_time" colspan="2"}
<td>&nbsp;</td>
</tr>
<tr>
<td>
Expand Down
29 changes: 29 additions & 0 deletions templates/CRM/Core/DatePickerRangeWrapper.tpl
Original file line number Diff line number Diff line change
@@ -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 *}
<td {if $colspan} colspan="{$colspan}" {else} colspan="2" {/if} {if $class} class="{$class}" {/if}>
{include file="CRM/Core/DatePickerRange.tpl" fieldName=$fieldName}
</td>

0 comments on commit f017ce8

Please sign in to comment.