summaryrefslogtreecommitdiff
path: root/app/Templates/project_new.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-05 19:40:57 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-05 19:40:57 -0400
commitd138834dcf902534f78237939926e97fd9a0eebe (patch)
treea6247b9ed98079899c9e21d43044030b69088bee /app/Templates/project_new.php
parent7f5a871f84639a90eebd0ac1d0ee7f759e220cf6 (diff)
Regular users are able to create private projects
Diffstat (limited to 'app/Templates/project_new.php')
-rw-r--r--app/Templates/project_new.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Templates/project_new.php b/app/Templates/project_new.php
index b4ed9990..e1ea5af7 100644
--- a/app/Templates/project_new.php
+++ b/app/Templates/project_new.php
@@ -1,20 +1,21 @@
<section id="main">
<div class="page-header">
- <h2><?= t('New project') ?></h2>
+ <h2><?= empty($values['is_private']) ? t('New project') : t('New private project') ?></h2>
<ul>
- <li><a href="?controller=project"><?= t('All projects') ?></a></li>
+ <li><?= Helper\a(t('All projects'), 'project', 'index') ?></li>
</ul>
</div>
<section>
- <form method="post" action="?controller=project&amp;action=save" autocomplete="off">
+ <form method="post" action="<?= Helper\u('project', 'save') ?>" autocomplete="off">
<?= Helper\form_csrf() ?>
+ <?= Helper\form_hidden('is_private', $values) ?>
<?= Helper\form_label(t('Name'), 'name') ?>
<?= Helper\form_text('name', $values, $errors, array('autofocus', 'required')) ?>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
- <?= t('or') ?> <a href="?controller=project"><?= t('cancel') ?></a>
+ <?= t('or') ?> <?= Helper\a(t('cancel'), 'project', 'index') ?>
</div>
</form>
</section>