<?php
global $lang, $app;
$config->publishtemplate = new stdClass();
$config->publishtemplate->create = new stdClass();
$config->publishtemplate->create->requiredFields = 'name,system,systemID';

$config->publishtemplate->edit = new stdClass();
$config->publishtemplate->edit->requiredFields = 'name,system,systemID';

$config->publishtemplate->cne = new stdClass();
$config->publishtemplate->cne->reservedDirs = ['/', '/root', '/proc', '/etc', '/dev', '/usr', '/tmp', '/var', '/run', '/boot', '/sys', '/bin', '/sbin', '/lib', '/lib32', '/lib64', '/home'];

$config->publishtemplate->actionList = array();
$config->publishtemplate->actionList['edit']['icon']        = 'edit';
$config->publishtemplate->actionList['edit']['text']        = $lang->edit;
$config->publishtemplate->actionList['edit']['hint']        = $lang->edit;
$config->publishtemplate->actionList['edit']['showText']    = true;
$config->publishtemplate->actionList['edit']['url']         = array('module' => 'publishtemplate', 'method' => 'edit', 'params' => 'id={id}&type={system}');
$config->publishtemplate->actionList['edit']['data-toggle'] = 'modal';

$config->publishtemplate->actionList['delete']['icon']         = 'trash';
$config->publishtemplate->actionList['delete']['text']         = $lang->delete;
$config->publishtemplate->actionList['delete']['hint']         = $lang->delete;
$config->publishtemplate->actionList['delete']['showText']     = true;
$config->publishtemplate->actionList['delete']['ajaxSubmit']   = true;
$config->publishtemplate->actionList['delete']['data-confirm'] = array('message' => $lang->publishtemplate->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
$config->publishtemplate->actionList['delete']['url']          = array('module' => 'publishtemplate', 'method' => 'delete', 'params' => 'id={id}&type={system}');

$config->publishtemplate->helpURL = 'https://www.zentao.net/book/devops/1697.html';
