-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayoutShow.py
More file actions
168 lines (111 loc) · 4.08 KB
/
LayoutShow.py
File metadata and controls
168 lines (111 loc) · 4.08 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
import dash_table as dt
from Tools import unit_function, Buf, Chemical, columns_recipe, options_units_volume, options_buffer, info_buffer
layout = html.Div(
className="u-full-width",
children=[
dbc.Navbar([
dbc.NavbarBrand("Buffinator", className="ml-2")
],
color="dark",
dark=True,
),
dbc.Container([
html.Div(children=[
html.Br(),
html.P("The day has come: it works!"),
]),
html.Hr(),
html.H1("Buffer Library"),
html.Br(),
dbc.Row([
dbc.Col(width=6, children=[
html.H2("Choose Buffer"),
html.Br(),
dbc.InputGroup(
[
dbc.Input(id="input-volume", value=50, disabled=False),
dbc.InputGroupAddon([
dcc.Dropdown(
id="input-volume-unit",
options= options_units_volume,
value= 1e-3,
className=" mb-3",
disabled=False
)
]),
]
),
dcc.Dropdown(
id="Buffer_options",
options= options_buffer,
placeholder= "Select...",
value= "",
className= "mb-3"
),
dcc.Dropdown(
id="Buffer_under_options",
options= [],
value= "",
className= "mb-3"
),
dbc.Button("Show Recipe", id="Show", color="primary", block=True, className="mt-3", disabled=False),
html.Br(),
]),
dbc.Col(width=6, children=[
html.H2("Information"),
html.Br(),
html.H4("Category Information"),
dcc.Textarea(
id="info_cat",
value="",
style={"width": "100%", "height": 50},
disabled=True,
placeholder=""
),
html.Br(),
html.Br(),
html.H4("Buffer Information"),
dcc.Textarea(
id="info_Buf",
value="",
style={"width": "100%", "height": 50},
disabled=True,
placeholder= ""
),
html.Br(),
]),
]),
html.Hr(),
dbc.Row([
dbc.Col(width=6, children=[
html.H2(id="header_ingredients", children = ""),
html.Br(),
html.P(id="ingredients_Buffername", children=""),
html.Br(),
dt.DataTable(
id="show_ing",
columns=[],
data=[],
style_cell={'textAlign': 'center'},
),
]),
dbc.Col(width=6, children=[
html.H2(id= "header_Recipe", children=""),
html.Br(),
html.P(id="Recipe_Buffername", children = ""),
html.Br(),
dt.DataTable(
id="Recipe",
columns=[],
data=[],
style_cell={'textAlign': 'center'},
),
]),
]),
html.Hr(),
]),
]
)