about summary refs log tree commit diff
path: root/corp/rih/src/home.html
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-06-02T20·43+0300
committertazjin <tazjin@tvl.su>2023-06-06T11·43+0000
commit6fa6f3a7f4a72a74ce495609646d2dae3789cde3 (patch)
treeb5a673931267da0ad6682f0d9ae05567dba5cc58 /corp/rih/src/home.html
parent20a671036586088578952f4958440f246decb06e (diff)
feat(corp/rih): submit form data to backend r/6236
Change-Id: I0c74deea8debf9acbcf6eabf225969dbfe9cc34c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8703
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'corp/rih/src/home.html')
-rw-r--r--corp/rih/src/home.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/corp/rih/src/home.html b/corp/rih/src/home.html
index df77ee1e8820..697daf5148f3 100644
--- a/corp/rih/src/home.html
+++ b/corp/rih/src/home.html
@@ -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>