CC-6064: Allow shows to be started "now"

This commit is contained in:
Albert Santoni 2015-07-14 10:35:21 -04:00
parent 8e15dd5e99
commit 66caf2574a
9 changed files with 117 additions and 21 deletions

View file

@ -169,6 +169,9 @@ class Application_Service_ShowFormService
}
}
//Disable starting a show 'now' when editing an existing show.
$form->getElement('add_show_start_now')->setAttrib('disable', array('now'));
$form->populate(
array(
'add_show_start_date' => $showStart->format("Y-m-d"),
@ -225,8 +228,12 @@ class Application_Service_ShowFormService
$form->disableStartDateAndTime();
}
//Disable starting a show 'now' when editing an existing show.
$form->getElement('add_show_start_now')->setAttrib('disable', array('now'));
$form->populate(
array(
'add_show_start_now' => 'future',
'add_show_start_date' => $showStart->format("Y-m-d"),
'add_show_start_time' => $showStart->format("H:i"),
'add_show_end_date_no_repeat' => $showEnd->format("Y-m-d"),