74 lines
3.0 KiB
PHP
74 lines
3.0 KiB
PHP
<?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, '', "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->scheduleDay; ?></th>
|
|
<td colspan="3"><?php echo html::checkbox('scheduleDay', $lang->datepicker->dayNames, '', '', 'inline');?></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';?>
|