reset.phtml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="prompt">
  2. <h1><?php echo _t('gen.auth.reset'); ?></h1>
  3. <?php if (!empty($this->message)) { ?>
  4. <p class="alert <?php echo $this->message['status'] === 'bad' ? 'alert-error' : 'alert-warn'; ?>">
  5. <span class="alert-head"><?php echo $this->message['title']; ?></span><br />
  6. <?php echo $this->message['body']; ?>
  7. </p>
  8. <?php } ?>
  9. <?php if (!$this->no_form) { ?>
  10. <form id="crypto-form" method="post" action="<?php echo _url('auth', 'reset'); ?>">
  11. <p class="alert alert-warn">
  12. <span class="alert-head"><?php echo _t('gen.short.attention'); ?></span><br />
  13. <?php echo _t('gen.auth.will_reset'); ?>
  14. </p>
  15. <div>
  16. <label for="username"><?php echo _t('gen.auth.username.admin'); ?></label>
  17. <input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
  18. </div>
  19. <div>
  20. <label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
  21. <input type="password" id="passwordPlain" required="required" />
  22. <input type="hidden" id="challenge" name="challenge" /><br />
  23. <noscript><strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  24. </div>
  25. <div>
  26. <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
  27. </div>
  28. </form>
  29. <?php } ?>
  30. </div>