formLogin.phtml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="prompt">
  2. <h1><?php echo Minz_Translate::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 Minz_Translate::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 Minz_Translate::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 Minz_Translate::t('javascript_should_be_activated'); ?></strong></noscript>
  15. </div>
  16. <div>
  17. <button id="loginButton" type="submit" class="btn btn-important"><?php echo Minz_Translate::t('login'); ?></button>
  18. </div>
  19. </form><?php
  20. break;
  21. case 'persona':
  22. ?><p>
  23. <?php echo FreshRSS_Themes::icon('login'); ?>
  24. <a class="signin" href="#"><?php echo Minz_Translate::t('login_with_persona'); ?></a>
  25. </p><?php
  26. break;
  27. } ?>
  28. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo Minz_Translate::t('about_freshrss'); ?></a></p>
  29. </div>