summaryrefslogtreecommitdiff
path: root/app/Template/twofactor
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-05 07:56:58 -0500
committerFrederic Guillot <fred@kanboard.net>2016-03-05 07:56:58 -0500
commit0bd5328c19b076a23719b3860296e5507c773d34 (patch)
tree1eca50843fabb966c1c5ee6441ea23ccf1dca989 /app/Template/twofactor
parent9b68c3bc77bfa49f820afbcb601aaf5174b39bcc (diff)
Added Ajax loading icon for submit buttons
Diffstat (limited to 'app/Template/twofactor')
-rw-r--r--app/Template/twofactor/check.php2
-rw-r--r--app/Template/twofactor/index.php4
-rw-r--r--app/Template/twofactor/show.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/Template/twofactor/check.php b/app/Template/twofactor/check.php
index 68a58a6c..b0cb4825 100644
--- a/app/Template/twofactor/check.php
+++ b/app/Template/twofactor/check.php
@@ -5,6 +5,6 @@
<?= $this->form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?>
<div class="form-actions">
- <input type="submit" value="<?= t('Check my code') ?>" class="btn btn-blue"/>
+ <button type="submit" class="btn btn-blue"><?= t('Check my code') ?></button>
</div>
</form> \ No newline at end of file
diff --git a/app/Template/twofactor/index.php b/app/Template/twofactor/index.php
index 6e701273..6de36514 100644
--- a/app/Template/twofactor/index.php
+++ b/app/Template/twofactor/index.php
@@ -7,9 +7,9 @@
<p><?= t('Two-Factor Provider: ') ?><strong><?= $this->text->e($provider) ?></strong></p>
<div class="form-actions">
<?php if ($user['twofactor_activated'] == 1): ?>
- <input type="submit" value="<?= t('Disable two-factor authentication') ?>" class="btn btn-red"/>
+ <button type="submit" class="btn btn-red"><?= t('Disable two-factor authentication') ?></button>
<?php else: ?>
- <input type="submit" value="<?= t('Enable two-factor authentication') ?>" class="btn btn-blue"/>
+ <button type="submit" class="btn btn-blue"><?= t('Enable two-factor authentication') ?></button>
<?php endif ?>
</div>
</form>
diff --git a/app/Template/twofactor/show.php b/app/Template/twofactor/show.php
index df408035..59897e20 100644
--- a/app/Template/twofactor/show.php
+++ b/app/Template/twofactor/show.php
@@ -26,6 +26,6 @@
<?= $this->form->text('code', array(), array(), array('placeholder="123456"', 'autofocus'), 'form-numeric') ?>
<div class="form-actions">
- <input type="submit" value="<?= t('Check my code') ?>" class="btn btn-blue">
+ <button type="submit" class="btn btn-blue"><?= t('Check my code') ?></button>
</div>
</form> \ No newline at end of file