summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-30 22:12:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-30 22:12:20 -0400
commit8970fba41f9ecf46e9d4e477aeb11f81f84d96c7 (patch)
tree62810731dc83ea64418d13541b84301db37c6767
parentbd583674bc82deb34730a7d553bed0b56b9a9e5e (diff)
Do not show the checkbox "Show default swimlane" when there is no active swimlanes
-rw-r--r--ChangeLog1
-rw-r--r--app/Template/swimlane/index.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 909af3a1..8d43311c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ Core functionalities moved to plugins:
Improvements:
+* Do not show the checkbox "Show default swimlane" when there is no active swimlanes
* Append filters instead of replacing value for users and categories dropdowns
* Do not show empty swimlanes in public view
* Change swimlane layout to save space on the screen
diff --git a/app/Template/swimlane/index.php b/app/Template/swimlane/index.php
index 41ba788b..95b462d8 100644
--- a/app/Template/swimlane/index.php
+++ b/app/Template/swimlane/index.php
@@ -52,7 +52,9 @@
<?= $this->form->label(t('Rename'), 'default_swimlane') ?>
<?= $this->form->text('default_swimlane', $default_swimlane, array(), array('required', 'maxlength="50"')) ?><br/>
- <?= $this->form->checkbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?>
+ <?php if (! empty($active_swimlanes)): ?>
+ <?= $this->form->checkbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?>
+ <?php endif ?>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>