48 lines
No EOL
2.8 KiB
PHTML
48 lines
No EOL
2.8 KiB
PHTML
<?php
|
|
|
|
use Utopia\Locale\Locale;
|
|
?>
|
|
<div class="zone medium signup">
|
|
<h1 class="zone xl margin-bottom-large margin-top">
|
|
<?php echo $this->escape(Locale::getText('home.auth.signup.title')); ?>
|
|
</h1>
|
|
|
|
<div class="text-danger margin-bottom-large" style="display: none;" data-ls-if="{{router.params.failure}} == 1"><?php echo $this->escape(Locale::getText('home.auth.signup.failure')); ?></div>
|
|
|
|
<small class="pull-end">* <?php echo $this->escape(Locale::getText('home.auth.signup.required')); ?></small>
|
|
|
|
<form name="register"
|
|
data-service="auth.register"
|
|
data-scope="console"
|
|
data-event="submit"
|
|
data-success="trigger,redirect"
|
|
data-success-param-trigger-events="auth-register"
|
|
data-success-redirect-url="/console/setup"
|
|
data-failure="alert"
|
|
data-failure-param-alert-text="<?php echo $this->escape(Locale::getText('home.auth.signup.failure')); ?>"
|
|
data-failure-param-alert-classname="error">
|
|
|
|
<input name="success" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/console">
|
|
<input name="failure" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signup?failure=1">
|
|
|
|
<label><?php echo $this->escape(Locale::getText('home.auth.signup.labels.name')); ?></label>
|
|
<input name="name" type="text" autocomplete="name" placeholder="" required>
|
|
|
|
<label><?php echo $this->escape(Locale::getText('home.auth.signup.labels.email')); ?></label>
|
|
<input name="email" type="email" autocomplete="email" placeholder="" required data-ls-bind="{{router.params.email}}">
|
|
|
|
<label><?php echo $this->escape(Locale::getText('home.auth.signup.labels.password')); ?></label>
|
|
<input name="password" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="<?php echo $this->escape(Locale::getText('home.auth.signup.labels.password.validation')); ?>">
|
|
|
|
<div class="agree margin-top-large margin-bottom-large">
|
|
<div class="pull-start margin-end-small margin-bottom">
|
|
<input type="checkbox" required />
|
|
</div>
|
|
<?php echo $this->escape(Locale::getText('home.auth.signup.labels.agree')); ?><a href="/policy/terms" target="_blank"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.terms')); ?></a><?php echo $this->escape(Locale::getText('home.auth.signup.labels.and')); ?><a href="/policy/privacy" target="_blank"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.privacy')); ?></a>
|
|
</div>
|
|
|
|
<input name="redirect" type="hidden" data-ls-bind="{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/confirm" />
|
|
|
|
<button type="submit"><?php echo $this->escape(Locale::getText('home.auth.signup.labels.action')); ?></button>
|
|
</form>
|
|
</div>
|