* Finish task #71890.
This commit is contained in:
@@ -21,4 +21,22 @@ $(function()
|
||||
type: 'iframe'
|
||||
}).trigger('click');
|
||||
}
|
||||
|
||||
$('#todoForm').table(
|
||||
{
|
||||
replaceId: 'todoIDList',
|
||||
statisticCreator: function(table)
|
||||
{
|
||||
var $table = table.getTable();
|
||||
var $checkedRows = $table.find('tbody>tr.checked');
|
||||
var checkedTotal = $checkedRows.length;
|
||||
var checkedWait = $checkedRows.filter("[data-status=wait]").length;
|
||||
var checkedDoing = $checkedRows.filter("[data-status=doing]").length;
|
||||
var checkedStatistics = checkedSummary.replace('%total%', checkedTotal)
|
||||
.replace('%wait%', checkedWait)
|
||||
.replace('%doing%', checkedDoing);
|
||||
|
||||
return checkedTotal ? checkedStatistics : pageSummary;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -67,13 +67,15 @@
|
||||
</p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<form class="main-table table-todo" data-ride="table" method="post">
|
||||
<form class="main-table table-todo" method="post" id='todoForm'>
|
||||
<?php
|
||||
$canBatchEdit = common::hasPriv('todo', 'batchEdit');
|
||||
$canBatchFinish = common::hasPriv('todo', 'batchFinish');
|
||||
$canBatchClose = common::hasPriv('todo', 'batchClose');
|
||||
|
||||
$canbatchAction = ($type != 'cycle' and ($canBatchEdit or $canBatchFinish or $canBatchClose or (common::hasPriv('todo', 'import2Today') and $importFuture)));
|
||||
$waitCount = 0;
|
||||
$doingCount = 0;
|
||||
?>
|
||||
<table class="table has-sort-head" id='todoList'>
|
||||
<?php $vars = "type=$type&userID={$user->id}&status=$status&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"; ?>
|
||||
@@ -105,7 +107,9 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($todos as $todo):?>
|
||||
<tr>
|
||||
<?php if($todo->status == 'wait') $waitCount ++;?>
|
||||
<?php if($todo->status == 'doing') $doingCount ++;?>
|
||||
<tr data-status='<?php echo $todo->status;?>'>
|
||||
<td class="c-id">
|
||||
<?php if($canbatchAction):?>
|
||||
<div class="checkbox-primary">
|
||||
@@ -192,10 +196,13 @@
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="table-statistic"><?php echo sprintf($lang->todo->summary, count($todos), $waitCount, $doingCount);?></div>
|
||||
<?php $pager->show('right', 'pagerjs');?>
|
||||
</div>
|
||||
</form>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php js::set('listName', 'todoList');?>
|
||||
<?php js::set('pageSummary', sprintf($lang->todo->summary, count($todos), $waitCount, $doingCount));?>
|
||||
<?php js::set('checkedSummary', $lang->todo->checkedSummary);?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -83,10 +83,12 @@ $lang->todo->beforeDays = "%s<span class='input-group-addon'>early in advance
|
||||
$lang->todo->dayNames = array(1 => 'Monday', 2 => 'Tuesday', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 0 => 'Sunday');
|
||||
$lang->todo->specifiedDay = array(1 => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
|
||||
|
||||
$lang->todo->confirmBug = 'Dieser Todo steht in Beziehung mit Bug #%s. Möchten Sie das bearbeiten?';
|
||||
$lang->todo->confirmTask = 'Dieser Todo steht in Beziehung mit Task #%s, Möchten Sie das bearbeiten?';
|
||||
$lang->todo->confirmStory = 'Dieser Todo steht in Beziehung mit Story #%s, Möchten Sie das bearbeiten?';
|
||||
$lang->todo->noOptions = 'You have no %s todo at the moment. Please reselect the Todo type.';
|
||||
$lang->todo->confirmBug = 'Dieser Todo steht in Beziehung mit Bug #%s. Möchten Sie das bearbeiten?';
|
||||
$lang->todo->confirmTask = 'Dieser Todo steht in Beziehung mit Task #%s, Möchten Sie das bearbeiten?';
|
||||
$lang->todo->confirmStory = 'Dieser Todo steht in Beziehung mit Story #%s, Möchten Sie das bearbeiten?';
|
||||
$lang->todo->noOptions = 'You have no %s todo at the moment. Please reselect the Todo type.';
|
||||
$lang->todo->summary = 'Total todos: <strong>%s</strong>, Wait: <strong>%s</strong>, Doing: <strong>%s</strong>.';
|
||||
$lang->todo->checkedSummary = 'Seleted: <strong>%total%</strong>, Wait: <strong>%wait%</strong>, Doing: <strong>%doing%</strong>.';
|
||||
|
||||
$lang->todo->statusList['wait'] = 'Wartend';
|
||||
$lang->todo->statusList['doing'] = 'In Arbeit';
|
||||
|
||||
@@ -83,10 +83,12 @@ $lang->todo->beforeDays = "<span class='input-group-addon'>Auto create the tod
|
||||
$lang->todo->dayNames = array(1 => 'Monday', 2 => 'Tuesday', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 0 => 'Sunday');
|
||||
$lang->todo->specifiedDay = array(1 => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
|
||||
|
||||
$lang->todo->confirmBug = 'This Todo is linked to Bug #%s. Do you want to edit it?';
|
||||
$lang->todo->confirmTask = 'This Todo is linked to Task #%s,Do you want to edit it?';
|
||||
$lang->todo->confirmStory = 'This Todo is linked to Story #%s,Do you want to edit it?';
|
||||
$lang->todo->noOptions = 'You have no %s todo at the moment. Please reselect the Todo type.';
|
||||
$lang->todo->confirmBug = 'This Todo is linked to Bug #%s. Do you want to edit it?';
|
||||
$lang->todo->confirmTask = 'This Todo is linked to Task #%s,Do you want to edit it?';
|
||||
$lang->todo->confirmStory = 'This Todo is linked to Story #%s,Do you want to edit it?';
|
||||
$lang->todo->noOptions = 'You have no %s todo at the moment. Please reselect the Todo type.';
|
||||
$lang->todo->summary = 'Total todos: <strong>%s</strong>, Wait: <strong>%s</strong>, Doing: <strong>%s</strong>.';
|
||||
$lang->todo->checkedSummary = 'Seleted: <strong>%total%</strong>, Wait: <strong>%wait%</strong>, Doing: <strong>%doing%</strong>.';
|
||||
|
||||
$lang->todo->statusList['wait'] = 'Waiting';
|
||||
$lang->todo->statusList['doing'] = 'Doing';
|
||||
|
||||
@@ -83,10 +83,12 @@ $lang->todo->beforeDays = "<span class='input-group-addon'>Créer automatiquem
|
||||
$lang->todo->dayNames = array(1 => 'Lundi', 2 => 'Mardi', 3 => 'Mercredi', 4 => 'Jeudi', 5 => 'Vendredi', 6 => 'Samedi', 0 => 'Dimanche');
|
||||
$lang->todo->specifiedDay = array(1 => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
|
||||
|
||||
$lang->todo->confirmBug = "Cette action est liée au Bug #%s. Voulez-vous l'éditer ?";
|
||||
$lang->todo->confirmTask = "Cette action est liée à la Tâche #%s. Voulez-vous l'éditer ?";
|
||||
$lang->todo->confirmStory = "Cette action est liée à la Story #%s. Voulez-vous l'éditer ?";
|
||||
$lang->todo->noOptions = 'Vous n\'avez pas de %s en attente pour le moment. Veuillez sélectionner le type de Todo.';
|
||||
$lang->todo->confirmBug = "Cette action est liée au Bug #%s. Voulez-vous l'éditer ?";
|
||||
$lang->todo->confirmTask = "Cette action est liée à la Tâche #%s. Voulez-vous l'éditer ?";
|
||||
$lang->todo->confirmStory = "Cette action est liée à la Story #%s. Voulez-vous l'éditer ?";
|
||||
$lang->todo->noOptions = 'Vous n\'avez pas de %s en attente pour le moment. Veuillez sélectionner le type de Todo.';
|
||||
$lang->todo->summary = 'Total todos: <strong>%s</strong>, Wait: <strong>%s</strong>, Doing: <strong>%s</strong>.';
|
||||
$lang->todo->checkedSummary = 'Seleted: <strong>%total%</strong>, Wait: <strong>%wait%</strong>, Doing: <strong>%doing%</strong>.';
|
||||
|
||||
$lang->todo->statusList['wait'] = 'En Attente';
|
||||
$lang->todo->statusList['doing'] = 'En cours';
|
||||
|
||||
@@ -83,10 +83,12 @@ $lang->todo->beforeDays = "<span class='input-group-addon'>提前</span>%s<spa
|
||||
$lang->todo->dayNames = array(1 => '星期一', 2 => '星期二', 3 => '星期三', 4 => '星期四', 5 => '星期五', 6 => '星期六', 0 => '星期日');
|
||||
$lang->todo->specifiedDay = array(1 => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
|
||||
|
||||
$lang->todo->confirmBug = '该待办关联的是Bug #%s,需要修改它吗?';
|
||||
$lang->todo->confirmTask = '该待办关联的是Task #%s,需要修改它吗?';
|
||||
$lang->todo->confirmStory = '该待办关联的是Story #%s,需要修改它吗?';
|
||||
$lang->todo->noOptions = '您暂时没有待处理的%s,请重新选择待办类型。';
|
||||
$lang->todo->confirmBug = '该待办关联的是Bug #%s,需要修改它吗?';
|
||||
$lang->todo->confirmTask = '该待办关联的是Task #%s,需要修改它吗?';
|
||||
$lang->todo->confirmStory = '该待办关联的是Story #%s,需要修改它吗?';
|
||||
$lang->todo->noOptions = '您暂时没有待处理的%s,请重新选择待办类型。';
|
||||
$lang->todo->summary = '本页共 <strong>%s</strong> 项待办,未开始 <strong>%s</strong>,进行中 <strong>%s</strong>。';
|
||||
$lang->todo->checkedSummary = '共选择 <strong>%total%</strong> 项待办,未开始 <strong>%wait%</strong>,进行中 <strong>%doing%</strong>。';
|
||||
|
||||
$lang->todo->statusList['wait'] = '未开始';
|
||||
$lang->todo->statusList['doing'] = '进行中';
|
||||
|
||||
Reference in New Issue
Block a user