-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbridge_modals.py
117 lines (104 loc) · 4.32 KB
/
bridge_modals.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import dash
from dash import html, dcc, Input, Output, State, dash_table
import dash_bootstrap_components as dbc
import pandas as pd
def researchQuestions_modal():
questions_themes_group = html.Div(
[
dbc.RadioItems(
id="row1_radios",
className="btn-group",
inputClassName="btn-check",
labelClassName="btn btn-outline-primary",
labelCheckedClassName="active",
options=[
{"label": "Characterisation", "value": "Characterisation"},
{"label": "Risk/Prognosis", "value": "Risk/Prognosis"},
{"label": "Clinical Management", "value": "Clinical Management"},
],
#value="Characterisation",
),
html.Div(id="rq_themes_div"),
],
className="radio-group",
)
tabs_content = []
tabs_content.append(dbc.Tab(id='tab_features',label="Features", children=[html.P("Content for Clinical Features")]))
tabs_content.append(dbc.Tab(id='tab_clinifeat',label="Clinical Features", children=[html.P("Content for Features")]))
tabs_content.append(dbc.Tab(id='tab_riskfac',label="Risk Factors", children=[html.P("Content for Risk Factors")]))
tabs_content.append(dbc.Tab(id='tab_treatment',label="Treatments/Interventions", children=[html.P("Content for Treatments/Intervention")]))
tabs_content.append(dbc.Tab(id='tab_outcomes',label="Patient Outcome", children=[html.P("Content for Patient Outcome")]))
return dbc.Modal(
[
dbc.ModalHeader(dbc.ModalTitle("Research Question", id='rq_modal_title')),
dbc.ModalBody(
[
dbc.Row(
dbc.Col(
questions_themes_group,
width=6,
),
justify="center"
),
dbc.Row(dbc.Col(id="row2_options",width=10),justify="center"),
dbc.Row(
[
dbc.Col(html.H4("Your Selection:",id='selected_question', className="text-center mt-4"), width=12),
dbc.Col(dbc.Tabs(id="row3_tabs"), width=12, className="mt-3")
],
justify="center"
),
]
),
dbc.ModalFooter(
html.Div(
[dbc.Button("Submit", id='rq_modal_submit', className="me-1", n_clicks=0),
dbc.Button("Cancel", id='rq_modal_cancel', className="me-1", n_clicks=0)]
)
),
],
id='rq_modal',
is_open=False,
size="xl"
)
def variableInformation_modal():
return dbc.Modal(
[
dbc.ModalHeader(dbc.ModalTitle("Row Details", id='modal_title')),
dbc.ModalBody(
[
html.H5("Definition:"),
html.P("Your definition text here", id='definition-text'),
html.H5("Options:"),
dbc.Checklist(
options=[
{"label": "Option 1", "value": 1},
{"label": "Option 2", "value": 2},
],
id='options-checklist',
value=[1],
style={"padding": "20px"}
),
dbc.ListGroup(
[
dbc.ListGroupItem("Item 1"),
dbc.ListGroupItem("Item 2"),
],
id='options-list-group',
style={"display": "none"}
),
html.H5("Completion Guide:"),
html.P("Completion guide text here", id='completion-guide-text')
]
),
dbc.ModalFooter(
html.Div(
[dbc.Button("Submit", id='modal_submit', className="me-1", n_clicks=0),
dbc.Button("Cancel", id='modal_cancel', className="me-1", n_clicks=0)]
)
),
],
id='modal',
is_open=False,
size="xl"
)