78 lines
3.2 KiB
PHP
78 lines
3.2 KiB
PHP
<?php
|
|
/**
|
|
* The create view file of webhook 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 webhook
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include 'header.html.php';?>
|
|
<?php include '../../common/view/form.html.php';?>
|
|
<?php js::set('urlNote', $lang->webhook->note->typeList);?>
|
|
<div id='mainContent' class='main-content'>
|
|
<div class='center-block mw-1400px'>
|
|
<div class='main-header'>
|
|
<h2><?php echo $lang->webhook->create;?></h2>
|
|
</div>
|
|
<form id='webhookForm' method='post' class='ajaxForm'>
|
|
<table class='table table-form'>
|
|
<tr>
|
|
<th class='w-100px'><?php echo $lang->webhook->type;?></th>
|
|
<td class='w-p50'><?php echo html::select('type', $lang->webhook->typeList, 'default', "class='form-control'");?></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->webhook->name;?></th>
|
|
<td><?php echo html::input('name', '', "class='form-control'");?></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->webhook->url;?></th>
|
|
<td><?php echo html::input('url', '', "class='form-control'");?></td>
|
|
<td id='urlNote'><?php echo $lang->webhook->note->typeList['default'];?></td>
|
|
</tr>
|
|
<tr id='sendTypeTR'>
|
|
<th><?php echo $lang->webhook->sendType;?></th>
|
|
<td><?php echo html::select('sendType', $lang->webhook->sendTypeList, '', "class='form-control'");?></td>
|
|
<td><?php echo $lang->webhook->note->async;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->webhook->product;?></th>
|
|
<td><?php echo html::select('products[]', $products, '', "class='form-control chosen' multiple");?></td>
|
|
<td><?php echo $lang->webhook->note->product;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->webhook->project;?></th>
|
|
<td><?php echo html::select('projects[]', $projects, '', "class='form-control chosen' multiple");?></td>
|
|
<td><?php echo $lang->webhook->note->project;?></td>
|
|
</tr>
|
|
<tr id='paramsTR'>
|
|
<th>
|
|
<div class='checkbox-primary'>
|
|
<input type='checkbox' id='allParams' name='allParams'>
|
|
<label for='allParams'><?php echo $lang->webhook->params;?></label>
|
|
</div>
|
|
</th>
|
|
<td class='labelWidth' colspan='2'><?php echo html::checkbox('params', $lang->webhook->paramsList, 'text');?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo $lang->webhook->desc;?></th>
|
|
<td colspan='2'><?php echo html::textarea('desc', '', "rows='3' class='form-control'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<td class='form-actions'>
|
|
<?php echo html::submitButton('', '', 'btn btn-wide btn-primary');?>
|
|
<?php echo html::backButton('', '', 'btn btn-wide');?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php';?>
|