mirror of
https://gitea.psi.ch/APOG/acsm-fairifier.git
synced 2025-07-14 03:11:48 +02:00
Start restructuring of app to make it more modular, and improve layout a bit
This commit is contained in:
25
app/components/flagging_dashboard.py
Normal file
25
app/components/flagging_dashboard.py
Normal file
@ -0,0 +1,25 @@
|
||||
from dash import Dash, html, dcc, callback, Output, Input, State, dash_table
|
||||
import dash_bootstrap_components as dbc
|
||||
|
||||
import data_flagging_utils
|
||||
|
||||
flagging_dashboard = dbc.Row([
|
||||
html.H3("Create flags"),
|
||||
|
||||
#dbc.Row([
|
||||
dcc.Dropdown(
|
||||
id='flag-options',
|
||||
options= data_flagging_utils.filter_flags_by_label(data_flagging_utils.flags_dict,'I'), # displays only flags to invalidate
|
||||
),
|
||||
#],
|
||||
#width=12
|
||||
#),
|
||||
#],justify="center", align="center"),
|
||||
|
||||
dbc.Row([
|
||||
dbc.Col([dbc.Button('Create Flag', id='flag-button', color="primary", className="mt-2")],width=2),
|
||||
dbc.Col([dbc.Button('Reset Flag', id='reset-flag-button', color="secondary", className="mt-2")],width=2),
|
||||
dbc.Col([dbc.Button('Commit Flag', id='commit-flag-button', color="secondary", className="mt-2")],width=2)
|
||||
], justify="center", align="center",style={'background-color': '#f8f9fa', 'padding': '20px', 'text-align': 'center'})],
|
||||
justify="center", align="center",style={'background-color': '#f8f9fa', 'padding': '20px', 'text-align': 'center'}
|
||||
)
|
Reference in New Issue
Block a user