Allow admins to transform a private project to a team project

This commit is contained in:
Frederic Guillot
2015-03-21 19:10:24 -04:00
parent bcb39ad4db
commit 373537efe2
3 changed files with 12 additions and 2 deletions

View File

@@ -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>