1
0
Fork 0
mirror of synced 2024-05-18 03:32:45 +12:00
appwrite/app/views/home/auth/signup.phtml

58 lines
2.3 KiB
PHTML
Raw Normal View History

2021-02-24 00:29:12 +13:00
<?php
2021-05-13 02:53:25 +12:00
$root = ($this->getParam('root') !== 'disabled');
2021-02-24 00:29:12 +13:00
?>
2019-08-27 02:02:42 +12:00
<div class="zone medium signup">
2019-05-09 18:54:39 +12:00
<h1 class="zone xl margin-bottom-large margin-top">
2019-09-27 06:47:48 +12:00
Sign Up
2019-05-09 18:54:39 +12:00
</h1>
2020-02-24 08:27:02 +13:00
<div class="text-danger margin-bottom-large" data-ls-if="{{router.params.failure}} == 1">Registration Failed. Please try again later</div>
2019-05-09 18:54:39 +12:00
2020-02-09 07:52:47 +13:00
<small class="pull-end text-size-small">* All fields are required</small>
2019-05-09 18:54:39 +12:00
2020-02-04 08:20:10 +13:00
<form name="account.create"
2021-01-18 19:29:26 +13:00
data-analytics
data-analytics-activity
2020-02-04 08:20:10 +13:00
data-analytics-event="submit"
data-analytics-category="home"
data-analytics-label="Create Account"
2020-01-31 06:12:29 +13:00
data-service="account.create"
2019-08-27 02:02:42 +12:00
data-scope="console"
data-event="submit"
2020-03-22 10:22:47 +13:00
data-success="trigger,hide"
2020-01-31 06:12:29 +13:00
data-success-param-trigger-events="account.create"
data-success-param-redirect-url="/console"
2019-08-27 02:02:42 +12:00
data-failure="alert"
2019-09-27 06:47:48 +12:00
data-failure-param-alert-text="Registration Failed. Please try again later"
2019-08-27 02:02:42 +12:00
data-failure-param-alert-classname="error">
2019-05-09 18:54:39 +12:00
2021-05-13 02:53:25 +12:00
<?php if($root): ?>
<p>Please create your root account</p>
2021-02-24 01:00:31 +13:00
<?php endif; ?>
2019-09-27 06:47:48 +12:00
<label>Name</label>
<input name="name" type="text" autocomplete="name" placeholder="" required maxlength="128">
2019-05-09 18:54:39 +12:00
2019-09-27 06:47:48 +12:00
<label>Email</label>
2019-08-27 02:02:42 +12:00
<input name="email" type="email" autocomplete="email" placeholder="" required data-ls-bind="{{router.params.email}}">
2019-05-09 18:54:39 +12:00
2019-09-27 06:47:48 +12:00
<label>Password</label>
<input name="password" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
2019-05-09 18:54:39 +12:00
2019-08-27 02:02:42 +12:00
<div class="agree margin-top-large margin-bottom-large">
<div class="pull-start margin-end-small margin-bottom">
<input type="checkbox" required />
2019-05-09 18:54:39 +12:00
</div>
By signing up, you agree to the <a data-ls-attrs="href={{env.HOME}}/policy/terms" tabindex="-1" target="_blank" rel="noopener">Terms and Conditions</a> and <a data-ls-attrs="href={{env.HOME}}/policy/privacy" target="_blank" tabindex="-1" rel="noopener">Privacy Policy</a>
2019-05-09 18:54:39 +12:00
</div>
2019-08-27 02:02:42 +12:00
2019-09-27 06:47:48 +12:00
<button type="submit">Sign Up</button>
2019-08-27 02:02:42 +12:00
</form>
2020-02-10 11:11:01 +13:00
2020-02-18 18:25:40 +13:00
</div>
2021-05-13 02:53:25 +12:00
<?php if(!$root): ?>
2020-02-18 18:25:40 +13:00
<div class="zone medium text-align-center">
<a href="/auth/signin">Already have an account?</a>
2021-02-24 00:29:12 +13:00
</div>
<?PHP endif; ?>