Make project creation form a inline popup
This commit is contained in:
@@ -189,10 +189,9 @@ abstract class Base extends \Kanboard\Core\Base
|
||||
*/
|
||||
protected function taskLayout($template, array $params)
|
||||
{
|
||||
$params['ajax'] = $this->request->isAjax();
|
||||
$content = $this->template->render($template, $params);
|
||||
|
||||
if ($params['ajax']) {
|
||||
if ($this->request->isAjax()) {
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,7 @@ class ProjectCreation extends Base
|
||||
$is_private = isset($values['is_private']) && $values['is_private'] == 1;
|
||||
$projects_list = array(0 => t('Do not duplicate anything')) + $this->projectUserRole->getActiveProjectsByUser($this->userSession->getId());
|
||||
|
||||
$this->response->html($this->template->layout('project_creation/create', array(
|
||||
'board_selector' => $this->projectUserRole->getActiveProjectsByUser($this->userSession->getId()),
|
||||
$this->response->html($this->helper->layout->app('project_creation/create', array(
|
||||
'values' => $values,
|
||||
'errors' => $errors,
|
||||
'is_private' => $is_private,
|
||||
|
||||
Reference in New Issue
Block a user