formLogin.phtml 1.4 KB

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