Remove "All" option from division and team selectors

This commit is contained in:
ThemeBoy
2013-12-04 16:48:21 +11:00
parent a2136cf0e0
commit dd80a3cd08
4 changed files with 3 additions and 5 deletions

View File

@@ -51,7 +51,6 @@ function sp_event_team_meta( $post ) {
'name' => 'sp_team[]',
'class' => 'sportspress-pages',
'show_option_none' => sprintf( __( 'Select %s' ), 'Team' ),
'option_none_value' => 0,
'selected' => $teams[ $i ]
);
wp_dropdown_pages( $args );

View File

@@ -43,7 +43,7 @@ function sp_list_player_meta( $post ) {
<p class="sp-tab-select">
<?php
$args = array(
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Divisions', 'sportspress' ) ),
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Division', 'sportspress' ) ),
'taxonomy' => 'sp_div',
'name' => 'sp_div',
'selected' => $division_id

View File

@@ -41,7 +41,7 @@ function sp_table_team_meta( $post ) {
<p class="sp-tab-select">
<?php
$args = array(
'show_option_all' => sprintf( __( 'All %s', 'sportspress' ), __( 'Divisions', 'sportspress' ) ),
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Division', 'sportspress' ) ),
'taxonomy' => 'sp_div',
'name' => 'sp_div',
'selected' => $division_id

View File

@@ -98,8 +98,7 @@
white-space: nowrap;
}
.sp-data-table input[type="text"],
.sp-data-table input[type="number"],
.sp-data-table select {
.sp-data-table input[type="number"] {
min-width: 14px;
width: 100%;
}