feat: add terms on register and register org (#699)

* feat: add terms on register and register org

* feat: add terms on register and register org

* update form_submit.js to handle checkboxes correctly

* feat: free tier on org reg

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2020-09-07 14:52:49 +02:00
committed by GitHub
parent cca92874ab
commit 4bc1eff373
16 changed files with 196 additions and 40 deletions

View File

@@ -56,6 +56,16 @@
<label class="label" for="register-password-confirmation">{{t "Registration.Password2"}}</label>
<input class="input" type="password" id="register-password-confirmation" name="register-password-confirmation" autocomplete="new-password" required>
</div>
<div class="field">
<label class="label" for="register-term-confirmation">{{t "Registration.Tos"}}</label>
<div class="field check-box">
<input class="input" type="checkbox" id="register-term-confirmation" name="register-term-confirmation" required>
<label for="register-term-confirmation">
{{t "Registration.TosConfirm"}}
<a class="" target="_blank" href="{{t "Registration.TosLinkText"}}">{{t "Registration.TosLinkText"}}</a>
</label>
</div>
</div>
</div>
{{template "error-message" .}}

View File

@@ -1,6 +1,7 @@
{{template "main-top" .}}
<h1>{{t "RegistrationOrg.Title"}}</h1>
<p class="free-tier">{{t "RegistrationOrg.FreeTillEndOfYear"}}</p>
<p>{{t "RegistrationOrg.Description"}}</p>
<form action="{{ orgRegistrationUrl }}" method="POST">
@@ -54,6 +55,16 @@
<label class="label" for="register-password-confirmation">{{t "RegistrationOrg.Password2"}}</label>
<input class="input" type="password" id="register-password-confirmation" name="register-password-confirmation" autocomplete="new-password" required>
</div>
<div class="field">
<label class="label" for="register-term-confirmation">{{t "RegistrationOrg.Tos"}}</label>
<div class="field check-box">
<input class="input" type="checkbox" id="register-term-confirmation" name="register-term-confirmation" required>
<label for="register-term-confirmation">
{{t "RegistrationOrg.TosConfirm"}}
<a class="" target="_blank" href="{{t "RegistrationOrg.TosLink"}}">{{t "RegistrationOrg.TosLinkText"}}</a>
</label>
</div>
</div>
</div>
{{template "error-message" .}}