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-05-09 20:23:22 +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" >
< p class = "note" > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.oauth.title' )); ?> </ p >
< div >
2019-08-06 19:11:53 +12:00
< a href = "" data-general-oauth = "facebook" data-success = "https://{{env.DOMAIN}}/console" data-failure = "https://{{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 = "https://{{env.DOMAIN}}/console" data-failure = "https://{{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 = "https://{{env.DOMAIN}}/console" data-failure = "https://{{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" >
< p class = "note" > <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.regular.title' )); ?> </ p >
2019-08-06 19:11:53 +12:00
< form name = "login" data-service = "auth.login" data-scope = "console" data-event = "submit" data-success = "trigger,redirect" data-success-triggers = "login" data-success-redirect-url = "/console" data-error = "alert" data-error-alert = " <?php echo $this -> escape ( Locale :: getText ( 'home.auth.signin.failure' )); ?> " >
2019-05-09 18:54:39 +12:00
2019-05-10 04:15:51 +12:00
< input name = "success" type = "hidden" data-ls-bind = "https://{{env.DOMAIN}}/console" >
< input name = "failure" type = "hidden" data-ls-bind = "https://{{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 >