ActionParamsController.php
2.74 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
class ActionParamsController extends AdminController
{
public function actions()
{
return array(
'general' => array(
'class' => 'StaticDataEditor',
'submitLabel' => 'Сохранить',
'section' => 'action',
'key' => 'general',
'view' => '/static_editor',
'model' => array(
'schema' => array(
'gallery_id' => array(
'label' => 'Слайды под шапкой',
'default' => '',
),
'contacts' => array(
'label' => 'Контакты для страниц раздела(по умолчанию)',
'default' => '',
),
),
'rules' => array(),
),
'form' => array(
array(
'type' => 'inputWidget',
'class' => 'ContactsSelect',
'attribute' => 'contacts',
'config' => array(),
),
array(
'type' => 'inputWidget',
'class' => 'GalleryInput',
'attribute' => 'gallery_id',
'config' => array(
'versions' => array(
'gallery' => array(
'centeredpreview' => array(1008, 115),
)
),
'name' => true,
'description' => true,
'htmlOptions' => array('style' => 'float:left'),
),
),
),
'i18nModel' => array(
'schema' => array(
),
'rules' => array(),
),
'i18nForm' => array(
),
),
);
}
public function getSideMenu()
{
$res = array(
array(
'label' => 'Страницы',
'items' => array(
array(
'label' => 'Общие параметры раздела',
'url' => array('/' . $this->module->id . '/' . $this->id . '/general'),
'icon' => 'icon-file',
'active' => '/' . $this->module->id . '\/' . $this->id . '\/general/',
),
),
),
);
return $res;
}
}