Added localization for login screen
This commit is contained in:
parent
873bfbf6fe
commit
a38470a561
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
$strings = [
|
||||
|
||||
'form' => [
|
||||
'login' => 'Log in',
|
||||
'email' => 'E-mail',
|
||||
'password' => 'Password',
|
||||
],
|
||||
];
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
$strings = [
|
||||
|
||||
'form' => [
|
||||
'login' => 'Iniciar sesión',
|
||||
'email' => 'E-mail',
|
||||
'password' => 'Contraseña',
|
||||
],
|
||||
];
|
||||
|
|
|
@ -2,16 +2,25 @@
|
|||
<?php if_session_redirect_app() ?>
|
||||
<?php tpl('pub.header', [
|
||||
'title' => ' s(login)',
|
||||
'scripts' => ['base']
|
||||
'scripts' => ['base'],
|
||||
'styles' => ['base', 'app'],
|
||||
]) ?>
|
||||
|
||||
<form id="login" onsubmit="return loginAction(event)">
|
||||
<span><?php s('email') ?></span>
|
||||
<input type="email" name="email" /><br>
|
||||
<span><?php s('password') ?></span>
|
||||
<input type="password" name="password" /><br>
|
||||
<input type="submit" value="<?php s('log_in') ?>" />
|
||||
<main class="flex">
|
||||
<form id="login" class="center"
|
||||
onsubmit="return loginAction(event)">
|
||||
<div class="form-item">
|
||||
<span><?php s('form.email') ?></span><br>
|
||||
<input type="email" name="email" />
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<span><?php s('form.password') ?></span><br>
|
||||
<input type="password" name="password" />
|
||||
</div>
|
||||
<input type="submit" value="<?php s('form.login') ?>" />
|
||||
</form>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
function loginAction(e) {
|
||||
const payload = {
|
||||
|
|
Loading…
Reference in New Issue