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
+1
View File
@@ -111,6 +111,7 @@
border-radius: 8px;
box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
background: #fff;
clear: both;
}
.wrap .postbox-header { border-bottom: 1px solid #dadce0; }
.wrap .postbox-header h2 { font-weight: 500; font-size: 16px; color: #202124; margin: 0; padding: 16px 20px; }
+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;">
+11 -14
View File
@@ -195,20 +195,17 @@ function statpress_yearly_summary_page() {
<h1>Podsumowanie Roczne</h1>
<hr class="wp-header-end">
<div class="tablenav top">
<div class="alignleft actions">
<label for="filter-by-year" class="screen-reader-text">Filtruj według roku</label>
<form method="get" style="display: flex; gap: 5px; align-items: center;">
<input type="hidden" name="page" value="statpress-yearly-summary">
<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-yearly-summary">
<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>
<?php if ( ! empty( $goals_for_year ) ) : ?>