diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2022-05-20 11:34:43 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-05-20 11:34:43 +0000 |
| commit | 2d4cb8be96700192fa0395400df3338f3fafd369 (patch) | |
| tree | c5750aeb8bc3f5812625d1bb18840994aa78ae06 /templates/sidebar | |
| parent | a762ad293934d305237e0090dc9499cd23788bbe (diff) | |
fix rooms search, closes #226 closes #1022, closes #227
Closes #226, #1022, and #227
Merge request studip/studip!648
Diffstat (limited to 'templates/sidebar')
| -rw-r--r-- | templates/sidebar/room-search-criteria-available-range.php | 2 | ||||
| -rw-r--r-- | templates/sidebar/room-search-criteria-templates.php | 25 |
2 files changed, 10 insertions, 17 deletions
diff --git a/templates/sidebar/room-search-criteria-available-range.php b/templates/sidebar/room-search-criteria-available-range.php index 1a07f65..4157e35 100644 --- a/templates/sidebar/room-search-criteria-available-range.php +++ b/templates/sidebar/room-search-criteria-available-range.php @@ -99,7 +99,7 @@ <option value=""><?= _('Bitte wählen') ?></option> <? foreach ($criteria['day_of_week']['options'] as $value => $title): ?> <option value="<?= htmlReady($value) ?>" - <?= ($value == $day_of_week['value'] + <?= ($value === (int)$criteria['day_of_week']['value'] ? 'selected="selected"' : '') ?>> <?= htmlReady($title) ?> diff --git a/templates/sidebar/room-search-criteria-templates.php b/templates/sidebar/room-search-criteria-templates.php index 33eb2f5..1713982 100644 --- a/templates/sidebar/room-search-criteria-templates.php +++ b/templates/sidebar/room-search-criteria-templates.php @@ -1,7 +1,6 @@ <li class="template invisible" data-template-type="bool"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] @@ -15,8 +14,7 @@ </li> <li class="template invisible" data-template-type="range"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] @@ -26,18 +24,17 @@ <span></span> <div class="range-input-container"> <?= _('von') ?> - <input type="number" + <input type="number" value="10" class="room-search-widget_criteria-list_input"> <?= _('bis') ?> - <input type="number" + <input type="number" value="100" class="room-search-widget_criteria-list_input"> </div> </label> </li> <li class="template invisible" data-template-type="num"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] @@ -50,8 +47,7 @@ </li> <li class="template invisible" data-template-type="select"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] @@ -64,8 +60,7 @@ </li> <li class="template invisible" data-template-type="date"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] @@ -83,8 +78,7 @@ </li> <li class="template invisible" data-template-type="date_range"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] @@ -103,8 +97,7 @@ </li> <li class="template invisible" data-template-type="other"> - <?= Icon::create('trash', 'clickable')->asImg( - '16px', + <?= Icon::create('trash')->asImg( [ 'class' => 'text-bottom remove-icon' ] |
