summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-31 20:14:51 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-31 20:14:51 -0500
commit271543431e999032d6e91197633119309fa6c622 (patch)
tree93c84f80092b6b463dcb643ee6bd0302c18fdf47 /app/Template
parent0bc51620c731e7cfd10db5e064fc04693205b21c (diff)
Make project creation form a inline popup
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/app/layout.php4
-rw-r--r--app/Template/header.php4
-rw-r--r--app/Template/project_creation/create.php4
3 files changed, 5 insertions, 7 deletions
diff --git a/app/Template/app/layout.php b/app/Template/app/layout.php
index 8a745327..d54b1da7 100644
--- a/app/Template/app/layout.php
+++ b/app/Template/app/layout.php
@@ -4,12 +4,12 @@
<?php if ($this->user->hasAccess('ProjectCreation', 'create')): ?>
<li>
<i class="fa fa-plus fa-fw"></i>
- <?= $this->url->link(t('New project'), 'ProjectCreation', 'create') ?>
+ <?= $this->url->link(t('New project'), 'ProjectCreation', 'create', array(), false, 'popover') ?>
</li>
<?php endif ?>
<li>
<i class="fa fa-lock fa-fw"></i>
- <?= $this->url->link(t('New private project'), 'ProjectCreation', 'createPrivate') ?>
+ <?= $this->url->link(t('New private project'), 'ProjectCreation', 'createPrivate', array(), false, 'popover') ?>
</li>
<li>
<i class="fa fa-search fa-fw"></i>
diff --git a/app/Template/header.php b/app/Template/header.php
index 36db54d5..fd9ff24d 100644
--- a/app/Template/header.php
+++ b/app/Template/header.php
@@ -42,10 +42,10 @@
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-plus fa-fw"></i><i class="fa fa-caret-down"></i></a>
<ul>
<?php if ($this->user->hasAccess('ProjectCreation', 'create')): ?>
- <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New project'), 'ProjectCreation', 'create') ?></li>
+ <li><i class="fa fa-plus fa-fw"></i><?= $this->url->link(t('New project'), 'ProjectCreation', 'create', array(), false, 'popover') ?></li>
<?php endif ?>
<li>
- <i class="fa fa-lock fa-fw"></i><?= $this->url->link(t('New private project'), 'ProjectCreation', 'createPrivate') ?>
+ <i class="fa fa-lock fa-fw"></i><?= $this->url->link(t('New private project'), 'ProjectCreation', 'createPrivate', array(), false, 'popover') ?>
</li>
</ul>
</div>
diff --git a/app/Template/project_creation/create.php b/app/Template/project_creation/create.php
index 6caa36af..387f0ff4 100644
--- a/app/Template/project_creation/create.php
+++ b/app/Template/project_creation/create.php
@@ -1,8 +1,6 @@
<section id="main">
<div class="page-header">
- <ul>
- <li><i class="fa fa-folder fa-fw"></i><?= $this->url->link(t('All projects'), 'project', 'index') ?></li>
- </ul>
+ <h2><?= $title ?></h2>
</div>
<form class="form-popover" id="project-creation-form" method="post" action="<?= $this->url->href('ProjectCreation', 'save') ?>" autocomplete="off">