diff options
Diffstat (limited to 'templates/sidebar')
| -rw-r--r-- | templates/sidebar/room-search-criteria-templates.php | 8 | ||||
| -rw-r--r-- | templates/sidebar/room-search-criteria.php | 10 |
2 files changed, 11 insertions, 7 deletions
diff --git a/templates/sidebar/room-search-criteria-templates.php b/templates/sidebar/room-search-criteria-templates.php index 1713982..d75ccbd 100644 --- a/templates/sidebar/room-search-criteria-templates.php +++ b/templates/sidebar/room-search-criteria-templates.php @@ -5,10 +5,12 @@ 'class' => 'text-bottom remove-icon' ] ) ?> - <input type="hidden" - value="1" - class="room-search-widget_criteria-list_input"> + <input type="hidden" value="1"> <label class="undecorated"> + <input type="checkbox" + value="1" + checked + class="room-search-widget_criteria-list_input"> <span></span> </label> </li> diff --git a/templates/sidebar/room-search-criteria.php b/templates/sidebar/room-search-criteria.php index 918de6e..96c24d8 100644 --- a/templates/sidebar/room-search-criteria.php +++ b/templates/sidebar/room-search-criteria.php @@ -35,10 +35,12 @@ <?= $criteria['enabled'] ? 'checked="checked"' : ''?>> <? endif ?> <? if ($criteria['type'] == 'bool'): ?> - <input type="hidden" - name="<?= htmlReady($criteria['name'])?>" - value="1"> - <label class="undecorated" for="cb_<?= htmlReady($criteria['name']); ?>"> + <input type="hidden" name="options_<?= htmlReady($criteria['name']) ?>" value="1"> + <label class="undecorated" for="cb_<?= htmlReady($criteria['name']) ?>"> + <input type="checkbox" + value="1" + <?= Request::get($criteria['name']) ? 'checked': ''?> + name="<?= htmlReady($criteria['name'])?>"> <span><?= htmlReady($criteria['title']) ?></span> </label> <? elseif ($criteria['type'] == 'num'): ?> |
