register.phtml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div class="prompt">
  2. <h1><?php echo _t('gen.auth.registration'); ?></h1>
  3. <form method="post" action="<?php echo _url('user', 'create'); ?>">
  4. <input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
  5. <div>
  6. <label class="group-name" for="new_user_name"><?php echo _t('gen.auth.username'), '<br />', _i('help'), ' ', _t('gen.auth.username.format'); ?></label>
  7. <input id="new_user_name" name="new_user_name" type="text" size="16" required="required" autocomplete="off" pattern="<?php echo FreshRSS_user_Controller::USERNAME_PATTERN; ?>" />
  8. </div>
  9. <?php if ($this->show_email_field) { ?>
  10. <div>
  11. <label class="group-name" for="new_user_email">
  12. <?php echo _t('gen.auth.email'); ?>
  13. </label>
  14. <input id="new_user_email" name="new_user_email" type="email" required />
  15. </div>
  16. <?php } ?>
  17. <div>
  18. <label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'), '<br />', _i('help'), ' ', _t('gen.auth.password.format'); ?></label>
  19. <div class="stick">
  20. <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="new-password" pattern=".{7,}" />
  21. <a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a>
  22. </div>
  23. <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
  24. </div>
  25. <?php if ($this->show_tos_checkbox) { ?>
  26. <div>
  27. <label class="checkbox" for="accept-tos">
  28. <input type="checkbox" name="accept_tos" id="accept-tos" value="1" required />
  29. <?php echo _t('gen.auth.accept_tos', _url('index', 'tos')); ?>
  30. </label>
  31. </div>
  32. <?php } ?>
  33. <div>
  34. <?php
  35. $redirect_url = urlencode(Minz_Url::display(
  36. array('c' => 'index', 'a' => 'index'),
  37. 'php', true
  38. ));
  39. ?>
  40. <input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
  41. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
  42. <a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
  43. </div>
  44. </form>
  45. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
  46. </div>