zentaopms/module/bug/view/m.confirmbug.html.php
2023-05-16 10:47:08 +08:00

50 lines
2.1 KiB
PHP

<?php
/**
* The confirmBug mobile view file of bug module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
* @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Yidong Wang <yidong@cnezsoft.com>
* @package bug
* @version $Id$
* @link http://www.zentao.net
*/
?>
<div class='heading divider'>
<span class='title'><strong><?php echo $lang->bug->confirmBug ?></strong> #<?php echo $bug->id ?></span>
<nav class='nav'>
<a data-dismiss='display'><i class='icon-remove muted'></i></a>
</nav>
</div>
<form class='has-padding content' method='post' target='hiddenwin' action='<?php echo $this->createLink('bug', 'confirmBug', "id=$bug->id")?>' id='confirmBugForm' data-form-refresh='#page'>
<div class='control'>
<label for='assignedTo'><?php echo $lang->bug->assignedTo;?></label>
<div class='select'><?php echo html::select('assignedTo', $users, $bug->assignedTo);?></div>
</div>
<div class="control">
<label for='type'><?php echo $lang->bug->type;?></label>
<div class='select'><?php echo html::select('type', $lang->bug->typeList, $bug->type);?></div>
</div>
<div class="control">
<label for='pri'><?php echo $lang->bug->pri;?></label>
<div class='select'><?php echo html::select('pri', $lang->bug->priList, $bug->pri);?></div>
</div>
<div class="control">
<label for='mailto'><?php echo $lang->bug->mailto;?></label>
<div class='select'><?php echo html::select('mailto[]', $users, str_replace(' ' , '', $bug->mailto), "multiple");?></div>
</div>
<div class='control'>
<label for='comment'><?php echo $lang->story->comment;?></label>
<?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
</div>
</form>
<div class='footer has-padding'>
<button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
</div>
<script>
$(function()
{
$('#submitButton').click(function(){$('#confirmBugForm').submit()});
})
</script>