formLogin.phtml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div class="prompt">
  2. <h1><?php echo _t('login'); ?></h1><?php
  3. switch (Minz_Configuration::authType()) {
  4. case 'form':
  5. ?><form id="loginForm" method="post" action="<?php echo _url('index', 'formLogin'); ?>">
  6. <div>
  7. <label for="username"><?php echo _t('username'); ?></label>
  8. <input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" />
  9. </div>
  10. <div>
  11. <label for="passwordPlain"><?php echo _t('password'); ?></label>
  12. <input type="password" id="passwordPlain" required="required" />
  13. <input type="hidden" id="challenge" name="challenge" /><br />
  14. <noscript><strong><?php echo _t('javascript_should_be_activated'); ?></strong></noscript>
  15. </div>
  16. <div>
  17. <label class="checkbox" for="keep_logged_in">
  18. <input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" />
  19. <?php echo _t('keep_logged_in'); ?>
  20. </label>
  21. <br />
  22. </div>
  23. <div>
  24. <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('login'); ?></button>
  25. </div>
  26. </form><?php
  27. break;
  28. case 'persona':
  29. ?><p>
  30. <?php echo _i('login'); ?>
  31. <a class="signin" href="#"><?php echo _t('login_with_persona'); ?></a>
  32. </p><?php
  33. break;
  34. } ?>
  35. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('about_freshrss'); ?></a></p>
  36. </div>