Activity Reasons, Activity Reasons Category, Activity Types in Translatable strings

This commit is contained in:
Marc Ducobu
2015-07-02 11:33:16 +02:00
parent e9fdfb341d
commit 5bd8b22569
19 changed files with 228 additions and 51 deletions

View File

@@ -8,9 +8,8 @@ Chill\ActivityBundle\Entity\ActivityReason:
generator:
strategy: AUTO
fields:
label:
type: string
length: 255
name:
type: json_array
active:
type: boolean
manyToOne:

View File

@@ -8,9 +8,8 @@ Chill\ActivityBundle\Entity\ActivityReasonCategory:
generator:
strategy: AUTO
fields:
label:
type: string
length: 255
name:
type: json_array
active:
type: boolean
lifecycleCallbacks: { }

View File

@@ -9,6 +9,5 @@ Chill\ActivityBundle\Entity\ActivityType:
strategy: AUTO
fields:
name:
type: string
length: 255
type: json_array
lifecycleCallbacks: { }

View File

@@ -1,4 +1,4 @@
activitytype:
chill_activity_activitytype:
path: /{_locale}/admin/activitytype/
defaults: { _controller: "ChillActivityBundle:ActivityType:index" }
options:

View File

@@ -1,4 +1,7 @@
services:
# chill_activity.example:
# class: Chill\ActivityBundle\Example
# arguments: [@service_id, "plain_value", %parameter%]
chill.activity.form.type.translatableactivityreasoncategory:
class: Chill\ActivityBundle\Form\Type\TranslatableActivityReasonCategory
arguments:
- "@request_stack"
tags:
- { name: form.type, alias: translatable_activity_reason_category }