Add predefined templates for task descriptions

This commit is contained in:
Frederic Guillot
2017-11-02 15:41:58 -07:00
parent 44ae87ac0e
commit 648dc6bcfb
49 changed files with 655 additions and 17 deletions

View File

@@ -10,13 +10,6 @@ namespace Kanboard\Controller;
*/
class ProjectPredefinedContentController extends BaseController
{
/**
* Edit project
*
* @access public
* @param array $values
* @param array $errors
*/
public function show(array $values = array(), array $errors = array())
{
$project = $this->getProject();
@@ -25,15 +18,11 @@ class ProjectPredefinedContentController extends BaseController
'values' => empty($values) ? $project : $values,
'errors' => $errors,
'project' => $project,
'title' => t('Predefined Contents')
'predefined_task_descriptions' => $this->predefinedTaskDescriptionModel->getAll($project['id']),
'title' => t('Predefined Contents'),
)));
}
/**
* Validate and update a project
*
* @access public
*/
public function update()
{
$project = $this->getProject();