* adjust burn.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
.pr-25px{padding-right:25px;}
|
||||
#burn h1{font-size:14px;}
|
||||
.icon-question-sign{color:#666}
|
||||
#computeBurn{padding:2px 10px;}
|
||||
a.btn{padding:1.5px 10px;}
|
||||
#interval{margin-right:10px;}
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
$('#interval').change(function()
|
||||
$(function()
|
||||
{
|
||||
location.href = createLink('project', 'burn', 'projectID=' + projectID + '&type=' + type + '&interval=' + $(this).val());
|
||||
})
|
||||
$('#burnTab').addClass('active');
|
||||
|
||||
var weekendType = $('#weekend').attr('checked');
|
||||
$('#weekend').click(function()
|
||||
{
|
||||
weekendType = weekendType ? 'noweekend' : 'widthweekend';
|
||||
params = 'projectID=' + projectID + '&type=' + weekendType;
|
||||
if(interval) params = params + '&interval=' + interval;
|
||||
location.href = createLink('project', 'burn', params);
|
||||
$('#interval').change(function()
|
||||
{
|
||||
location.href = createLink('project', 'burn', 'projectID=' + projectID + '&type=' + type + '&interval=' + $(this).val());
|
||||
})
|
||||
})
|
||||
|
||||
@@ -193,7 +193,8 @@ $lang->project->linkStory = 'Link story';
|
||||
$lang->project->createTask = 'Create task';
|
||||
$lang->project->goback = 'Go back';
|
||||
$lang->project->linkProduct = 'Select product to link...';
|
||||
$lang->project->weekend = 'Weekend';
|
||||
$lang->project->noweekend = 'No weekend';
|
||||
$lang->project->widthweekend = 'Width weekend';
|
||||
$lang->project->interval = 'Interval';
|
||||
|
||||
/* Report. */
|
||||
|
||||
@@ -193,7 +193,8 @@ $lang->project->linkStory = '关联需求';
|
||||
$lang->project->createTask = '添加任务';
|
||||
$lang->project->goback = '返回项目首页';
|
||||
$lang->project->linkProduct = '选择产品关联...';
|
||||
$lang->project->weekend = '周末';
|
||||
$lang->project->noweekend = '去除周末';
|
||||
$lang->project->withweekend = '显示周末';
|
||||
$lang->project->interval = '间隔';
|
||||
|
||||
/* 统计。*/
|
||||
|
||||
@@ -12,16 +12,13 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include './taskheader.html.php';?>
|
||||
<script>$('#burnTab').addClass('active');</script>
|
||||
<table width='950' align='center' class='bd-none' id='burn'>
|
||||
<tr>
|
||||
<td class='a-right pr-25px v-middle'>
|
||||
<td class='a-right pr-25px'>
|
||||
<?php
|
||||
$checked = ($type == 'noweekend') ? '' : "weekend";
|
||||
echo html::checkbox('', array('weekend' => $lang->project->weekend), $checked);
|
||||
|
||||
if($interval) echo html::select('interval', $dayList, $interval);
|
||||
|
||||
$weekend = ($type == 'noweekend') ? 'withweekend' : "noweekend";
|
||||
echo html::a($this->createLink('project', 'burn', "projectID=$projectID&type=$weekend&interval=$interval"), $lang->project->$weekend, '', "class='btn'");
|
||||
common::printLink('project', 'computeBurn', 'reload=yes', $lang->project->computeBurn, 'hiddenwin', "title='{$lang->project->computeBurn}{$lang->project->burn}' class='btn' id='computeBurn'");
|
||||
echo $lang->project->howToUpdateBurn;
|
||||
?>
|
||||
@@ -30,8 +27,9 @@
|
||||
<tr><td class='a-center'><?php echo $charts; ?></td></tr>
|
||||
</table>
|
||||
<?php
|
||||
/* Interval is keyword in javascript so use intervals. */
|
||||
js::set('intervals', $interval);
|
||||
js::set('projectID', $projectID);
|
||||
js::set('type', $type);
|
||||
js::set('interval', $interval);
|
||||
?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user