* ajusted views of module 'project'.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['product']) . ' #' . $product->id;?></span>
|
||||
<strong><?php echo $product->name;?></strong>
|
||||
<?php if($product->deleted):?>
|
||||
<small class='label label-danger'><?php echo $lang->product->deleted;?></small>
|
||||
<span class='label label-danger'><?php echo $lang->product->deleted;?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class='actions'>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['plan']) . ' #' . $plan->id;?></span>
|
||||
<strong><?php echo $plan->title;?></strong>
|
||||
<?php if($plan->deleted):?>
|
||||
<small class='label label-danger'><?php echo $lang->plan->deleted;?></small>
|
||||
<span class='label label-danger'><?php echo $lang->plan->deleted;?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class='actions'>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['project']) . ' #' . $project->id;?></span>
|
||||
<strong><?php echo $project->name;?></strong>
|
||||
<?php if($project->deleted):?>
|
||||
<small class='label label-danger'><?php echo $lang->project->deleted;?></small>
|
||||
<span class='label label-danger'><?php echo $lang->project->deleted;?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class='actions'>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['release']) . ' #' . $release->id;?></span>
|
||||
<strong><?php echo $release->name;?></strong>
|
||||
<?php if($release->deleted):?>
|
||||
<small class='label label-danger'><?php echo $lang->release->deleted;?></small>
|
||||
<span class='label label-danger'><?php echo $lang->release->deleted;?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class='actions'>
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
.button-c {padding:2px}
|
||||
#mailto {width:90.5%}
|
||||
#preview{line-height: 24px;position: relative;top: -10px;+top:0;}
|
||||
caption .f-right a{color:red}
|
||||
#preview, #copyButton{line-height: 30px; position: relative; left: 10px}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
select.select-1,#module,#mailto {width:220px}
|
||||
.text-1 {width:213px}
|
||||
#estStarted,#realStarted,#deadline {width:190px}
|
||||
|
||||
@@ -41,8 +41,6 @@ function setPreview()
|
||||
$('#copyButton').removeClass('hidden');
|
||||
}
|
||||
|
||||
$("#preview").colorbox({width:960, height:550, iframe:true, transition:'none', scrolling:true});
|
||||
|
||||
setAfter();
|
||||
}
|
||||
|
||||
@@ -99,7 +97,8 @@ function setStories(moduleID, projectID)
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
var options = {no_results_text: noResultsMatch, allow_single_deselect: true, disable_search_threshold: 10, width: '100%', placeholder_text_single: selectAnOption, placeholder_text_multiple: selectSoomeOptions};
|
||||
setPreview();
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto").chosen({no_results_text: noResultsMatch});
|
||||
$("#story").chosen(options);
|
||||
$("#mailto").chosen(options);
|
||||
});
|
||||
|
||||
@@ -16,6 +16,7 @@ $lang->task->batchEdit = "批量编辑";
|
||||
$lang->task->import = "导入之前未完任务";
|
||||
$lang->task->edit = "编辑";
|
||||
$lang->task->delete = "删除";
|
||||
$lang->task->deleted = "已删除";
|
||||
$lang->task->view = "查看任务";
|
||||
$lang->task->logEfforts = "记录工时";
|
||||
$lang->task->record = "工时";
|
||||
|
||||
@@ -12,25 +12,33 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $task->name;?></caption>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', 'task=' . $task->id), $task->name, '_blank');?></strong>
|
||||
<small class='text-muted'> <?php echo $lang->task->assign;?> <?php echo html::icon($lang->icons['assign']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->assignedTo;?></th>
|
||||
<td><?php echo html::select('assignedTo', $users, '', "class='text-3 chosen'");?></td>
|
||||
<th class='w-80px'><?php echo $lang->task->assignedTo;?></th>
|
||||
<td class='w-p45'><?php echo html::select('assignedTo', $users, '', "class='form-control chosen'");?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->left;?></th>
|
||||
<td><?php echo html::input('left', $task->left, "class='text-3'") . $lang->task->hour;?></td>
|
||||
<th><?php echo $lang->task->left;?></th>
|
||||
<td><div class='input-group'><?php echo html::input('left', $task->left, "class='form-control'");?> <span class='input-group-addon'><?php echo $lang->task->hour;?></span></div></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->comment;?></td>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='w-p98'");?></td>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
<td colspan='2'><?php echo html::textarea('comment', '', "rows='6' class='form-control w-p98'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='text-center'><?php echo html::submitButton();?></td>
|
||||
<td colspan='3' class='text-center'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</form>
|
||||
<div class='main'>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -12,15 +12,24 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $task->name;?></caption>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', 'task=' . $task->id), $task->name, '_blank');?></strong>
|
||||
<small class='text-muted'> <?php echo $lang->task->cancel;?> <?php echo html::icon($lang->icons['cancel']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form class='form-condensed' method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->comment;?></td>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='w-p98'");?></td>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr><td colspan='2' class='text-center'><?php echo html::submitButton();?></td></tr>
|
||||
</table>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</form>
|
||||
<div class='main'>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -12,17 +12,26 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $task->name;?></caption>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', 'task=' . $task->id), $task->name, '_blank');?></strong>
|
||||
<small class='text-danger'> <?php echo $lang->task->close;?> <?php echo html::icon($lang->icons['close']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form class='form-condensed' method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->comment;?></td>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='w-p98'");?></td>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='text-center'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</form>
|
||||
<div class='main'>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -15,81 +15,92 @@
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::set('holders', $lang->task->placeholder);?>
|
||||
<form method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<table align='center' class='table-1 a-left'>
|
||||
<caption><?php echo $lang->task->create;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->project;?></th>
|
||||
<td><?php echo $project->name;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->module;?></th>
|
||||
<td><span id='moduleIdBox'><?php echo html::select('module', $moduleOptionMenu, $task->module, "class='select-3' onchange='setStories(this.value,$project->id)'");?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->assignedTo;?></th>
|
||||
<td><?php echo html::select('assignedTo[]', $members, $task->assignedTo, "class='select-3 chosen'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->task->typeList, $task->type, 'class=select-3 onchange="setOwners(this.value)"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->story;?></th>
|
||||
<td>
|
||||
<?php echo html::select('story', $stories, $task->story, 'class=select-1 onchange=setPreview();');?>
|
||||
<a href='' id='preview' class='iframe'><?php echo $lang->preview;?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->name;?></th>
|
||||
<td>
|
||||
<?php
|
||||
echo html::input('name', $task->name, "class='text-1'");
|
||||
echo html::commonButton($lang->task->copyStoryTitle, 'onclick=copyStoryTitle() id="copyButton"');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', $task->desc, "rows='7' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->pri;?></th>
|
||||
<td><?php echo html::select('pri', $lang->task->priList, $task->pri, 'class=select-3');?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->estimate;?></th>
|
||||
<td><?php echo html::input('estimate', $task->estimate, "class='text-3'") . $lang->task->hour;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->estStarted;?></th>
|
||||
<td><?php echo html::input('estStarted', $task->estStarted, "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->deadline;?></th>
|
||||
<td><?php echo html::input('deadline', $task->deadline, "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->mailto;?></th>
|
||||
<td>
|
||||
<?php
|
||||
echo html::select('mailto[]', $users, str_replace(' ', '', $task->mailto), 'multiple');
|
||||
if($contactLists) echo html::select('', $contactLists, '', "class='f-right' onchange=\"setMailto('mailto', this.value)\"");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->files;?></th>
|
||||
<td class='text-left'><?php echo $this->fetch('file', 'buildform');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->afterSubmit;?></th>
|
||||
<td><?php echo html::radio('after', $lang->task->afterChoices, 'continueAdding');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='text-center'><?php echo html::submitButton() . html::backButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<span id='responser'></span>
|
||||
</form>
|
||||
<div class='container'>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']);?></span>
|
||||
<strong><small class='text-muted'><i class='icon icon-plus'></i></small> <?php echo $lang->task->create;?></strong>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='w-100px'><?php echo $lang->task->project;?></th>
|
||||
<td colspan='3'><?php echo $project->name;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->module;?></th>
|
||||
<td id='moduleIdBox' class='w-p35'><?php echo html::select('module', $moduleOptionMenu, $task->module, "class='form-control' onchange='setStories(this.value,$project->id)'");?></td><td class='w-p40'></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->assignedTo;?></th>
|
||||
<td><?php echo html::select('assignedTo[]', $members, $task->assignedTo, "class='form-control chosen'");?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->task->typeList, $task->type, 'class=form-control onchange="setOwners(this.value)"');?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->story;?></th>
|
||||
<td colspan='2'>
|
||||
<?php echo html::select('story', $stories, $task->story, 'class=form-control onchange=setPreview();');?>
|
||||
</td><td><a href='#' id='preview' class='iframe'><i class='icon-eye-open'></i> <?php echo $lang->preview;?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->name;?></th>
|
||||
<td colspan='2'>
|
||||
<?php echo html::input('name', $task->name, "class='form-control'");?>
|
||||
</td>
|
||||
<td><a href='#' id='copyButton' onclick='copyStoryTitle()'><i class='icon-copy'></i> <?php echo $lang->task->copyStoryTitle;?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->desc;?></th>
|
||||
<td colspan='2'><?php echo html::textarea('desc', $task->desc, "rows='7' class='form-control'");?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->pri;?></th>
|
||||
<td><?php echo html::select('pri', $lang->task->priList, $task->pri, 'class=form-control');?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->estimate;?></th>
|
||||
<td>
|
||||
<div class="input-group">
|
||||
<?php echo html::input('estimate', $task->estimate, "class='form-control'")?>
|
||||
<span class="input-group-addon"><?php echo $lang->task->hour;?></span>
|
||||
</div>
|
||||
</td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->estStarted;?></th>
|
||||
<td><?php echo html::input('estStarted', $task->estStarted, "class='form-control form-date'");?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->deadline;?></th>
|
||||
<td><?php echo html::input('deadline', $task->deadline, "class='form-control form-date'");?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->mailto;?></th>
|
||||
<td colspan='3'>
|
||||
<?php
|
||||
echo html::select('mailto[]', $users, str_replace(' ', '', $task->mailto), "multiple class='form-control'");
|
||||
if($contactLists) echo html::select('', $contactLists, '', "class='form-control' onchange=\"setMailto('mailto', this.value)\"");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->files;?></th>
|
||||
<td colspan='3'><?php echo $this->fetch('file', 'buildform');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->task->afterSubmit;?></th>
|
||||
<td colspan='3'><?php echo html::radio('after', $lang->task->afterChoices, 'continueAdding');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan='3'><?php echo html::submitButton() . html::backButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<span id='responser'></span>
|
||||
</form>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -17,141 +17,148 @@
|
||||
<?php js::set('oldStoryID', $task->story); ?>
|
||||
<?php js::set('confirmChangeProject', $lang->task->confirmChangeProject); ?>
|
||||
<?php js::set('changeProjectConfirmed', false); ?>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
|
||||
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
|
||||
<div id='titlebar'>
|
||||
<div id='main'>TASK #<?php echo $task->id . $lang->colon . html::input('name', $task->name, 'class="text-1"');?></div>
|
||||
<div><?php echo html::submitButton();?></div>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', "taskID=$task->id"), $task->name);?></strong>
|
||||
<small><?php echo html::icon($lang->icons['edit']) . ' ' . $lang->task->edit;?></small>
|
||||
</div>
|
||||
<div class='actions'>
|
||||
<?php echo html::submitButton(html::icon('save') . ' ' . $lang->save)?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class='cont-rt5'>
|
||||
<tr valign='top'>
|
||||
<td>
|
||||
<table class='table-1 bd-none'>
|
||||
<tr class='bd-none'><td class='bd-none'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->desc;?></legend>
|
||||
<?php echo html::textarea('desc', $task->desc, "rows='8' class='area-1'");?>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->comment;?></legend>
|
||||
<?php echo html::textarea('comment', '', "rows='5' class='area-1'");?>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->files;?></legend>
|
||||
<?php echo $this->fetch('file', 'buildform');?>
|
||||
</fieldset>
|
||||
</td></tr>
|
||||
</table>
|
||||
<div class='text-center'><?php echo html::submitButton() . html::linkButton($lang->goback, $this->inlink('view', "taskID=$task->id")) .html::hidden('consumed', $task->consumed);?></div>
|
||||
<div class='row'>
|
||||
<div class='col-md-8'>
|
||||
<div class='main'>
|
||||
<div class='form-group'>
|
||||
<?php echo html::input('name', $task->name, 'class="form-control"');?>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->desc;?></legend>
|
||||
<?php echo html::textarea('desc', $task->desc, "rows='8' class='area-1'");?>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->comment;?></legend>
|
||||
<?php echo html::textarea('comment', '', "rows='5' class='area-1'");?>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->files;?></legend>
|
||||
<?php echo $this->fetch('file', 'buildform');?>
|
||||
</fieldset>
|
||||
<div class='actions'>
|
||||
<?php echo html::submitButton(html::icon('save') . ' ' . $lang->save) . html::linkButton($lang->goback, $this->inlink('view', "taskID=$task->id")) .html::hidden('consumed', $task->consumed);?>
|
||||
</div>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</td>
|
||||
<td class='divider'></td>
|
||||
<td class='side'>
|
||||
</div>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<div class='main main-side'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendBasic;?></legend>
|
||||
<table class='table-1'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->project;?></th>
|
||||
<td><?php echo html::select('project', $projects, $task->project, 'class="select-1" onchange="loadAll(this.value)"');?></td>
|
||||
<th class='w-70px'><?php echo $lang->task->project;?></th>
|
||||
<td><?php echo html::select('project', $projects, $task->project, 'class="form-control" onchange="loadAll(this.value)"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->module;?></th>
|
||||
<td><span id="moduleIdBox"><?php echo html::select('module', $modules, $task->module, 'class="select-1" onchange="loadModuleRelated()"');?></span></td>
|
||||
<th><?php echo $lang->task->module;?></th>
|
||||
<td id="moduleIdBox"><?php echo html::select('module', $modules, $task->module, 'class="form-control" onchange="loadModuleRelated()"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->story;?></th>
|
||||
<td><span id="storyIdBox"><?php echo html::select('story', $stories, $task->story, 'class=select-1');?></span></td>
|
||||
<th><?php echo $lang->task->story;?></th>
|
||||
<td><span id="storyIdBox"><?php echo html::select('story', $stories, $task->story, 'class=form-control');?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->assignedTo;?></th>
|
||||
<td><span id="assignedToIdBox"><?php echo html::select('assignedTo', $members, $task->assignedTo, "class='select-1 chosen'");?></span></td>
|
||||
<th><?php echo $lang->task->assignedTo;?></th>
|
||||
<td><span id="assignedToIdBox"><?php echo html::select('assignedTo', $members, $task->assignedTo, "class='form-control chosen'");?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->task->typeList, $task->type, 'class=select-1');?></td>
|
||||
<th><?php echo $lang->task->type;?></th>
|
||||
<td><?php echo html::select('type', $lang->task->typeList, $task->type, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->status;?></th>
|
||||
<td><?php echo html::select('status', (array)$lang->task->statusList, $task->status, 'class=select-1');?></td>
|
||||
<th><?php echo $lang->task->status;?></th>
|
||||
<td><?php echo html::select('status', (array)$lang->task->statusList, $task->status, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->pri;?></th>
|
||||
<td><?php echo html::select('pri', $lang->task->priList, $task->pri, 'class=select-1');?>
|
||||
<th><?php echo $lang->task->pri;?></th>
|
||||
<td><?php echo html::select('pri', $lang->task->priList, $task->pri, 'class=form-control');?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->task->mailto;?></td>
|
||||
<td><?php echo html::select('mailto[]', $users, str_replace(' ' , '', $task->mailto), 'class="text-1" multiple');?></td>
|
||||
<th><?php echo $lang->task->mailto;?></th>
|
||||
<td><?php echo html::select('mailto[]', $users, str_replace(' ' , '', $task->mailto), 'class="form-control" multiple');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendEffort;?></legend>
|
||||
<table class='table-1'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->estStarted;?></th>
|
||||
<td><?php echo html::input('estStarted', $task->estStarted, "class='text-1 date'");?></td>
|
||||
<th class='w-70px'><?php echo $lang->task->estStarted;?></th>
|
||||
<td><?php echo html::input('estStarted', $task->estStarted, "class='form-control form-date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->realStarted;?></th>
|
||||
<td><?php echo html::input('realStarted', $task->realStarted, "class='text-1 date'");?></td>
|
||||
<th><?php echo $lang->task->realStarted;?></th>
|
||||
<td><?php echo html::input('realStarted', $task->realStarted, "class='form-control form-date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->deadline;?></th>
|
||||
<td><?php echo html::input('deadline', $task->deadline, "class='text-1 date'");?></td>
|
||||
<th><?php echo $lang->task->deadline;?></th>
|
||||
<td><?php echo html::input('deadline', $task->deadline, "class='form-control form-date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->estimate;?></th>
|
||||
<td><?php echo html::input('estimate', $task->estimate, "class='text-1'");?></td>
|
||||
<th><?php echo $lang->task->estimate;?></th>
|
||||
<td><?php echo html::input('estimate', $task->estimate, "class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->consumed;?></th>
|
||||
<th><?php echo $lang->task->consumed;?></th>
|
||||
<td><?php echo $task->consumed . ' '; common::printIcon('task', 'recordEstimate', "taskID=$task->id", $task, 'list', '', '', 'iframe', true);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->left;?></th>
|
||||
<td><?php echo html::input('left', $task->left, "class='text-1'");?></td>
|
||||
<th><?php echo $lang->task->left;?></th>
|
||||
<td><?php echo html::input('left', $task->left, "class='form-control'");?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendLife;?></legend>
|
||||
<table class='table-1'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->openedBy;?></th>
|
||||
<th class='w-70px'><?php echo $lang->task->openedBy;?></th>
|
||||
<td><?php echo $users[$task->openedBy];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->finishedBy;?></th>
|
||||
<td><?php echo html::select('finishedBy', $members, $task->finishedBy, 'class=select-1');?></td>
|
||||
<th><?php echo $lang->task->finishedBy;?></th>
|
||||
<td><?php echo html::select('finishedBy', $members, $task->finishedBy, 'class=form-control');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->finishedDate;?></th>
|
||||
<td><?php echo html::input('finishedDate', $task->finishedDate, 'class="text-1"');?></td>
|
||||
<th><?php echo $lang->task->finishedDate;?></th>
|
||||
<td><?php echo html::input('finishedDate', $task->finishedDate, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->canceledBy;?></th>
|
||||
<td><?php echo html::select('canceledBy', $users, $task->canceledBy, 'class="select-1"');?></td>
|
||||
<th><?php echo $lang->task->canceledBy;?></th>
|
||||
<td><?php echo html::select('canceledBy', $users, $task->canceledBy, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->canceledDate;?></th>
|
||||
<td><?php echo html::input('canceledDate', $task->canceledDate, 'class="text-1"');?></td>
|
||||
<th><?php echo $lang->task->canceledDate;?></th>
|
||||
<td><?php echo html::input('canceledDate', $task->canceledDate, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->closedBy;?></th>
|
||||
<td><?php echo html::select('closedBy', $users, $task->closedBy, 'class="select-1"');?></td>
|
||||
<th><?php echo $lang->task->closedBy;?></th>
|
||||
<td><?php echo html::select('closedBy', $users, $task->closedBy, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->closedReason;?></th>
|
||||
<td><?php echo html::select('closedReason', $lang->task->reasonList, $task->closedReason, 'class="select-1"');?></td>
|
||||
<th><?php echo $lang->task->closedReason;?></th>
|
||||
<td><?php echo html::select('closedReason', $lang->task->reasonList, $task->closedReason, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->closedDate;?></th>
|
||||
<td><?php echo html::input('closedDate', $task->closedDate, 'class="text-1"');?></td>
|
||||
<th><?php echo $lang->task->closedDate;?></th>
|
||||
<td><?php echo html::input('closedDate', $task->closedDate, 'class="form-control"');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -12,30 +12,39 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $task->name;?></caption>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', 'task=' . $task->id), $task->name, '_blank');?></strong>
|
||||
<small class='text-success'> <?php echo $lang->task->finish;?> <?php echo html::icon($lang->icons['finish']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->consumed;?></th>
|
||||
<td><?php echo html::input('consumed', $task->consumed, "class='text-3'") . $lang->task->hour;?></td>
|
||||
<th class='w-80px'><?php echo $lang->task->consumed;?></th>
|
||||
<td class='w-p45'><div class='input-group'><?php echo html::input('consumed', $task->consumed, "class='form-control'");?> <span class='input-group-addon'><?php echo $lang->task->hour;?></span></div></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->task->assignedTo;?></td>
|
||||
<td><?php echo html::select('assignedTo', $members, $task->openedBy, "class='select-3 chosen'");?></td>
|
||||
<td><?php echo $lang->task->assignedTo;?></td>
|
||||
<td><?php echo html::select('assignedTo', $members, $task->openedBy, "class='form-control chosen'");?></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->task->finishedDate;?></td>
|
||||
<td><?php echo html::input('finishedDate',$date, "class='text-3'");?></td>
|
||||
<td><?php echo $lang->task->finishedDate;?></td>
|
||||
<td><div class='datepicker-wrapper'><?php echo html::input('finishedDate', helper::today(), "class='form-control form-datetime'");?></div></td><td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->comment;?></td>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='w-p98'");?></td>
|
||||
<td><?php echo $lang->comment;?></td>
|
||||
<td colspan='2'><?php echo html::textarea('comment', '', "rows='6' class='w-p98'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='text-center'><?php echo html::submitButton();?></td>
|
||||
<td colspan='3' class='text-center'><?php echo html::submitButton();?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</form>
|
||||
<div class='main'>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -13,17 +13,26 @@
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php js::set('confirmRecord', $lang->task->confirmRecord);?>
|
||||
<form id="recordForm" method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $task->name;?></caption>
|
||||
<tr>
|
||||
<th class="w-id"><?php echo $lang->idAB;?></th>
|
||||
<th class="w-100px"><?php echo $lang->task->date;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->consumedThisTime;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->leftThisTime;?></th>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
<th class="w-60px"><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', 'task=' . $task->id), $task->name, '_blank');?></strong>
|
||||
<small class='text-muted'> <?php echo $lang->task->logEfforts;?> <?php echo html::icon($lang->icons['recordEstimate']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' id="recordForm" method='post' target='hiddenwin'>
|
||||
<table class='table table-form'>
|
||||
<?php if(count($estimates)):?>
|
||||
<thead>
|
||||
<tr class='text-center'>
|
||||
<th class="w-id"><?php echo $lang->idAB;?></th>
|
||||
<th class="w-100px"><?php echo $lang->task->date;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->consumedThisTime;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->leftThisTime;?></th>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
<th class="w-60px"><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php foreach($estimates as $estimate):?>
|
||||
<tr class="a-center">
|
||||
<td><?php echo $estimate->id;?></td>
|
||||
@@ -35,31 +44,31 @@
|
||||
<?php
|
||||
if($task->status == 'wait' or $task->status == 'doing')
|
||||
{
|
||||
common::printIcon('task', 'editEstimate', "estimateID=$estimate->id", '', 'list', '', '', 'showinonlybody', true);
|
||||
common::printIcon('task', 'deleteEstimate', "estimateID=$estimate->id", '', 'list', '', 'hiddenwin', 'showinonlybody');
|
||||
common::printIcon('task', 'editEstimate', "estimateID=$estimate->id", '', 'list', 'pencil', '', 'showinonlybody', true);
|
||||
common::printIcon('task', 'deleteEstimate', "estimateID=$estimate->id", '', 'list', 'remove', 'hiddenwin', 'showinonlybody');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php if($task->status == 'wait' or $task->status == 'doing'):?>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->task->logEfforts;?></caption>
|
||||
<tr>
|
||||
<th class="w-id"><?php echo $lang->idAB;?></th>
|
||||
<th class="w-120px"><?php echo $lang->task->date;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->consumedThisTime;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->leftThisTime;?></th>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<?php if($task->status == 'wait' or $task->status == 'doing'):?>
|
||||
<thead>
|
||||
<tr class='text-center'>
|
||||
<th class="w-id"><?php echo $lang->idAB;?></th>
|
||||
<th class="w-120px"><?php echo $lang->task->date;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->consumedThisTime;?></th>
|
||||
<th class="w-60px"><?php echo $lang->task->leftThisTime;?></th>
|
||||
<th><?php echo $lang->comment;?></th><th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php for($i = 1; $i <= 5; $i++):?>
|
||||
<tr class="a-center">
|
||||
<tr class="text-center">
|
||||
<td><?php echo $i . html::hidden("id[$i]", $i);?></td>
|
||||
<td><?php echo html::input("dates[$i]", '', "class='text-6 a-center date'");?></td>
|
||||
<td><?php echo html::input("consumed[$i]", '', "class='text-1 a-center'");?></td>
|
||||
<td><?php echo html::input("left[$i]", '', "class='text-1 a-center left'");?></td>
|
||||
<td class="a-left"><?php echo html::textarea("work[$i]", '', "class='text-1' rows='1'");?></td>
|
||||
<td><?php echo html::input("dates[$i]", '', "class='form-control text-center form-datetime'");?></td>
|
||||
<td><?php echo html::input("consumed[$i]", '', "class='form-control text-center'");?></td>
|
||||
<td><?php echo html::input("left[$i]", '', "class='form-control text-center left'");?></td>
|
||||
<td class="text-left"><?php echo html::textarea("work[$i]", '', "class='form-control' rows='1'");?></td>
|
||||
</tr>
|
||||
<?php endfor;?>
|
||||
<tr>
|
||||
|
||||
@@ -14,29 +14,35 @@
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php js::set('confirmFinish', $lang->task->confirmFinish);?>
|
||||
<form method='post' target='hiddenwin' onsubmit='return checkLeft();'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $task->name;?></caption>
|
||||
<div id='titlebar'>
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;;?></span>
|
||||
<strong><?php echo html::a($this->createLink('task', 'view', 'task=' . $task->id), $task->name, '_blank');?></strong>
|
||||
<small class='text-muted'> <?php echo $lang->task->start;?> <?php echo html::icon($lang->icons['start']);?></small>
|
||||
</div>
|
||||
</div>
|
||||
<form class='form-condensed' method='post' target='hiddenwin' onsubmit='return checkLeft();'>
|
||||
<table class='table table-form'>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->realStarted;?></th>
|
||||
<td><?php echo html::input('realStarted', helper::today(), "class='text-2 date'");?></td>
|
||||
<th class='w-80px'><?php echo $lang->task->realStarted;?></th>
|
||||
<td class='w-p45'><div class='datepicker-wrapper'><?php echo html::input('realStarted', helper::today(), "class='form-control form-datetime'");?></div></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->consumed;?></th>
|
||||
<td><?php echo html::input('consumed', $task->consumed, "class='text-2'") . $lang->task->hour;?></td>
|
||||
<th><?php echo $lang->task->consumed;?></th>
|
||||
<td><div class='input-group'><?php echo html::input('consumed', $task->consumed, "class='form-control'");?> <span class='input-group-addon'><?php echo $lang->task->hour;?></span></div></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->left;?></th>
|
||||
<td><?php echo html::input('left', $task->left, "class='text-2'") . $lang->task->hour;?></td>
|
||||
<th><?php echo $lang->task->left;?></th>
|
||||
<td><div class='input-group'><?php echo html::input('left', $task->left, "class='form-control'");?> <span class='input-group-addon'><?php echo $lang->task->hour;?></span></div></td><td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->comment;?></td>
|
||||
<td><?php echo html::textarea('comment', '', "rows='6' class='w-p98'");?></td>
|
||||
<th><?php echo $lang->comment;?></th>
|
||||
<td colspan='2'><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='text-center'><?php echo html::submitButton(); ?></td>
|
||||
<td colspan='3' class='text-center'><?php echo html::submitButton(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</form>
|
||||
<div class='main'><?php include '../../common/view/action.html.php';?></div>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -13,80 +13,85 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<div id='titlebar'>
|
||||
<?php
|
||||
$name = "TASK #$task->id $task->name";
|
||||
if($task->fromBug != 0) $name .= "({$lang->task->fromBug}$lang->colon$task->fromBug)";
|
||||
?>
|
||||
<div id='main' class='<?php if($task->deleted) echo 'deleted';?>'><?php echo $name;?></div>
|
||||
<div>
|
||||
<?php
|
||||
$browseLink = $app->session->taskList != false ? $app->session->taskList : $this->createLink('project', 'browse', "projectID=$task->project");
|
||||
$actionLinks = '';
|
||||
if(!$task->deleted)
|
||||
{
|
||||
ob_start();
|
||||
common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'start', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'recordEstimate', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'finish', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody', true);
|
||||
common::printIcon('task', 'close', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'activate', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'cancel', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
<div class='heading'>
|
||||
<span class='prefix'><?php echo html::icon($lang->icons['task']) . ' #' . $task->id;?></span>
|
||||
<strong><?php echo $task->name;?></strong>
|
||||
<?php if($task->deleted):?>
|
||||
<span class='label label-danger'><?php echo $lang->task->deleted;?></span>
|
||||
<?php endif; ?>
|
||||
<?php if($task->fromBug != 0):?>
|
||||
<small> <?php echo html::icon($lang->icons['bug']) . " {$lang->task->fromBug}$lang->colon$task->fromBug"; ?></small>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class='actions'>
|
||||
<?php
|
||||
$browseLink = $app->session->taskList != false ? $app->session->taskList : $this->createLink('project', 'browse', "projectID=$task->project");
|
||||
$actionLinks = '';
|
||||
if(!$task->deleted)
|
||||
{
|
||||
ob_start();
|
||||
echo "<div class='btn-group'>";
|
||||
common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'start', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'recordEstimate', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'finish', "taskID=$task->id", $task, 'button', '', '', 'iframe showinonlybody text-success', true);
|
||||
common::printIcon('task', 'close', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
common::printIcon('task', 'activate', "taskID=$task->id", $task, 'button', '', '', 'iframe text-success', true);
|
||||
common::printIcon('task', 'cancel', "taskID=$task->id", $task, 'button', '', '', 'iframe', true);
|
||||
echo '</div>';
|
||||
|
||||
common::printDivider();
|
||||
common::printIcon('task', 'edit', "taskID=$task->id");
|
||||
common::printCommentIcon('task');
|
||||
common::printIcon('task', 'create', "productID=0&storyID=0&moduleID=0&taskID=$task->id", '', 'button', 'copy');
|
||||
common::printIcon('task', 'delete', "projectID=$task->project&taskID=$task->id", '', 'button', '', 'hiddenwin');
|
||||
echo "<div class='btn-group'>";
|
||||
common::printIcon('task', 'edit', "taskID=$task->id");
|
||||
common::printCommentIcon('task');
|
||||
common::printIcon('task', 'create', "productID=0&storyID=0&moduleID=0&taskID=$task->id", '', 'button', 'copy');
|
||||
common::printIcon('task', 'delete', "projectID=$task->project&taskID=$task->id", '', 'button', '', 'hiddenwin');
|
||||
echo '</div>';
|
||||
|
||||
common::printDivider();
|
||||
common::printRPN($browseLink, $preAndNext);
|
||||
echo "<div class='btn-group'>";
|
||||
common::printRPN($browseLink, $preAndNext);
|
||||
echo '</div>';
|
||||
|
||||
$actionLinks = ob_get_contents();
|
||||
ob_clean();
|
||||
echo $actionLinks;
|
||||
}
|
||||
else
|
||||
{
|
||||
common::printRPN($browseLink);
|
||||
}
|
||||
?>
|
||||
$actionLinks = ob_get_contents();
|
||||
ob_clean();
|
||||
echo $actionLinks;
|
||||
}
|
||||
else
|
||||
{
|
||||
common::printRPN($browseLink);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class='cont-rt5'>
|
||||
<tr valign='top'>
|
||||
<td>
|
||||
<div class='row'>
|
||||
<div class='col-md-8 col-lg-9'>
|
||||
<div class='main'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendDesc;?></legend>
|
||||
<div class='content'><?php echo $task->desc;?></div>
|
||||
</fieldset>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true'));?>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<div class='a-center actionlink'> <?php if(!$task->deleted) echo $actionLinks;?></div>
|
||||
<div id='commentBox' class='hidden'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->comment;?></legend>
|
||||
<form method='post' action='<?php echo inlink('edit', "taskID=$task->id&comment=true")?>'>
|
||||
<table align='center' class='table-1'>
|
||||
<tr><td><?php echo html::textarea('comment', '',"rows='5' class='w-p100'");?></td></tr>
|
||||
<tr><td><?php echo html::submitButton() . html::backButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</td>
|
||||
<td class='divider'></td>
|
||||
<td class='side'>
|
||||
<div class='actions'> <?php if(!$task->deleted) echo $actionLinks;?></div>
|
||||
<fieldset id='commentBox' class='hide'>
|
||||
<legend><?php echo $lang->comment;?></legend>
|
||||
<form method='post' action='<?php echo inlink('edit', "taskID=$task->id&comment=true")?>'>
|
||||
<div class="form-group"><?php echo html::textarea('comment', '',"rows='5' class='w-p100'");?></div>
|
||||
<?php echo html::submitButton() . html::backButton();?>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<div class='col-md-4 col-lg-3'>
|
||||
<div class='main main-side'>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendBasic;?></legend>
|
||||
<table class='table-1'>
|
||||
<table class='table table-data table-condensed table-borderless'>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->project;?></th>
|
||||
<th class='w-80px'><?php echo $lang->task->project;?></th>
|
||||
<td><?php if(!common::printLink('project', 'task', "projectID=$task->project", $project->name)) echo $project->name;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->module;?></th>
|
||||
<th><?php echo $lang->task->module;?></th>
|
||||
<td>
|
||||
<?php
|
||||
if(empty($modulePath))
|
||||
@@ -106,7 +111,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr class='nofixed'>
|
||||
<th class='rowhead'><?php echo $lang->task->story;?></th>
|
||||
<th><?php echo $lang->task->story;?></th>
|
||||
<td>
|
||||
<?php
|
||||
if($task->storyTitle and !common::printLink('story', 'view', "storyID=$task->story", $task->storyTitle)) echo $task->storyTitle;
|
||||
@@ -120,40 +125,40 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->assignedTo;?></th>
|
||||
<th><?php echo $lang->task->assignedTo;?></th>
|
||||
<td><?php echo $task->assignedTo ? $task->assignedToRealName . $lang->at . $task->assignedDate : '';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->type;?></th>
|
||||
<th><?php echo $lang->task->type;?></th>
|
||||
<td><?php echo $lang->task->typeList[$task->type];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->status;?></th>
|
||||
<th><?php echo $lang->task->status;?></th>
|
||||
<td><?php $lang->show($lang->task->statusList, $task->status);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->pri;?></th>
|
||||
<th><?php echo $lang->task->pri;?></th>
|
||||
<td><?php $lang->show($lang->task->priList, $task->pri);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='rowhead'><?php echo $lang->task->mailto;?></td>
|
||||
<th><?php echo $lang->task->mailto;?></th>
|
||||
<td><?php $mailto = explode(',', str_replace(' ', '', $task->mailto)); foreach($mailto as $account) echo ' ' . $users[$account]; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendEffort;?></legend>
|
||||
<table class='table-1'>
|
||||
<table class='table table-data table-condensed table-borderless'>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->estStarted;?></th>
|
||||
<th class='w-80px'><?php echo $lang->task->estStarted;?></th>
|
||||
<td><?php echo $task->estStarted;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->realStarted;?></th>
|
||||
<th><?php echo $lang->task->realStarted;?></th>
|
||||
<td><?php echo $task->realStarted; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->deadline;?></th>
|
||||
<th><?php echo $lang->task->deadline;?></th>
|
||||
<td>
|
||||
<?php
|
||||
echo $task->deadline;
|
||||
@@ -162,50 +167,50 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->estimate;?></th>
|
||||
<th><?php echo $lang->task->estimate;?></th>
|
||||
<td><?php echo $task->estimate . $lang->workingHour;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->consumed;?></th>
|
||||
<th><?php echo $lang->task->consumed;?></th>
|
||||
<td><?php echo round($task->consumed, 2) . $lang->workingHour;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->left;?></th>
|
||||
<th><?php echo $lang->task->left;?></th>
|
||||
<td><?php echo $task->left . $lang->workingHour;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->task->legendLife;?></legend>
|
||||
<table class='table-1'>
|
||||
<table class='table table-data table-condensed table-borderless'>
|
||||
<tr>
|
||||
<th class='rowhead w-p20'><?php echo $lang->task->openedBy;?></th>
|
||||
<th class='w-80px'><?php echo $lang->task->openedBy;?></th>
|
||||
<td><?php if($task->openedBy) echo $users[$task->openedBy] . $lang->at . $task->openedDate;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->finishedBy;?></th>
|
||||
<th><?php echo $lang->task->finishedBy;?></th>
|
||||
<td><?php if($task->finishedBy) echo $users[$task->finishedBy] . $lang->at . $task->finishedDate;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->canceledBy;?></th>
|
||||
<th><?php echo $lang->task->canceledBy;?></th>
|
||||
<td><?php if($task->canceledBy) echo $users[$task->canceledBy] . $lang->at . $task->canceledDate;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->closedBy;?></th>
|
||||
<th><?php echo $lang->task->closedBy;?></th>
|
||||
<td><?php if($task->closedBy) echo $users[$task->closedBy] . $lang->at . $task->closedDate;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->closedReason;?></th>
|
||||
<th><?php echo $lang->task->closedReason;?></th>
|
||||
<td><?php echo $lang->task->reasonList[$task->closedReason];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->task->lastEdited;?></th>
|
||||
<th><?php echo $lang->task->lastEdited;?></th>
|
||||
<td><?php if($task->lastEditedBy) echo $users[$task->lastEditedBy] . $lang->at . $task->lastEditedDate;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/syntaxhighlighter.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
+8
-6
@@ -847,15 +847,17 @@ function setModal()
|
||||
modal.removeClass('modal-loading');
|
||||
if(options.height == 'auto')
|
||||
{
|
||||
setTimeout(function()
|
||||
try
|
||||
{
|
||||
try
|
||||
var $frame = $(window.frames[options.name].document);
|
||||
if($frame.find('#titlebar').length) modal.addClass('with-titlebar');
|
||||
|
||||
setTimeout(function()
|
||||
{
|
||||
var $frame = $(window.frames[options.name].document);
|
||||
modal.find('.modal-body').animate({height: $frame.find('body').addClass('body-modal').height()}, 100);
|
||||
}
|
||||
catch(e){}
|
||||
}, 100);
|
||||
}, 100);
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
}
|
||||
modal.modal('show');
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/* Width definitions */
|
||||
.w-p5 {width: 5%} .w-p10 {width: 10%} .w-p15 {width: 15%} .w-p20 {width: 20%} .w-p25 {width: 25%} .w-p30 {width: 30%} .w-p35 {width: 35%} .w-p40 {width: 40%} .w-p45 {width: 45%} .w-p50 {width: 50%} .w-p55 {width: 55%} .w-p60 {width: 60%} .w-p65 {width: 65%} .w-p70 {width: 70%} .w-p75 {width: 75%} .w-p80 {width: 80%} .w-p85 {width: 85%} .w-p90 {width: 90%} .w-p94 {width: 94%} .w-p95 {width: 95%} .w-p98 {width: 98%} .w-p99 {width: 99%} .w-p100{width: 100%}
|
||||
|
||||
.w-20px {width:20px} .w-30px {width:30px} .w-35px {width:35px} .w-40px {width:40px} .w-45px {width:45px} .w-50px {width:50px} .w-60px {width:60px} .w-70px {width:70px} .w-80px {width:80px} .w-90px {width:90px} .w-100px {width:100px} .w-110px {width:110px} .w-120px {width:120px} .w-130px {width:130px} .w-140px {width:140px} .w-150px {width:150px} .w-160px {width:160px} .w-180px {width:180px} .w-200px {width:200px} .w-400px {width:400px} .w-500px {width:500px} .w-600px {width:600px} .w-700px {width:700px} .w-800px {width:800px} .w-900px {width:900px}
|
||||
.w-auto {width: auto} .w-20px {width:20px} .w-30px {width:30px} .w-35px {width:35px} .w-40px {width:40px} .w-45px {width:45px} .w-50px {width:50px} .w-60px {width:60px} .w-70px {width:70px} .w-80px {width:80px} .w-90px {width:90px} .w-100px {width:100px} .w-110px {width:110px} .w-120px {width:120px} .w-130px {width:130px} .w-140px {width:140px} .w-150px {width:150px} .w-160px {width:160px} .w-180px {width:180px} .w-200px {width:200px} .w-400px {width:400px} .w-500px {width:500px} .w-600px {width:600px} .w-700px {width:700px} .w-800px {width:800px} .w-900px {width:900px}
|
||||
.mw-200px {max-width:200px} .mw-400px {max-width:400px} .mw-500px {max-width:500px} .mw-600px {max-width:600px} .mw-700px {max-width:700px} .mw-800px {max-width:800px} .mw-900px {max-width:900px}
|
||||
|
||||
.w-id {width:60px;} .w-pri {width:40px;} .w-severity {width:50px;} .w-hour {width:48px;} .w-date {width:80px;} .w-user {width:65px;} .w-status {width:55px} .w-type {width:80px} .w-resolution {width:60px}
|
||||
@@ -57,7 +57,7 @@ tr.text-center > td.text-right, tr.text-center > th.text-right {text-align: righ
|
||||
|
||||
/* Datepicker */
|
||||
.datepicker-wrapper {position: relative;}
|
||||
.datepicker-wrapper:before {font-family: ZenIcon; content: '\e617'; display: block; position: absolute; right: 6px; color: #808080; font-size: 14px;}
|
||||
.datepicker-wrapper:before {font-family: ZenIcon; content: '\e617'; display: block; position: absolute; right: 6px; color: #808080; font-size: 14px; top: 4px}
|
||||
.datepicker-wrapper > .form-control {padding-right: 30px;}
|
||||
.datepicker-wrapper.datepicker-date:before {content: '\e66c'}
|
||||
.datepicker-wrapper:hover:before {color: #145CCD}
|
||||
@@ -227,6 +227,8 @@ i[class^="icon-"].disabled,i[class*=" icon-"].disabled,i[class^="icon-"].disable
|
||||
.form-condensed legend:before {font-family: ZenIcon; content: '\e6b8'; font-size: 14px; color: #999; display: inline-block; margin-right: 4px; -webkit-font-smoothing: antialiased;}
|
||||
.form-condensed legend:hover {color: #333;}
|
||||
.form-condensed fieldset.collapsed legend:before {content: '\e6bb'}
|
||||
.form-condensed .chosen-container-single .chosen-single {padding: 4px 10px; height: 30px}
|
||||
.form-condensed .chosen-container-single .chosen-single div {padding: 4px 10px}
|
||||
|
||||
/* help in form */
|
||||
.help-block {margin-bottom: 5px;}
|
||||
@@ -327,6 +329,7 @@ body {font-size: 12px; color:#141414;padding-bottom: 40px;}
|
||||
#defaultMenu > ul > li, #moreMenu > ul > li,#searchResult > ul > li {display: block; float: none; margin: 0 -15px; padding: 2px 10px; border-bottom: 1px dashed #ddd;}
|
||||
#defaultMenu > ul > li:hover, #defaultMenu > .actions > a:hover, #moreMenu > ul > li:hover, #searchResult > ul > li:hover {background: #f1f1f1}
|
||||
#defaultMenu > ul > li > a, #moreMenu > ul > li > a, #searchResult > ul > li > a {line-height: 24px}
|
||||
#moreMenu > ul > li > a {color: #808080}
|
||||
#defaultMenu > ul > li > a:hover, #moreMenu > ul > li > a:hover, #searchResult > ul > li > a:hover {background: none}
|
||||
#defaultMenu > .actions > a {display: block; text-align: right; margin: 0 -15px; padding-right: 15px; line-height: 30px}
|
||||
#searchResult.show-more #defaultMenu > ul > li, #defaultMenu > .actions > a {border-right: 1px solid #ddd}
|
||||
@@ -372,7 +375,6 @@ body {font-size: 12px; color:#141414;padding-bottom: 40px;}
|
||||
#titlebar > .heading > .prefix {display: inline-block; margin-right: 5px; color: #666; border-radius: 4px; margin-bottom: 5px;}
|
||||
#titlebar > .heading > .prefix > i {font-size: 28px; vertical-align: middle; color: #808080}
|
||||
#titlebar > .heading > strong {display: inline-block; vertical-align: middle; margin-right: 5px;}
|
||||
#titlebar > .heading > small {color: #808080;}
|
||||
#titlebar > .heading > small > i {position: relative; top: 1px;}
|
||||
#titlebar .actions {position: absolute; right: 20px; top: 13px;}
|
||||
#titlebar .actions > .btn, #titlebar .actions > .btn-group {margin-left: 8px;}
|
||||
@@ -472,7 +474,14 @@ body {font-size: 12px; color:#141414;padding-bottom: 40px;}
|
||||
|
||||
/* modal with iframe */
|
||||
.modal-iframe .modal-body {transition: all 0.5s; padding: 0}
|
||||
.modal.with-titlebar .modal-header {position: relative; height: 0; padding: 0; border: none; z-index: 999; min-height: 0}
|
||||
.modal.with-titlebar .modal-header .modal-body {z-index: 990}
|
||||
.modal.with-titlebar .modal-header .modal-title {display: none}
|
||||
.modal.with-titlebar .modal-header .close {position: absolute; right: 15px; top: 20px}
|
||||
.body-modal {padding-bottom: 0; overflow: hidden;}
|
||||
.body-modal .outer > form {margin: 10px 5px 20px}
|
||||
.body-modal .outer > .main {padding: 10px 20px; margin: 0}
|
||||
.body-modal > form {padding-bottom: 15px;}
|
||||
|
||||
/*-----------------------LAYOUT SETTING ----------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user