Files
EasySoft-ZenTaoPMS/module/integration/view/create.html.php
2020-02-20 15:09:25 +08:00

84 lines
3.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* The create view file of integration 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 Chenqi <chenqi@cnezsoft.com>
* @package integration
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php'; ?>
<?php js::set('repoTypes', $repoTypes)?>
<?php js::set('triggerType', 'tag')?>
<div id='mainContent' class='main-row'>
<div class='main-content'>
<div class='center-block'>
<div class='main-header'>
<h2><?php echo $lang->integration->create; ?></h2>
</div>
<form id='jobForm' method='post' class='form-ajax'>
<table class='table table-form'>
<tr>
<th><?php echo $lang->integration->name; ?></th>
<td class='required'><?php echo html::input('name', '', "class='form-control'"); ?></td>
<td colspan="2" ></td>
</tr>
<tr>
<th><?php echo $lang->integration->repo; ?></th>
<td><?php echo html::select('repo', $repoPairs, '', "class='form-control chosen'"); ?></td>
<th class="svn-fields hidden"><?php echo $lang->integration->svnFolder; ?></th>
<td class="svn-fields hidden" id='svnFolderBox'></td>
</tr>
<tr>
<th><?php echo $lang->integration->jenkins; ?></th>
<td><?php echo html::select('jenkins', $jenkinsList, '', "class='form-control chosen'"); ?></td>
<th><?php echo $lang->integration->jenkinsJob; ?></th>
<td><?php echo html::input('jenkinsJob', '', "class='form-control'"); ?></td>
</tr>
<tr>
<th><?php echo $lang->integration->triggerType; ?></th>
<td><?php echo html::select('triggerType', $lang->integration->triggerTypeList, '', "onchange='triggerTypeChanged(this.value)' class='form-control chosen'"); ?></td>
<td colspan="2"></td>
</tr>
<tr class="tag-fields" class="tag-fields">
<th><?php echo $lang->integration->example; ?></th>
<td colspan="3"><?php echo $lang->integration->tagEx; ?></td>
</tr>
<tr class="comment-fields" class="comment-fields">
<th><?php echo $lang->integration->example; ?></th>
<td colspan="3"><?php echo $lang->integration->commitEx; ?></td>
</tr>
<tr class="custom-fields">
<th><?php echo $lang->integration->custom; ?></th>
<td colspan="3">
<div class="row text-with-input">
<div class="col w-50px"><?php echo $lang->integration->scheduleInterval;?></div>
<div class="col w-100px"><?php echo html::number('scheduleInterval', '1', "class='form-control'");?></div>
<div class="col w-40px"><?php echo $lang->integration->day;?> </div>
<div class="col <?php echo $this->app->getClientLang() == 'en' ? 'w-100px' : '2-30px'; ?>"><?php echo $lang->integration->at;?></div>
<div class="col w-150px"><?php echo html::select('scheduleDay', $lang->integration->dayTypeList, '',"class='form-control chosen'");?></div>
<div class="col w-100px"><?php echo html::input('scheduleTime', '2:00', "class='form-control form-time time-only' min='1'");?></div>
<div class="col w-120px"><?php echo $lang->integration->exec;?>。 </div>
</div>
</td>
</tr>
<tr>
<th></th>
<td class='text-center form-actions'>
<?php echo html::submitButton(); ?>
<?php echo html::backButton(); ?>
<?php echo html::hidden('repoType');?>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<?php include '../../common/view/footer.html.php';?>