* Adjust code for config/form
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<?php
|
||||
$config->project->form = new stdclass();
|
||||
|
||||
$config->project->form->create = array();
|
||||
$config->project->form->edit = array();
|
||||
$config->project->form->close = array();
|
||||
$config->project->form->start = array();
|
||||
|
||||
$config->project->form->create['parent'] = array('type' => 'int', 'required' => false, 'default' => '');
|
||||
$config->project->form->create['name'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
|
||||
$config->project->form->create['code'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
|
||||
@@ -17,7 +22,6 @@ $config->project->form->create['whitelist'] = array('type' => 'array', 'requir
|
||||
$config->project->form->create['auth'] = array('type' => 'array', 'required' => false, 'default' => '');
|
||||
$config->project->form->create['model'] = array('type' => 'string', 'required' => false, 'default' => '');
|
||||
|
||||
$config->project->form->eidt = array();
|
||||
$config->project->form->edit['parent'] = array('type' => 'int', 'required' => false, 'default' => '');
|
||||
$config->project->form->edit['name'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
|
||||
$config->project->form->edit['code'] = array('type' => 'string', 'required' => true, 'filter' => 'trim');
|
||||
@@ -33,6 +37,7 @@ $config->project->form->edit['acl'] = array('type' => 'string', 'required
|
||||
$config->project->form->edit['whitelist'] = array('type' => 'array', 'required' => false, 'default' => '', 'filter' => 'join');
|
||||
$config->project->form->edit['auth'] = array('type' => 'array', 'required' => false, 'default' => '');
|
||||
$config->project->form->edit['model'] = array('type' => 'string', 'required' => false, 'default' => '');
|
||||
|
||||
$config->project->form->start['realBegan'] = array('type' => 'date', 'required' => true, 'filter' => 'trim');
|
||||
|
||||
$config->project->form->close['realEnd'] = array('type' => 'date', 'required' => true, 'filter' => 'trim');
|
||||
|
||||
Reference in New Issue
Block a user