44 lines
1.9 KiB
PHP
44 lines
1.9 KiB
PHP
<?php
|
|
global $lang;
|
|
|
|
$config->branch = new stdclass();
|
|
$config->branch->create = new stdclass();
|
|
$config->branch->edit = new stdclass();
|
|
|
|
$config->branch->create->requiredFields = 'name';
|
|
$config->branch->edit->requiredFields = 'name,status';
|
|
|
|
$config->branch->actionList['close']['icon'] = 'off';
|
|
$config->branch->actionList['close']['hint'] = $lang->branch->close;
|
|
$config->branch->actionList['close']['text'] = $lang->branch->close;
|
|
$config->branch->actionList['close']['url'] = 'javascript:changeStatus("{id}", "close")';
|
|
|
|
$config->branch->actionList['activate']['icon'] = 'magic';
|
|
$config->branch->actionList['activate']['hint'] = $lang->branch->activate;
|
|
$config->branch->actionList['activate']['text'] = $lang->branch->activate;
|
|
$config->branch->actionList['activate']['url'] = 'javascript:changeStatus("{id}", "active")';
|
|
|
|
$config->branch->actionList['edit']['icon'] = 'edit';
|
|
$config->branch->actionList['edit']['hint'] = $lang->branch->edit;
|
|
$config->branch->actionList['edit']['url'] = helper::createLink('branch', 'edit', 'branchID={id}');
|
|
|
|
$config->branch->dtable = new stdclass();
|
|
|
|
$config->branch->dtable->fieldList['name']['type'] = 'title';
|
|
$config->branch->dtable->fieldList['name']['sortType'] = false;
|
|
|
|
$config->branch->dtable->fieldList['status']['type'] = 'status';
|
|
$config->branch->dtable->fieldList['status']['sortType'] = false;
|
|
$config->branch->dtable->fieldList['status']['statusMap'] = $lang->branch->statusList;
|
|
|
|
$config->branch->dtable->fieldList['createdDate']['type'] = 'date';
|
|
|
|
$config->branch->dtable->fieldList['closedDate']['type'] = 'date';
|
|
|
|
$config->branch->dtable->fieldList['desc']['type'] = 'desc';
|
|
$config->branch->dtable->fieldList['desc']['sortType'] = false;
|
|
|
|
$config->branch->dtable->fieldList['actions']['type'] = 'actions';
|
|
$config->branch->dtable->fieldList['actions']['menu'] = array('edit', 'close|activate');
|
|
$config->branch->dtable->fieldList['actions']['list'] = $config->branch->actionList;
|