113 lines
5.8 KiB
PHP
113 lines
5.8 KiB
PHP
<?php
|
||
/**
|
||
* The edit view file of jenkins module of ZenTaoPMS.
|
||
*
|
||
* @copyright Copyright 2009-2017 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
||
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
||
* @author Gang Liu <liugang@cnezsoft.com>
|
||
* @package jenkins
|
||
* @version $Id$
|
||
* @link http://www.zentao.net
|
||
*/
|
||
?>
|
||
<?php include 'header.html.php'; ?>
|
||
<?php include '../../common/view/form.html.php'; ?>
|
||
|
||
<?php js::set('triggerType', $citask->triggerType)?>
|
||
|
||
<div id='mainContent' class='main-row'>
|
||
<div class='side-col' id='sidebar'>
|
||
<?php include 'menu.html.php'; ?>
|
||
</div>
|
||
<div class='main-col main-content'>
|
||
<div class='center-block'>
|
||
<div class='main-header'>
|
||
<h2><?php echo $lang->citask->edit; ?></h2>
|
||
</div>
|
||
<form id='citaskForm' method='post' class='form-ajax'>
|
||
<table class='table table-form'>
|
||
<tr>
|
||
<th><?php echo $lang->citask->name; ?></th>
|
||
<td colspan="3" class='required'><?php echo html::input('name', $citask->name, "class='form-control'"); ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo $lang->citask->repo; ?></th>
|
||
<td><?php echo html::select('repo', $repoList, $citask->repo, "class='form-control chosen'"); ?></td>
|
||
|
||
<th><?php echo $lang->citask->buildType; ?></th>
|
||
<td><?php echo html::select('buildType', $lang->citask->buildTypeList, 'buildAndDeploy', "class='form-control chosen'"); ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo $lang->citask->jenkins; ?></th>
|
||
<td><?php echo html::select('jenkins', $jenkinsList, $citask->jenkins, "class='form-control chosen'"); ?></td>
|
||
|
||
<th><?php echo $lang->citask->jenkinsTask; ?></th>
|
||
<td><?php echo html::input('jenkinsTask', $citask->jenkinsTask, "class='form-control'"); ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo $lang->citask->triggerType; ?></th>
|
||
<td><?php echo html::select('triggerType', $lang->citask->triggerTypeList, $citask->triggerType,
|
||
"onchange='triggerTypeChanged(this.value)' class='form-control chosen'"); ?></td>
|
||
</tr>
|
||
<tr class="tag-fields">
|
||
<th><?php echo $lang->citask->tagKeywords; ?></th>
|
||
<td><?php echo html::input('tagKeywords', $citask->tagKeywords, "class='form-control'"); ?></td>
|
||
<td colspan="2"><span style="font-style: italic">*build_*</span></td>
|
||
</tr>
|
||
<tr class="comment-fields">
|
||
<th><?php echo $lang->citask->commentKeywords; ?></th>
|
||
<td><?php echo html::input('commentKeywords', $citask->commentKeywords, "class='form-control'"); ?></td>
|
||
<td colspan="2"><span style="font-style: italic">build_now</span></td>
|
||
</tr>
|
||
|
||
<tr class="custom-fields">
|
||
<th><?php echo $lang->citask->custom; ?></th>
|
||
<td colspan="3">
|
||
<div class="row text-with-input">
|
||
<div class="col w-50px">
|
||
<?php echo $lang->citask->scheduleInterval; ?>
|
||
</div>
|
||
<div class="col w-100px">
|
||
<?php echo html::number('scheduleInterval', $citask->scheduleInterval, "class='form-control'"); ?>
|
||
</div>
|
||
<div class="col w-30px">
|
||
<?php echo $lang->citask->day; ?>,
|
||
</div>
|
||
|
||
<div class="col w-40px">
|
||
<?php echo $lang->citask->at; ?>
|
||
</div>
|
||
<div class="col w-120px">
|
||
<?php echo html::select('scheduleDay', $lang->citask->dayTypeList, $citask->scheduleDay,"class='form-control chosen'"); ?>
|
||
</div>
|
||
<div class="col w-100px">
|
||
<?php echo html::input('scheduleTime', $citask->scheduleTime,
|
||
"class='form-control form-time time-only' min='1'"); ?>
|
||
</div>
|
||
<div class="col w-60px">
|
||
<?php echo $lang->citask->exe; ?>。
|
||
</div>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th><?php echo $lang->citask->desc; ?></th>
|
||
<td colspan="3"><?php echo html::textarea('desc', '', "rows='3' class='form-control'"); ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th></th>
|
||
<td colspan="2" class='text-center form-actions'>
|
||
<?php echo html::submitButton(); ?>
|
||
<?php echo html::backButton(); ?>
|
||
|
||
<?php echo html::commonButton($lang->citask->exeNow, "onclick=exeCitask($citask->id) data-tip-class='tooltip-success'", "btn btn-info exe-citask-button"); ?>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php include '../../common/view/footer.html.php'; ?>
|