generator.yml 1.77 KB
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
generator:
  class: sfDoctrineGenerator
  param:
    model_class:           BasketOrder
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          basket_order
    with_doctrine_route:   true
    actions_base_class:    sfActions
    order: 5
    hr: true

    config:
      actions: ~
      fields:
        id: {label: ' заказа'}
        username: {label: 'Имя'}
        phone: {label: 'Телефон'}
        email: {label: 'Эл. почта'}
        delivery_price: {label: 'Цена доставки'}
        delivery_type: {label: 'Вид доставки'}
        delivery_address: {label: 'Адрес доставки'}
        comment: {label: 'Пожелание к заказу'}
        payment_type: {label: 'Тип оплаты'}
        total_sum: {label: 'Сумма'}
        is_confirm: {label: 'Подтверждён'}
        is_confirm_admin: {label: 'Подтверждение администратором'}
        is_payed: {label: 'Оплачен'}
        is_given: {label: 'Отгружен'}
        created_at: {label: 'Дата'}
        updated_at: {label: 'Дата обновления'}
      list:
        layout: ~
        title: 'Заказы'
        display: [id, username, phone, delivery_type, is_confirm, is_payed, is_given, created_at]
        max_per_page: 100
        sort: [created_at, DESC]
        object_actions:
          _delete: ~
          _edit: ~
        search:
          fields: [username, phone]
        export: false
      filter:
        display: [delivery_type]
      form: ~
      edit:
        title: Редактирование заказа
      new:
        title: Добавление заказа