diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-21 19:10:24 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-21 19:10:24 -0400 |
commit | 373537efe2f893f91f11c04436073bbb2c2732dd (patch) | |
tree | e744f1260c36e3b1a5c5e92c998ae5ebed76df19 /app/Template | |
parent | bcb39ad4db0f4c1d9bf35437852ee0b74e1680ce (diff) |
Allow admins to transform a private project to a team project
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/project/edit.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/project/edit.php b/app/Template/project/edit.php index 37b03fe1..c1f98315 100644 --- a/app/Template/project/edit.php +++ b/app/Template/project/edit.php @@ -1,7 +1,7 @@ <div class="page-header"> <h2><?= t('Edit project') ?></h2> </div> -<form method="post" action="<?= $this->u('project', 'update', array('project_id' => $values['id'])) ?>" autocomplete="off"> +<form method="post" action="<?= $this->u('project', 'update', array('project_id' => $project['id'])) ?>" autocomplete="off"> <?= $this->formCsrf() ?> <?= $this->formHidden('id', $values) ?> @@ -30,6 +30,10 @@ </div> <div class="form-help"><a href="http://kanboard.net/documentation/syntax-guide" target="_blank" rel="noreferrer"><?= t('Write your text in Markdown') ?></a></div> + <?php if ($project['is_private'] == 1 && $this->userSession->isAdmin()): ?> + <?= $this->formCheckbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?> + <?php endif ?> + <div class="form-actions"> <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> </div> |