formLogin.phtml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="prompt">
  2. <h1><?php echo _t('gen.auth.login'); ?></h1>
  3. <?php if (!max_registrations_reached()) { ?>
  4. <a href="<?php echo _url('auth', 'register'); ?>"><?php echo _t('gen.auth.registration.ask'); ?></a>
  5. <?php } ?>
  6. <form id="crypto-form" method="post" action="<?php echo _url('auth', 'login'); ?>">
  7. <div>
  8. <label for="username"><?php echo _t('gen.auth.username'); ?></label>
  9. <input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
  10. </div>
  11. <div>
  12. <label for="passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
  13. <input type="password" id="passwordPlain" required="required" />
  14. <input type="hidden" id="challenge" name="challenge" /><br />
  15. <noscript><strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  16. </div>
  17. <div>
  18. <label class="checkbox" for="keep_logged_in">
  19. <input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" />
  20. <?php echo _t('gen.auth.keep_logged_in'); ?>
  21. </label>
  22. <br />
  23. </div>
  24. <div>
  25. <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('gen.auth.login'); ?></button>
  26. </div>
  27. </form>
  28. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
  29. </div>