This commit is contained in:
2026-04-22 14:00:54 +02:00
parent 8e60643f57
commit 45e4a44db2
3 changed files with 23 additions and 28 deletions
+11 -14
View File
@@ -110,20 +110,17 @@ function statpress_infographic_page() {
<h1>Infografika Statystyk Sportowych</h1>
<hr class="wp-header-end">
<div class="tablenav top">
<div class="alignleft actions">
<form method="get" style="display: flex; gap: 5px; align-items: center;">
<input type="hidden" name="page" value="statpress-infographic">
<label for="filter-by-year" class="screen-reader-text">Filtruj według roku</label>
<select name="year" id="filter-by-year">
<?php foreach ( $available_years as $year_option ) : ?>
<option value="<?php echo esc_attr( $year_option ); ?>" <?php selected( $current_year, $year_option ); ?>><?php echo esc_html( $year_option ); ?></option>
<?php endforeach; ?>
</select>
<?php submit_button( 'Filtruj', 'secondary', 'filter_action', false ); ?>
</form>
</div>
<br class="clear">
<div style="margin-bottom: 20px;">
<form method="get" style="display: flex; gap: 10px; align-items: center;">
<input type="hidden" name="page" value="statpress-infographic">
<label for="filter-by-year" style="font-weight: 500; color: #3c4043;">Filtruj według roku:</label>
<select name="year" id="filter-by-year">
<?php foreach ( $available_years as $year_option ) : ?>
<option value="<?php echo esc_attr( $year_option ); ?>" <?php selected( $current_year, $year_option ); ?>><?php echo esc_html( $year_option ); ?></option>
<?php endforeach; ?>
</select>
<?php submit_button( 'Filtruj', 'secondary', 'filter_action', false, array( 'style' => 'margin: 0;' ) ); ?>
</form>
</div>
<div class="postbox" style="margin-bottom: 20px;">