Raw integration of accompanying person (with respect of 'cahier de cahrge)

This commit is contained in:
Marc Ducobu
2015-08-24 14:41:24 +02:00
parent 9decbf119a
commit f967285e34
15 changed files with 148 additions and 101 deletions

View File

@@ -7,13 +7,13 @@ Chill\PersonBundle\Entity\AccompanyingPeriod:
id: true
generator: { strategy: AUTO }
fields:
date_opening:
openingDate:
type: date
date_closing:
closingDate:
type: date
default: null
nullable: true
memo:
remark:
type: text
manyToOne:
person:

View File

@@ -48,11 +48,11 @@ chill_person_search:
chill_person_accompanying_period_list:
path: /{_locale}/person/{person_id}/accompanying-period
defaults: { _controller: ChillPersonBundle:AccompanyingPeriod:list }
# options:
# menus:
# person:
# order: 100
# label: menu.person.history
options:
menus:
person:
order: 100
label: Accompanying period list
chill_person_accompanying_period_create:
path: /{_locale}/person/{person_id}/accompanying-period/create

View File

@@ -35,12 +35,12 @@ Chill\PersonBundle\Entity\Person:
Chill\PersonBundle\Entity\AccompanyingPeriod:
properties:
date_opening:
openingDate:
- Date:
message: 'Opening date is not valid'
- NotNull:
message: 'Opening date can not be null'
date_closing:
closingDate:
- Date:
message: 'Closing date is not valid'
- NotNull: