This commit is contained in:
mayue
2022-08-12 16:39:07 +08:00
parent a978f21f69
commit 4dbf6940e6
2 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ class executionModel extends model
include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php';
}
if(isset($execution->cal) and $execution->acl != 'private') unset($this->lang->execution->menu->settings['subMenu']->whitelist);
if(isset($execution->acl) and $execution->acl != 'private') unset($this->lang->execution->menu->settings['subMenu']->whitelist);
if($execution and $execution->lifetime == 'ops')
{
+16 -8
View File
@@ -70,12 +70,17 @@ form {display: block; margin-top: 0em; margin-block-end: 1em;}
<?php js::set('module', $app->rawModule);?>
<?php js::set('method', $app->rawMethod);?>
<?php js::set('ganttType', $ganttType);?>
<?php js::set('showFields', $showFields);?>
<?php js::set('showFields', $this->config->programplan->ganttCustom->ganttFields);?>
<?php js::set('canGanttEdit', common::hasPriv('programplan', 'ganttEdit'));?>
<div id='mainContent' class='main-content load-indicator' data-loading='<?php echo $lang->programplan->exporting;?>'>
<div class="pull-right btn-toolbar">
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=programplan&section=ganttCustom&key=ganttFields')?>
<?php include '../../common/view/customfield.html.php';?>
<?php
if($this->app->getMethodName() == 'browse')
{
$customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=programplan&section=ganttCustom&key=ganttFields');
include '../../common/view/customfield.html.php';
}
?>
</div>
<form class="main-form form-ajax not-watch">
<div class="example">
@@ -475,12 +480,15 @@ $(function()
<?php
$userList = array();
foreach($users as $account => $realname)
if(!empty($users))
{
$user = array();
$user['key'] = $account;
$user['label'] = $realname;
$userList[] = $user;
foreach($users as $account => $realname)
{
$user = array();
$user['key'] = $account;
$user['label'] = $realname;
$userList[] = $user;
}
}
?>
gantt.serverList("userList", <?php echo json_encode($userList);?>);