summaryrefslogtreecommitdiff
path: root/app/Template/auth/index.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-24 16:02:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-24 16:02:25 -0400
commiteeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b (patch)
tree511c2fe47f8fbb1ea90e59e7a7a7f5e3530aa9ed /app/Template/auth/index.php
parent65e9e5d1bed9f88ecfd43eb2c1e780a7c22c151f (diff)
Helpers refactoring
Diffstat (limited to 'app/Template/auth/index.php')
-rw-r--r--app/Template/auth/index.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/Template/auth/index.php b/app/Template/auth/index.php
index b35b1253..8801a512 100644
--- a/app/Template/auth/index.php
+++ b/app/Template/auth/index.php
@@ -4,24 +4,24 @@
<p class="alert alert-error"><?= $this->e($errors['login']) ?></p>
<?php endif ?>
- <form method="post" action="<?= $this->u('auth', 'check', array('redirect_query' => $redirect_query)) ?>">
+ <form method="post" action="<?= $this->url->href('auth', 'check', array('redirect_query' => $redirect_query)) ?>">
- <?= $this->formCsrf() ?>
+ <?= $this->form->csrf() ?>
- <?= $this->formLabel(t('Username'), 'username') ?>
- <?= $this->formText('username', $values, $errors, array('autofocus', 'required')) ?><br/>
+ <?= $this->form->label(t('Username'), 'username') ?>
+ <?= $this->form->text('username', $values, $errors, array('autofocus', 'required')) ?><br/>
- <?= $this->formLabel(t('Password'), 'password') ?>
- <?= $this->formPassword('password', $values, $errors, array('required')) ?>
+ <?= $this->form->label(t('Password'), 'password') ?>
+ <?= $this->form->password('password', $values, $errors, array('required')) ?>
- <?= $this->formCheckbox('remember_me', t('Remember Me'), 1) ?><br/>
+ <?= $this->form->checkbox('remember_me', t('Remember Me'), 1) ?><br/>
<?php if (GOOGLE_AUTH): ?>
- <?= $this->a(t('Login with my Google Account'), 'user', 'google') ?>
+ <?= $this->url->link(t('Login with my Google Account'), 'user', 'google') ?>
<?php endif ?>
<?php if (GITHUB_AUTH): ?>
- <?= $this->a(t('Login with my GitHub Account'), 'user', 'gitHub') ?>
+ <?= $this->url->link(t('Login with my GitHub Account'), 'user', 'gitHub') ?>
<?php endif ?>
<div class="form-actions">