Skip to content

Commit

Permalink
aggiunta gestione filtri numerosi
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com>
  • Loading branch information
MocioF committed Jan 12, 2024
1 parent e2ec4cb commit 8c999d9
Show file tree
Hide file tree
Showing 8 changed files with 1,813 additions and 968 deletions.
2 changes: 2 additions & 0 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
$gcmi_fb = new GCMI_Comune_Filter_Builder();
add_action( 'wp_ajax_gcmi_fb_requery_comuni', array( $gcmi_fb, 'ajax_get_tabs_html' ), 10, 0 );
add_action( 'wp_ajax_gcmi_fb_create_filter', array( $gcmi_fb, 'ajax_create_filter' ), 10, 0 );
add_action( 'wp_ajax_gcmi_fb_create_filter_multi', array( $gcmi_fb, 'ajax_create_filters_multi' ), 10, 0 );
add_action( 'wp_ajax_gcmi_fb_save_filter_slice', array( $gcmi_fb, 'ajax_save_filters_slice' ), 10, 0 );
add_action( 'wp_ajax_gcmi_fb_get_locale', array( $gcmi_fb, 'ajax_get_locale' ), 10, 0 );
add_action( 'wp_ajax_gcmi_fb_get_filters', array( $gcmi_fb, 'ajax_get_filters_html' ), 10, 0 );
add_action( 'wp_ajax_gcmi_fb_delete_filter', array( $gcmi_fb, 'ajax_delete_filter' ), 10, 0 );
Expand Down
42 changes: 27 additions & 15 deletions admin/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,22 @@
width: 34%;
}
.gcmi-fb-main-container {
display: block;
padding-right: 10px;
/*width: 90%;
*/
display: flex;
flex-flow: column;
height: 100%;
}
.gcmi-fb-main-container .gcmi-fb-filters-container{
flex: 0 1 auto;
}
.gcmi-fb-box-container{
display: contents;
}
.gcmi-fb-main-container .gcmi-fb-tabs-container{
flex: 1 1 100px;
}
.gcmi-fb-main-container .dummy-footer {
flex: 0 1 40px;
}
.gcmi-fb-regione-container {
display: grid;
Expand All @@ -44,18 +56,18 @@
row-gap: 20px;
column-gap: 15px;
}
.gcmi-fb-regione-blocco, .gcmi-fb-lettera-blocco {
display: flex;
flex-direction: column;
row-gap: 12px;
.gcmi-fb-regione-blocco, .gcmi-fb-lettera-blocco {
display: flex;
flex-direction: column;
row-gap: 12px;
}
.gcmi-fb-checkall-container{
display: flex;
flex-direction: row;
justify-content: flex-start;
gap: 20px;
align-items: end;
background-color: #f6f7f7;
.gcmi-fb-checkall-container{
display: flex;
flex-direction: row;
justify-content: flex-start;
gap: 20px;
align-items: end;
background-color: #f6f7f7;
}
.gcmi-fb-regione-name {
font-weight: bold;
Expand Down Expand Up @@ -200,4 +212,4 @@
input[type="checkbox"].gcmi-ui-toggle:checked:after {
content: 'ON';
background-color: #2271b1;
}
}
2 changes: 1 addition & 1 deletion admin/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c999d9

Please # to comment.