diff options
Diffstat (limited to 'includes/templates/giglogadmin-concerts-table.php')
-rw-r--r-- | includes/templates/giglogadmin-concerts-table.php | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/includes/templates/giglogadmin-concerts-table.php b/includes/templates/giglogadmin-concerts-table.php index 93f5366..f38db3d 100644 --- a/includes/templates/giglogadmin-concerts-table.php +++ b/includes/templates/giglogadmin-concerts-table.php @@ -26,32 +26,23 @@ } </style> <div class="giglogadmin-concerts-table"> - <details class="giglogadmin-concerts-filter"> - <summary class="giglogadmin-concerts-filter-label"> - Filters - </summary> - <form name="giglogadmin-filter-city" action="" method="GET"> - <?php - // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped - echo EternalTerror\ViewHelpers\select_field( - 'city', - array_map( fn( $c ) => array( $c, $c ), GiglogAdmin_Venue::all_cities() ), - $filters['city'] ?? null, - 'City' - ); - - // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped - echo EternalTerror\ViewHelpers\select_field( - 'venue', - array_map( fn( $v ) => array( $v->name(), "{$v->name()}, {$v->city()}" ), GiglogAdmin_Venue::all_venues() ), - $filters['venue'] ?? null, - 'Venue' - ); - ?> - <input type="submit" value="Apply!"> - <a href="<?php echo esc_url( site_url( get_page_uri() ) ); ?>">Clear filters</a> - </form> -</details> + <div class="giglogadmin-concerts-filter"> + <form name="giglogadmin-filter-city" action="" method="GET"> + <label for="city"> + Filter by city: + </label> + <?php + // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped + echo EternalTerror\ViewHelpers\select_field( + 'city', + array_map( fn( $c ) => array( $c, $c ), GiglogAdmin_Venue::all_cities() ), + $filters['city'] ?? null + ); + ?> + <input type="submit" value="Apply!"> + <a href="<?php echo esc_url( site_url( get_page_uri() ) ); ?>">Clear filters</a> + </form> + </div> <?php foreach ( $concerts as $concert ) { ?> <div class="giglogadmin-concert"> <div class="giglogadmin-concert-title-row"> |