feat(corp/rih): submit form data to backend

Change-Id: I0c74deea8debf9acbcf6eabf225969dbfe9cc34c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8703
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Vincent Ambo 2023-06-02 23:43:52 +03:00 committed by tazjin
parent 20a6710365
commit 6fa6f3a7f4
4 changed files with 74 additions and 3 deletions

View file

@ -99,6 +99,7 @@ html! {
<p>{"Let's get started with you telling us a bit about what kind of job you would like!"}</p>
</div>
if !self.submitted {
<div class="mx-auto col-6 border rounded-3 shadow">
<form class="m-3">
@ -172,12 +173,18 @@ html! {
<div id="captcha-container" class="smart-captcha mb-3" style="height: 100px" />
<button type="submit" class="btn btn-primary"
disabled={!(self.record.is_complete() && self.captcha_token.is_some())}>
disabled={!(self.record.is_complete() && self.captcha_token.is_some())}
onclick={link.callback(|_| Msg::Submit)}>
{"Submit"}
</button>
<p class="pt-2"><i>{"This page is still under construction! Please reach out at contact@ if you have any questions."}</i></p>
</form>
</div>
} else {
<div class="mx-auto col-6 border rounded-3 shadow">
<p>{"Thank you for submitting your data! We will reach out to confirm your email address, and further if any matches are found. You can contact us at contact@russiaishiring.com with any questions you might have."}</p>
</div>
}
</div>
</div>