* Finish Task#3587.

This commit is contained in:
滔哥
2018-01-12 10:38:11 +08:00
parent 1c828004b1
commit dd0d97a437
4 changed files with 41 additions and 3 deletions
+24
View File
@@ -1518,6 +1518,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(2, 'todo', 'finish'),
(2, 'todo', 'import2Today'),
(2, 'todo', 'view'),
(2, 'todo', 'assignTo'),
(2, 'todo', 'activate'),
(2, 'todo', 'close'),
(2, 'user', 'bug'),
(2, 'user', 'deleteContacts'),
(2, 'user', 'dynamic'),
@@ -1957,6 +1960,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(4, 'todo', 'finish'),
(4, 'todo', 'import2Today'),
(4, 'todo', 'view'),
(4, 'todo', 'assignTo'),
(4, 'todo', 'activate'),
(4, 'todo', 'close'),
(4, 'tree', 'browse'),
(4, 'tree', 'browseTask'),
(4, 'tree', 'delete'),
@@ -2214,6 +2220,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(5, 'todo', 'finish'),
(5, 'todo', 'import2Today'),
(5, 'todo', 'view'),
(5, 'todo', 'assignTo'),
(5, 'todo', 'activate'),
(5, 'todo', 'close'),
(5, 'tree', 'browse'),
(5, 'tree', 'browseTask'),
(5, 'tree', 'delete'),
@@ -2443,6 +2452,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(6, 'todo', 'finish'),
(6, 'todo', 'import2Today'),
(6, 'todo', 'view'),
(6, 'todo', 'assignTo'),
(6, 'todo', 'activate'),
(6, 'todo', 'close'),
(6, 'tree', 'browse'),
(6, 'tree', 'browseTask'),
(6, 'tree', 'delete'),
@@ -2684,6 +2696,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(7, 'todo', 'finish'),
(7, 'todo', 'import2Today'),
(7, 'todo', 'view'),
(7, 'todo', 'assignTo'),
(7, 'todo', 'activate'),
(7, 'todo', 'close'),
(7, 'tree', 'browse'),
(7, 'tree', 'browseTask'),
(7, 'tree', 'delete'),
@@ -2937,6 +2952,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(8, 'todo', 'finish'),
(8, 'todo', 'import2Today'),
(8, 'todo', 'view'),
(8, 'todo', 'assignTo'),
(8, 'todo', 'activate'),
(8, 'todo', 'close'),
(8, 'tree', 'browse'),
(8, 'tree', 'browseTask'),
(8, 'tree', 'delete'),
@@ -3103,6 +3121,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(9, 'todo', 'finish'),
(9, 'todo', 'import2Today'),
(9, 'todo', 'view'),
(9, 'todo', 'assignTo'),
(9, 'todo', 'activate'),
(9, 'todo', 'close'),
(9, 'user', 'batchCreate'),
(9, 'user', 'batchEdit'),
(9, 'user', 'bug'),
@@ -3217,6 +3238,9 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(10, 'todo', 'finish'),
(10, 'todo', 'import2Today'),
(10, 'todo', 'view'),
(10, 'todo', 'assignTo'),
(10, 'todo', 'activate'),
(10, 'todo', 'close'),
(10, 'user', 'bug'),
(10, 'user', 'dynamic'),
(10, 'user', 'profile'),
+5 -2
View File
@@ -115,6 +115,9 @@ $lang->resource->todo->export = 'export';
$lang->resource->todo->finish = 'finish';
$lang->resource->todo->batchFinish = 'batchFinish';
$lang->resource->todo->import2Today = 'import2Today';
$lang->resource->todo->assignTo = 'assignTo';
$lang->resource->todo->activate = 'activate';
$lang->resource->todo->close = 'close';
$lang->todo->methodOrder[5] = 'create';
$lang->todo->methodOrder[10] = 'batchCreate';
@@ -953,7 +956,7 @@ $lang->editor->methodOrder[30] = 'delete';
/* Convert. */
$lang->resource->convert = new stdclass();
$lang->resource->convert->index = 'index';
$lang->resource->convert->selectSource = 'selectSource';
$lang->resource->convert->selectSource = 'selectSource';
$lang->resource->convert->setConfig = 'setConfig';
$lang->resource->convert->setBugfree = 'setBugfree';
$lang->resource->convert->setRedmine = 'setRedmine';
@@ -1417,7 +1420,7 @@ if($config->global->flow == 'onlyStory')
unset($lang->moduleOrder[150]);
unset($lang->resource->git);
unset($lang->moduleOrder[155]);
unset($lang->resource->story->tasks);
}
+2 -1
View File
@@ -16,9 +16,10 @@ $config->todo->times->delta = 10;
$config->todo->editor = new stdclass();
$config->todo->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
$config->todo->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools');
$config->todo->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools');
$config->todo->list = new stdclass();
$config->todo->list->exportFields = 'id, account, date, begin, end, type, idvalue, pri, name, desc, status, private';
$config->todo->list->exportFields = 'id, account, date, begin, end, type, idvalue, pri, name, desc, status, private';
$config->todo->list->customBatchCreateFields = 'type,pri,desc,beginAndEnd';
$config->todo->list->customBatchEditFields = 'pri,desc,beginAndEnd,status';
+10
View File
@@ -11,6 +11,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php if(!$todo->private or ($todo->private and $todo->account == $app->user->account)):?>
<div class='container mw-700px'>
<div id='titlebar'>
@@ -112,6 +113,8 @@
if($todo->status == 'done' || $todo->status == 'closed') echo html::a($this->createLink('todo', 'activate', "todoID=$todo->id"), "<i class='icon icon-magic'></i> " . $lang->todo->activate, 'hiddenwin', "class='btn showinonlybody'");
if($todo->status == 'done') echo html::a($this->createLink('todo', 'close', "todoID=$todo->id"), "<i class='icon icon-off'></i> " . $lang->todo->close, 'hiddenwin', "class='btn showinonlybody'");
echo html::a($this->createLink('todo', 'delete', "todoID=$todo->id"), "<i class='icon icon-remove'></i> " . $lang->todo->delete, 'hiddenwin', "class='btn showinonlybody'");
echo html::a('#commentBox', '<i class="icon-comment-alt"></i>', '', "title='$lang->comment' onclick='setComment()' class='btn'");
}
if($this->session->todoList)
@@ -153,6 +156,13 @@
?>
</div>
</div>
<fieldset id='commentBox' class='hide'>
<legend><?php echo $lang->comment;?></legend>
<form method='post' action='<?php echo $this->createLink('action', 'comment', "objectType=todo&objectID=$todo->id")?>' target='hiddenwin'>
<div class="form-group"><?php echo html::textarea('comment', '',"rows='5' class='w-p100'");?></div>
<?php echo html::submitButton();?>
</form>
</fieldset>
<div class="modal fade" id="projectModal">
<div class="modal-dialog">
<div class="modal-content">