Commit 82d630c7 authored by Karen Konou's avatar Karen Konou

[Node Calc Upload] Upload options UI

parent a49918b2
...@@ -709,15 +709,64 @@ uploadFrameCalcView = R.createElement uploadFrameCalcViewCpt ...@@ -709,15 +709,64 @@ uploadFrameCalcView = R.createElement uploadFrameCalcViewCpt
uploadFrameCalcViewCpt :: R.Component Props uploadFrameCalcViewCpt :: R.Component Props
uploadFrameCalcViewCpt = here.component "uploadFrameCalcView" cpt uploadFrameCalcViewCpt = here.component "uploadFrameCalcView" cpt
where where
cpt { dispatch } _ = do cpt { dispatch, session } _ = do
let bodies = lang /\ langBox
[ R2.row <- R2.useBox' EN
[ H.div { className: "col-12 flex-space-around" } selection
[ H.h4 {} <- T.useBox ListSelection.MyListsFirst
[ H.text "This will upload current calc as Corpus CSV" ]
] let bodies = [
] H.div
] { className: "col-12 flex-space-around" }
[ H.h4 {}
[ H.text "This will upload current calc as Corpus CSV" ]
]
,
-- Lang
H.div
{ className: "form-group" }
[
H.div
{ className: "form-group__label" }
[
B.label_ $
"File lang"
]
,
H.div
{ className: "form-group__field" }
[
B.formSelect'
{ callback: flip T.write_ langBox
, value: lang
, list: [ EN, FR, No_extraction, Universal ]
}
[]
]
]
,
-- List selection
H.div
{ className: "form-group" }
[
H.div
{ className: "form-group__label" }
[
B.label_ $
"List selection"
]
,
H.div
{ className: "form-group__field" }
[
ListSelection.selection
{ selection
, session
} []
]
]
]
let footer = H.div {} let footer = H.div {}
[ H.button { className: "btn btn-primary" [ H.button { className: "btn btn-primary"
, on: { click: onClick } } , on: { click: onClick } }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment