summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-16 23:02:47 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-16 23:02:47 -0500
commit0db66953a78b704e3710b970ab11b87058bb3859 (patch)
tree3e2ac3d2557dbe13d479dbb93d13463c270bb1fe /app/Template
parentba3abb5940bd00c87ffe594eec83b95d428a575f (diff)
Use chosen for board dropdown filters
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/board/filters.php6
-rw-r--r--app/Template/calendar/sidebar.php12
2 files changed, 8 insertions, 10 deletions
diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php
index a5697f3f..fee8176c 100644
--- a/app/Template/board/filters.php
+++ b/app/Template/board/filters.php
@@ -49,12 +49,10 @@
</ul>
</li>
<li>
- <?= t('Filter by user') ?>
- <?= $this->formSelect('user_id', $users) ?>
+ <?= $this->formSelect('user_id', $users, array(), array(), array('data-placeholder="'.t('Filter by user').'"')) ?>
</li>
<li>
- <?= t('Filter by category') ?>
- <?= $this->formSelect('category_id', $categories) ?>
+ <?= $this->formSelect('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"')) ?>
</li>
<li>
<a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a>
diff --git a/app/Template/calendar/sidebar.php b/app/Template/calendar/sidebar.php
index 599b2912..b074ed91 100644
--- a/app/Template/calendar/sidebar.php
+++ b/app/Template/calendar/sidebar.php
@@ -4,37 +4,37 @@
<?= t('Filter by user') ?>
</li>
<li>
- <?= $this->formSelect('owner_id', $users_list, array(), array(), 'calendar-filter') ?>
+ <?= $this->formSelect('owner_id', $users_list, array(), array(), array(), 'calendar-filter') ?>
</li>
<li>
<?= t('Filter by category') ?>
</li>
<li>
- <?= $this->formSelect('category_id', $categories_list, array(), array(), 'calendar-filter') ?>
+ <?= $this->formSelect('category_id', $categories_list, array(), array(), array(), 'calendar-filter') ?>
</li>
<li>
<?= t('Filter by column') ?>
</li>
<li>
- <?= $this->formSelect('column_id', $columns_list, array(), array(), 'calendar-filter') ?>
+ <?= $this->formSelect('column_id', $columns_list, array(), array(), array(), 'calendar-filter') ?>
</li>
<li>
<?= t('Filter by swimlane') ?>
</li>
<li>
- <?= $this->formSelect('swimlane_id', $swimlanes_list, array(), array(), 'calendar-filter') ?>
+ <?= $this->formSelect('swimlane_id', $swimlanes_list, array(), array(), array(), 'calendar-filter') ?>
</li>
<li>
<?= t('Filter by color') ?>
</li>
<li>
- <?= $this->formSelect('color_id', $colors_list, array(), array(), 'calendar-filter') ?>
+ <?= $this->formSelect('color_id', $colors_list, array(), array(), array(), 'calendar-filter') ?>
</li>
<li>
<?= t('Filter by status') ?>
</li>
<li>
- <?= $this->formSelect('is_active', $status_list, array(), array(), 'calendar-filter') ?>
+ <?= $this->formSelect('is_active', $status_list, array(), array(), array(), 'calendar-filter') ?>
</li>
</ul>
</div>