禅道 给禅道缺陷增加是否遗留及来源渠道自定义字段2

简介: 禅道 给禅道缺陷增加是否遗留及来源渠道自定义字段2


当然,也可以这么改,如下

修改

<?php if($this->config->global->flow != 'onlyTest'):?>

<?php $showOS      = strpos(",$showFields,", ',os,')      !== false;?>

<?php $showBrowser = strpos(",$showFields,", ',browser,') !== false;?>

 <tr>

   <th><?php echo $lang->bug->type;?></th>

     <td>

       <div class='input-group' id='bugTypeInputGroup'>

       <?php

          /* Remove the unused types. */

           unset($lang->bug->typeList['designchange']);

           unset($lang->bug->typeList['newfeature']);

           unset($lang->bug->typeList['trackthings']);

           echo html::select('type', $lang->bug->typeList, $type, "class='form-control'");

           ?>

       <?php if($showOS):?>

       <span class='input-group-addon fix-border'><?php echo $lang->bug->os?></span>

       <?php echo html::select('os', $lang->bug->osList, $os, "class='form-control'");?>

       <?php endif;?>

       <?php if($showBrowser):?>

       <span class='input-group-addon fix-border'><?php echo $lang->bug->browser?></span>

       <?php echo html::select('browser', $lang->bug->browserList, $browser, "class='form-control'");?>

       <?php endif;?>

     </div>

   </td>

</tr>

<?php endif;?>

 

 

 

<?php if($this->config->global->flow != 'onlyTest'):?>

<?php $showOS      = strpos(",$showFields,", ',os,')      !== false;?>

<?php $showBrowser = strpos(",$showFields,", ',browser,') !== false;?>

<tr>

 <th><?php echo $lang->bug->isHistory;?></th>

   <td>

    <div class='input-group' >

       <?php echo html::select('isHistory', $lang->bug->isHistoryList, $isHistory, "class='form-control'");?>

       <span class='input-group-addon fix-border'><?php echo $lang->bug->channel;?></span>

       <?php echo html::select('channel', $lang->bug->channelList, $channel, "class='form-control'");?>

     </div>

   </td>

 

   <td>

     <div class='input-group' id='bugTypeInputGroup'>

       <span class='input-group-addon'><?php echo $lang->bug->type;?></span>

       <?php

           /* Remove the unused types. */

           unset($lang->bug->typeList['designchange']);

           unset($lang->bug->typeList['newfeature']);

           unset($lang->bug->typeList['trackthings']);

           echo html::select('type', $lang->bug->typeList, $type, "class='form-control'");

       ?>

       <?php if($showOS):?>

       <span class='input-group-addon fix-border'><?php echo $lang->bug->os?></span>

       <?php echo html::select('os', $lang->bug->osList, $os, "class='form-control'");?>

       <?php endif;?>

       <?php if($showBrowser):?>

       <span class='input-group-addon fix-border'><?php echo $lang->bug->browser?></span>

       <?php echo html::select('browser', $lang->bug->browserList, $browser, "class='form-control'");?>

       <?php endif;?>

     </div>

   </td>

 </tr>

<?php endif;?>

 

 

 

 

修改效果

 

 

 

修改zentaopms/module/bug/view/edit.html.php

如下图,在合适的位置插入以下代码

js::set('isHistory'              , $bug->isHistory);

js::set('channel'                , $bug->channel);

 

 

 

如下图,在合适的位置插入以下代码

<tr>

   <th><?php echo $lang->bug->isHistory;?></th>

       <td><?php echo html::select('isHistory', $lang->bug->isHistoryList, $bug->isHistory, "class='form-control'");?></td>

</tr>

<tr>

   <th><?php echo $lang->bug->channel;?></th>

<td><?php echo html::select('channel', $lang->bug->channelList, $bug->channel, "class='form-control'");?></td>

</tr>

 

 

修改效果

 

 

 

修改zentaopms/module/bug/view/resolve.html.php

如下图,在合适的位置插入以下代码

<tr>

   <th class='w-80px'><?php echo $lang->bug->isHistory;?></th>

   <td class='w-p35-f'><?php echo html::select('isHistory', $lang->bug->isHistoryList, $bug->isHistory, "class='form-control' ");?></td>

</tr>

 

 

 

修改效果

 

 

 

修改zentaopms/module/bug/view/view.html.php

在合适位置插入以下代码

<tr>

<th><?php echo '历史遗留?'?></th>

   <td><span class='<?php echo 'isHistory' . zget($lang->bug->isHistoryList, $bug->isHistory);?>'><?php echo zget($lang->bug->isHistoryList, $bug->isHistory)?></span></td>

</tr>

<tr>

<th><?php echo $lang->bug->channel;?></th>

   <td><span class='<?php echo 'channel' . zget($lang->bug->channelList, $bug->channel);?>'><?php echo zget($lang->bug->channelList, $bug->channel)?></span></td>

</tr>

 

 

 

 

修改效果

 

目录
相关文章
|
8月前
|
关系型数据库 Serverless 分布式数据库
瑶池数据库微课堂 | PolarDB Serverless弹性&价格力观测
瑶池数据库微课堂介绍阿里云PolarDB Serverless的弹性与性价比优势。通过瑶池解决方案体验馆,用户可免费实操,直观感受Serverless的秒级弹性及超高性价比。内容涵盖Serverless概念、操作步骤、压测演示及性能曲线分析,展示PolarDB在不同负载下的自动扩展能力。适合希望了解云数据库弹性和成本效益的技术人员。
141 2
|
11月前
|
运维 Devops 测试技术
CICD与DevOps的详解与比较
CICD与DevOps的详解与比较
913 1
|
人工智能 安全 Java
当一家公司80%的程序员用AI写代码
当一家公司80%的程序员用AI写代码
715 6
禅道——升级后登录未查看到相应的功能模块
禅道——升级后登录未查看到相应的功能模块
130 0
|
测试技术 Windows
禅道项目管理软件 为提交Bug页面设置bug必填字段
禅道项目管理软件 为提交Bug页面设置bug必填字段
642 0
|
机器学习/深度学习 人工智能 安全
入行AI最需要的五大技能
作为一名软件工程师,我们应该活到老学到老,时刻与不断发展的框架、标准和范式保持同步。同时,还要能活学活用,在工作中使用最合适的工具,以提高工作效率。随着机器学习在越来越多的应用程序中寻得了一席之地,越来越多的程序员加入AI领域,那么,入行AI领域需要哪些技能呢?
15008 0
|
8天前
|
人工智能 运维 安全
|
6天前
|
人工智能 异构计算
敬请锁定《C位面对面》,洞察通用计算如何在AI时代持续赋能企业创新,助力业务发展!
敬请锁定《C位面对面》,洞察通用计算如何在AI时代持续赋能企业创新,助力业务发展!
|
7天前
|
机器学习/深度学习 人工智能 自然语言处理
B站开源IndexTTS2,用极致表现力颠覆听觉体验
在语音合成技术不断演进的背景下,早期版本的IndexTTS虽然在多场景应用中展现出良好的表现,但在情感表达的细腻度与时长控制的精准性方面仍存在提升空间。为了解决这些问题,并进一步推动零样本语音合成在实际场景中的落地能力,B站语音团队对模型架构与训练策略进行了深度优化,推出了全新一代语音合成模型——IndexTTS2 。
644 22
|
7天前
|
人工智能 测试技术 API
智能体(AI Agent)搭建全攻略:从概念到实践的终极指南
在人工智能浪潮中,智能体(AI Agent)正成为变革性技术。它们具备自主决策、环境感知、任务执行等能力,广泛应用于日常任务与商业流程。本文详解智能体概念、架构及七步搭建指南,助你打造专属智能体,迎接智能自动化新时代。