def filter_container(): filter_container = html.Div([ dbc.Row([ dbc.Col([ dash_utils.get_filter_dropdown( DROPDOWN_CATEGORIE_LIST_ID, DIV_CATEGORIE_LIST_ID, CHECKBOX_CATEGORIE_LIST_ID, _all_categories, _('Categories')) ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_abc_list_id, div_abc_list_id, checkbox_abc_list_id, _all_abc_segmentation, _('ABC Segmentation')) ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_fmr_list_id, div_fmr_list_id, checkbox_fmr_list_id, _all_fmr_segmentation, _('FMR Segmentation')), html.Div(id="number-out"), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( DROPDOWN_CUSTOMER_LIST_ID, DIV_CUSTOMER_LIST_ID, CHECKBOX_CUSTOMER_LIST_ID, _all_customers, _('Customers'),select_all=False,multi=False), html.Div(id="number-out"), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_date_range( INPUT_DATE_RANGE_ID, label=_('Time horizon'), year_range=2 ), ], sm=12, md=6, lg=6), ]), html.Details([ html.Summary(_('Products')), dbc.Col([ dash_utils.get_filter_dropdown( DROPDOWN_PRODUCT_LIST_ID, DIV_PRODUCT_LIST_ID, CHECKBOX_PRODUCT_LIST_ID, _all_products, '') ], sm=12, md=12, lg=12), ], id=DETAILS_PRODUCT_LIST_ID, open=False), ]) return filter_container
def filter_container(): filter_container = html.Div([ dbc.Row([ dbc.Col([ dash_utils.get_filter_dropdown( dropdown_categorie_list_id, div_categorie_list_id, checkbox_categorie_list_id, _all_categories, _('Categories')) ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_abc_list_id, div_abc_list_id, checkbox_abc_list_id, _all_abc_segmentation, _('ABC Segmentation')) ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_fmr_list_id, div_fmr_list_id, checkbox_fmr_list_id, _all_fmr_segmentation, _('FMR Segmentation')), html.Div(id="number-out"), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_customer_list_id, div_customer_list_id, checkbox_customer_list_id, _all_customers, _('Customers'),select_all=False,multi=False) ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_date_range( input_date_range_id, label=_('Time horizon'), year_range=2 ), ], sm=12, md=6, lg=6), ]), html.Details([ html.Summary(_('Products')), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_product_list_id, div_product_list_id, checkbox_product_list_id, _all_products, '') ], sm=12, md=12, lg=12), ], id=details_product_list_id, open=False), ]) return filter_container
def filter_container(): filter_container = html.Div([ dbc.Row([ dbc.Col([ dash_utils.get_filter_dropdown( dropdown_categorie_list_id, div_categorie_list_id, checkbox_categorie_list_id, _all_categories, 'Categories') ], sm=12, md=6, lg=4), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_statut_list_id, div_statut_list_id, checkbox_statut_list_id, _all_status, 'Status') ], sm=12, md=6, lg=4), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_customer_list_id, div_customer_list_id, checkbox_customer_list_id, _all_customers, 'Customers') ], sm=12, md=6, lg=4), dbc.Col([ dash_utils.get_date_range( input_date_range_id, label=_('Time horizon'), year_range=2 ), ], sm=12, md=6, lg=6), ]), html.Details([ html.Summary(_('Products')), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_product_list_id, div_product_list_id, checkbox_product_list_id, _all_products, '') ], sm=12, md=12, lg=12), ], id=details_product_list_id, open=False), ]) return filter_container
def filter_container(): filter_container = html.Div([ dbc.Row([ dbc.Col([ dash_utils.get_category_dropdown( dropdown_categories_id, div_checklist_category_id, checklist_select_all_categories_id), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_product_dropdown( dropdown_products_id, div_checklist_id, checklist_select_all_products_id), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_group_by_dropdown(dropdown_group_by_field_id), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_date_range(input_period_date_range_id, label='Inventory range date', year_range=5), ], sm=12, md=6, lg=3), ]), ]) return filter_container
def filter_container(): filter_container = html.Div([ dbc.Row([ dbc.Col([ dash_utils.get_category_dropdown( dropdown_categories_id, div_checklist_category_id, checklist_select_all_categories_id), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_product_dropdown( dropdown_products_id, div_checklist_id, checklist_select_all_products_id), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_group_by_dropdown(dropdown_group_by_field_id), dash_utils.get_kind_dropdown( dropdown_avg_quantity_period_id, label='Select avg. quantity period'), dbc.FormGroup([ dbc.Checklist( options=[ { 'label': 'Include Weekends', 'value': True }, ], value=[True], id=bool_include_weekend_id, inline=True, switch=True, ), ]), dash_utils.get_kind_dropdown(radioitems_avg_sale_period_id, label='Select avg. sale period'), ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_date_range(input_date_range_id, label='Select range date', year_range=5), dash_utils.get_date_range(input_avg_sale_date_range_id, label='Select avg sale date range', year_range=5), dbc.FormGroup([ dbc.Label('Chart type'), dbc.RadioItems( id=radioitems_chart_type_id, options=[{ 'label': 'Stack', 'value': 'stack' }, { 'label': 'Group', 'value': 'group' }], value='stack', inline=True, ) ]), ], sm=12, md=6, lg=3), ]), dbc.Row([ dbc.Col([ dbc.Label('Select Date Interval'), dcc.Input( id=input_dio_low_id, type='number', placeholder='DIO low value', value=1, ), dcc.Input( id=input_dio_high_id, type='number', value=2, ) ]), ]) ]) return filter_container
def filter_container(): filter_container = html.Div([ dbc.Row([ dbc.Col([ dash_utils.get_group_by_distribution_dropdown( dropdown_group_by_distribution_field_id), ], sm=12, md=4, lg=4), dbc.Col([ dash_utils.get_group_by_product_dropdown( dropdown_group_by_product_field_id), ], sm=12, md=4, lg=4), dbc.Col([ dash_utils.get_kind_dropdown( dropdown_kind_id, label='Grouping period', value='day'), ], sm=12, md=4, lg=4), dbc.Col([ dbc.Label('Show by'), dcc.Dropdown( id=dropdown_show_by_id, options=[ { 'label': 'Quantity (Unit)', 'value': 'quantity' }, { 'label': 'Quantity (Package)', 'value': 'package' }, { 'label': 'Quantity (Pallet)', 'value': 'pallet' }, { 'label': 'Cost (DH)', 'value': 'cost' }, { 'label': 'Weight (Kg)', 'value': 'weight' }, { 'label': 'Volume (m3)', 'value': 'volume' }, ], value='quantity', ), ], sm=12, md=4, lg=4), dbc.Col([ dbc.Label('Forecast version'), dcc.Dropdown( id=dropdown_forecast_version_id, placeholder='Forecasting version', options=[{ 'label': dt, 'value': dt } for dt in forecast_version_list], value=[ forecast_version_list[0] if forecast_version_list else None ], ), ], sm=12, md=4, lg=4), dbc.Col([ dash_utils.get_date_range( input_date_range_id, label='Time horizon', year_range=5), ], sm=12, md=4, lg=4), ]) ]) return filter_container
def filter_container(): filter_container = html.Div([ dbc.Row([ html.Details([ html.Summary(_('Products')), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_product_list_id, div_product_list_id, checkbox_product_list_id, _all_products, '') ], sm=12, md=12, lg=12), ], id=details_product_list_id, open=False), ]), dbc.Row([ html.Details([ html.Summary(_('Products type')), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_product_range_list_id, div_product_range_list_id, checkbox_product_range_list_id, _all_products_type, '') ], sm=12, md=12, lg=12), ], id=details_product_range_list_id, open=False), ]), dbc.Row([ dbc.Col([ dash_utils.get_filter_dropdown( dropdown_warehouse_list_id, div_warehouse_list_id, checkbox_warehouse_list_id, _all_warehouses, _('Warehouses')) ], sm=12, md=6, lg=3), dbc.Col([ dash_utils.get_filter_dropdown( dropdown_circuit_list_id, div_circuit_list_id, checkbox_circuit_list_id, _all_circuits, _('Circuits')) ], sm=12, md=6, lg=2), # dbc.Col([ # dash_utils.get_filter_dropdown( # dropdown_customer_list_id, div_customer_list_id, checkbox_customer_list_id, _all_customers, _('Customers')) # ], sm=12, md=6, lg=3), dbc.Col([ dbc.Label(_('Customers')), dcc.Dropdown( id=dropdown_customer_list_id, options=_all_customers, value='', ), ], sm=12, md=6, lg=2), dbc.Col([ dbc.Label(_('Forecast version')), dcc.Dropdown( id=dropdown_version_list_id, placeholder=_('Forecast version'), options=_all_versions, value=_all_versions[0]['value'] if _all_versions else None, ), ], sm=12, md=6, lg=2), dbc.Col([ dash_utils.get_date_range( input_date_range_id, label=_('Time horizon'), year_range=1 ), ], sm=12, md=6, lg=3), ]), ]) return filter_container