Commit d81c9a32 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX][Login] cosmetics

parent 325b9b41
...@@ -167,19 +167,25 @@ formCpt = R.hooksComponent "G.C.Login.form" cpt where ...@@ -167,19 +167,25 @@ formCpt = R.hooksComponent "G.C.Login.form" cpt where
[ cardGroup [ cardGroup
[ cardBlock [ cardBlock
[ center [ center
[ H.div {className: "text-muted"} [ H.div {}{-className: "text-muted"-}
[ H.text $ "Login to garg://" <> show backend] [ H.text $ "Login to garg://" <> show backend]
, requestAccessLink {} , requestAccessLink {}
] ]
, H.div {} , H.div {}
[ csrfTokenInput {} [ csrfTokenInput {}
, formGroup [ H.p {} [ H.text (fst error) ], usernameInput username ] , formGroup [ H.p {} [ H.text (fst error) ], usernameInput username ]
, formGroup [ passwordInput password, clearfix {} ] , formGroup [ passwordInput password, clearfix {} ]
, center , center
[ H.label {} [ H.label {}
[ H.div {className: "checkbox"} [ H.div {className: "checkbox"}
[ termsCheckbox setBox , H.text "I accept the terms of use ", termsLink {} ] ] [ termsCheckbox setBox
] , H.text "I hereby accept "
, H.a { target: "_blank"
, href: "http://gitlab.iscpif.fr/humanities/tofu/tree/master"
} [ H.text "the terms of use" ]
]
]
]
] ]
, if checkBox == true , if checkBox == true
&& fst username /= "" && fst username /= ""
...@@ -216,7 +222,7 @@ termsCheckbox setCheckBox = ...@@ -216,7 +222,7 @@ termsCheckbox setCheckBox =
termsLink :: {} -> R.Element termsLink :: {} -> R.Element
termsLink _ = termsLink _ =
H.a { target: "_blank", href: termsUrl } [ H.text " [Read the terms of use]" ] H.a { target: "_blank", href: termsUrl } [ H.text "the terms of use" ]
where termsUrl = "http://gitlab.iscpif.fr/humanities/tofu/tree/master" where termsUrl = "http://gitlab.iscpif.fr/humanities/tofu/tree/master"
requestAccessLink :: {} -> R.Element requestAccessLink :: {} -> R.Element
......
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