Show swimlane dropdown only when necessary

This commit is contained in:
Frederic Guillot
2015-05-21 22:28:28 -04:00
parent 0a9b6f0d99
commit c9ba525bab
3 changed files with 10 additions and 3 deletions

View File

@@ -54,8 +54,10 @@
<?= $this->formLabel(t('Category'), 'category_id') ?>
<?= $this->formSelect('category_id', $categories_list, $values, $errors) ?><br/>
<?php if (! (count($swimlanes_list) === 1 && key($swimlanes_list) === 0)): ?>
<?= $this->formLabel(t('Swimlane'), 'swimlane_id') ?>
<?= $this->formSelect('swimlane_id', $swimlanes_list, $values, $errors) ?><br/>
<?php endif ?>
<?= $this->formLabel(t('Column'), 'column_id') ?>
<?= $this->formSelect('column_id', $columns_list, $values, $errors) ?><br/>