This commit is contained in:
2018-07-04 12:37:18 +02:00
parent 911b7e78be
commit 2676fe681e
10 changed files with 200 additions and 9 deletions
@@ -0,0 +1,68 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/r2c.net/user/plugins/admin/blueprints/admin/pages/modular_new.yaml',
'modified' => 1529476888,
'data' => [
'rules' => [
'slug' => [
'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
'min' => 1,
'max' => 200
]
],
'form' => [
'validation' => 'loose',
'fields' => [
'section' => [
'type' => 'section',
'title' => 'PLUGIN_ADMIN.ADD_MODULAR_CONTENT'
],
'title' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.PAGE_TITLE',
'validate' => [
'required' => true
]
],
'folder' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
'validate' => [
'rule' => 'slug',
'required' => true
]
],
'route' => [
'type' => 'parents',
'label' => 'PLUGIN_ADMIN.PAGE',
'classes' => 'fancy',
'validate' => [
'required' => true
]
],
'name' => [
'type' => 'select',
'classes' => 'fancy',
'label' => 'PLUGIN_ADMIN.MODULAR_TEMPLATE',
'help' => 'PLUGIN_ADMIN.PAGE_FILE_HELP',
'default' => 'default',
'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesModularTypes',
'validate' => [
'required' => true
]
],
'modular' => [
'type' => 'hidden',
'default' => 1,
'validate' => [
'type' => 'bool'
]
],
'blueprint' => [
'type' => 'blueprint'
]
]
]
]
];
@@ -0,0 +1,44 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/r2c.net/user/plugins/admin/blueprints/admin/pages/new_folder.yaml',
'modified' => 1529476888,
'data' => [
'rules' => [
'slug' => [
'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
'min' => 1,
'max' => 200
]
],
'form' => [
'validation' => 'loose',
'fields' => [
'section' => [
'type' => 'section',
'title' => 'PLUGIN_ADMIN.ADD_FOLDER'
],
'folder' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
'help' => 'PLUGIN_ADMIN.FOLDER_NAME_HELP',
'validate' => [
'rule' => 'slug',
'required' => true
]
],
'route' => [
'type' => 'parents',
'label' => 'PLUGIN_ADMIN.PARENT_PAGE',
'classes' => 'fancy',
'validate' => [
'required' => true
]
],
'blueprint' => [
'type' => 'blueprint'
]
]
]
]
];
@@ -0,0 +1,79 @@
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/mnt/data/Sites/r2c.net/user/plugins/admin/blueprints/admin/pages/new.yaml',
'modified' => 1529476888,
'data' => [
'rules' => [
'slug' => [
'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
'min' => 1,
'max' => 200
]
],
'form' => [
'validation' => 'loose',
'fields' => [
'section' => [
'type' => 'section',
'title' => 'PLUGIN_ADMIN.ADD_PAGE'
],
'title' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.PAGE_TITLE',
'help' => 'PLUGIN_ADMIN.PAGE_TITLE_HELP',
'validate' => [
'required' => true
]
],
'folder' => [
'type' => 'text',
'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
'help' => 'PLUGIN_ADMIN.FOLDER_NAME_HELP',
'validate' => [
'rule' => 'slug',
'required' => true
]
],
'route' => [
'type' => 'parents',
'label' => 'PLUGIN_ADMIN.PARENT_PAGE',
'classes' => 'fancy',
'validate' => [
'required' => true
]
],
'name' => [
'type' => 'select',
'classes' => 'fancy',
'label' => 'PLUGIN_ADMIN.PAGE_FILE',
'help' => 'PLUGIN_ADMIN.PAGE_FILE_HELP',
'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesTypes',
'data-default@' => '\\Grav\\Plugin\\Admin\\Admin::getLastPageName',
'validate' => [
'required' => true
]
],
'visible' => [
'type' => 'toggle',
'label' => 'PLUGIN_ADMIN.VISIBLE',
'help' => 'PLUGIN_ADMIN.VISIBLE_HELP',
'highlight' => '',
'default' => '',
'options' => [
'' => 'Auto',
1 => 'PLUGIN_ADMIN.YES',
0 => 'PLUGIN_ADMIN.NO'
],
'validate' => [
'type' => 'bool',
'required' => true
]
],
'blueprint' => [
'type' => 'blueprint'
]
]
]
]
];
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
{"02-07-2018":140,"03-07-2018":176}
{"02-07-2018":140,"03-07-2018":176,"04-07-2018":9}
+1 -1
View File
@@ -1 +1 @@
{"07-2018":316}
{"07-2018":325}
+1 -1
View File
@@ -1 +1 @@
{"\/":316}
{"\/":325}
+1 -1
View File
@@ -1 +1 @@
{"4b84b15bff6ee5796152495a230e45e3d7e947d9":1530632643}
{"4b84b15bff6ee5796152495a230e45e3d7e947d9":1530699635}