@@ -1,38 +1,42 @@
|
|||||||
<div class="page-header">
|
<div class="form-login">
|
||||||
<h1><?= t('Sign in') ?></h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if (isset($errors['login'])): ?>
|
<div class="page-header">
|
||||||
<p class="alert alert-error"><?= Helper\escape($errors['login']) ?></p>
|
<h1><?= t('Sign in') ?></h1>
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<form method="post" action="?controller=user&action=check" class="form-login">
|
|
||||||
|
|
||||||
<?= Helper\form_csrf() ?>
|
|
||||||
|
|
||||||
<?= Helper\form_label(t('Username'), 'username') ?>
|
|
||||||
<?= Helper\form_text('username', $values, $errors, array('autofocus', 'required')) ?><br/>
|
|
||||||
|
|
||||||
<?= Helper\form_label(t('Password'), 'password') ?>
|
|
||||||
<?= Helper\form_password('password', $values, $errors, array('required')) ?>
|
|
||||||
|
|
||||||
<?= Helper\form_checkbox('remember_me', t('Remember Me'), 1) ?><br/>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<?php if (GOOGLE_AUTH): ?>
|
|
||||||
<li>
|
|
||||||
<a href="?controller=user&action=google"><?= t('Login with my Google Account') ?></a>
|
|
||||||
</li>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?php if (GITHUB_AUTH): ?>
|
|
||||||
<li>
|
|
||||||
<a href="?controller=user&action=gitHub"><?= t('Login with my GitHub Account') ?></a>
|
|
||||||
</li>
|
|
||||||
<?php endif ?>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="form-actions">
|
|
||||||
<input type="submit" value="<?= t('Sign in') ?>" class="btn btn-blue"/>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
<?php if (isset($errors['login'])): ?>
|
||||||
|
<p class="alert alert-error"><?= Helper\escape($errors['login']) ?></p>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
<form method="post" action="?controller=user&action=check">
|
||||||
|
|
||||||
|
<?= Helper\form_csrf() ?>
|
||||||
|
|
||||||
|
<?= Helper\form_label(t('Username'), 'username') ?>
|
||||||
|
<?= Helper\form_text('username', $values, $errors, array('autofocus', 'required')) ?><br/>
|
||||||
|
|
||||||
|
<?= Helper\form_label(t('Password'), 'password') ?>
|
||||||
|
<?= Helper\form_password('password', $values, $errors, array('required')) ?>
|
||||||
|
|
||||||
|
<?= Helper\form_checkbox('remember_me', t('Remember Me'), 1) ?><br/>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<?php if (GOOGLE_AUTH): ?>
|
||||||
|
<li>
|
||||||
|
<a href="?controller=user&action=google"><?= t('Login with my Google Account') ?></a>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php if (GITHUB_AUTH): ?>
|
||||||
|
<li>
|
||||||
|
<a href="?controller=user&action=gitHub"><?= t('Login with my GitHub Account') ?></a>
|
||||||
|
</li>
|
||||||
|
<?php endif ?>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="form-actions">
|
||||||
|
<input type="submit" value="<?= t('Sign in') ?>" class="btn btn-blue"/>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -254,8 +254,9 @@ input.form-date {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-login {
|
.form-login {
|
||||||
padding-left: 20px;
|
width: 470px;
|
||||||
width: 430px;
|
padding: 10px;
|
||||||
|
margin: 3% auto 20% auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-column li,
|
.form-column li,
|
||||||
|
|||||||
Reference in New Issue
Block a user