7 Commits

Author SHA1 Message Date
77b7333fea 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.
2016-03-09 14:31:42 +01:00
c60d6acf97 An activity may have multiple reasons
The relationship between Activity and Reasons is now many-to-many.

Some improvement in show activity layout.

refs #4 #7
2016-02-22 14:48:35 +01:00
fc8c018159 add tests for authentication/authorization
Check the user which access to creation, modification, list, is
authorized to see the user and have the permissions on activity.
2015-10-27 21:14:03 +01:00
fee5b00e35 use random activityType, activityReason, scope in test 2015-10-08 22:36:08 +02:00
e79ca23f2c add test for complete activity crud (without errors)
+ fix some errors in controller (discovered with tests)
2015-10-08 18:24:49 +02:00
6f9015ac08 mark test as skipped for now 2015-07-05 11:20:43 +02:00
Marc Ducobu
5738de5033 Adding generated files 2015-07-01 13:34:14 +02:00