mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
Allow encoding of an activity with configuration preset durations
fix #11 The activity form allow to receive pre-configured activity durations. Those duration can be configured through the option chill_activity.form.time_duration : ```yaml chill_activity: form: time_duration: - { label: '12 minutes', seconds: 720 } # - ... ``` If a pre-existing activity receives a different time, the time is added to the list of pre-configured duration time.
This commit is contained in:
@@ -114,10 +114,7 @@ class ActivityControllerTest extends WebTestCase
|
||||
$form = $crawler->selectButton('Ajouter une nouvelle activité')->form(array(
|
||||
'chill_activitybundle_activity'=> array(
|
||||
'date' => '15-01-2015',
|
||||
'durationTime' => array(
|
||||
'hour' => '1',
|
||||
'minute' => '30'
|
||||
),
|
||||
'durationTime' => 600,
|
||||
'remark' => 'blabla',
|
||||
'scope' => $this->getRandomScope('center a_social', 'Center A')->getId(),
|
||||
'type' => $this->getRandomActivityType()->getId()
|
||||
|
Reference in New Issue
Block a user