Skip to content
Snippets Groups Projects
Commit c1164049 authored by eileen's avatar eileen
Browse files

Remove last free jcalendar

This is the last jcalendar outside of buildDateRange instances.

It turns out to be 'just a form' and pretty straight forward
parent 2c409890
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,15 @@
*/
class CRM_Campaign_Form_Search_Campaign extends CRM_Core_Form {
/**
* Explicitly declare the entity api name.
*
* @return string
*/
public function getDefaultEntity() {
return 'Campaign';
}
/**
* Are we forced to run a search.
*
......@@ -78,11 +87,8 @@ class CRM_Campaign_Form_Search_Campaign extends CRM_Core_Form {
//campaign description.
$this->add('text', 'description', ts('Description'), $attributes['description']);
//campaign start date.
$this->addDate('start_date', ts('From'), FALSE, ['formatType' => 'searchDate']);
//campaign end date.
$this->addDate('end_date', ts('To'), FALSE, ['formatType' => 'searchDate']);
$this->add('datepicker', 'start_date', ts('Campaign Start Date'), [], FALSE, ['time' => FALSE]);
$this->add('datepicker', 'end_date', ts('Campaign End Date'), [], FALSE, ['time' => FALSE]);
//campaign type.
$campaignTypes = CRM_Campaign_PseudoConstant::campaignType();
......
......@@ -99,10 +99,10 @@
<tr>
<td>{$form.start_date.label}<br/>
{include file="CRM/common/jcalendar.tpl" elementName=start_date}
{$form.start_date.html}
</td>
<td>{$form.end_date.label}<br/>
{include file="CRM/common/jcalendar.tpl" elementName=end_date}
{$form.end_date.html}
</td>
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment