2019-05-09 18:54:39 +12:00
<?php
2019-08-06 19:11:53 +12:00
2019-05-09 18:54:39 +12:00
use Utopia\Locale\Locale;
?>
< div class = "zone xl" >
< h1 class = "zone xl margin-bottom-large margin-top" >
<?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.title' )); ?>
< / h1 >
2019-08-09 01:16:15 +12:00
< 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.signin.failure' )); ?> </ div >
2019-05-09 18:54:39 +12:00
< div class = "row responsive force-reverse" >
< div class = "col span-6 oauth margin-bottom-large" >
2019-08-24 07:07:17 +12:00
< p > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.oauth.title' )); ?> </ p >
2019-05-09 18:54:39 +12:00
< div >
2019-08-24 19:30:12 +12:00
< a href = "" data-general-oauth = "facebook" data-success = "{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure = "{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class = "button facebook fill margin-bottom" > < i class = "icon-facebook" > < / i > Connect with Facebook< / a >
< a href = "" data-general-oauth = "github" data-success = "{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure = "{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class = "button github fill margin-bottom" > < i class = "icon-github-circled" > < / i > Connect with Github< / a >
< a href = "" data-general-oauth = "linkedin" data-success = "{{env.PROTOCOL}}://{{env.DOMAIN}}/console" data-failure = "{{env.PROTOCOL}}://{{env.DOMAIN}}/auth/signin?failure=2" class = "button linkedin fill margin-bottom" > < i class = "icon-linkedin" > < / i > Connect with Linkedin< / a >
2019-05-09 18:54:39 +12:00
< / div >
< / div >
< div class = "col span-6" >
2019-08-24 07:07:17 +12:00
< p > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.regular.title' )); ?> </ p >
2019-05-09 18:54:39 +12:00
2019-08-08 06:10:53 +12:00
< form name = "login"
data-service="auth.login"
data-scope="console"
data-event="submit"
data-success="trigger,redirect"
data-success-param-trigger-events="login"
data-success-param-redirect-url="/console"
2019-08-08 17:09:49 +12:00
data-failure="alert"
2019-08-09 01:43:24 +12:00
data-failure-param-alert-text="<?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.failure' )); ?> "
data-failure-param-alert-classname="error">
2019-05-09 18:54:39 +12:00
2019-08-24 19:30:12 +12:00
< 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/signin?failure=1" >
2019-05-09 18:54:39 +12:00
< input name = "email" type = "email" class = "full-width" autocomplete = "email" placeholder = " <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.email' )); ?> " required >
< input name = "password" type = "password" class = "full-width" autocomplete = "off" placeholder = " <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.password' )); ?> " required pattern = ".{6,}" title = " <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.password.validation' )); ?> " >
< button > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.action1' )); ?> </ button >
< / form >
< / div >
< / div >
< br / >
< br / >
< div class = "text-line-high-large" >
< a href = "/auth/recovery" > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.action2' )); ?> </ a > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.or' )); ?> < b >< a href = "/auth/signup" > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.labels.action3' )); ?> </ a ></ b >
< / div >
< / div >