register.phtml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  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. <div>
  10. <label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'), '<br />', _i('help'), ' ', _t('gen.auth.password.format'); ?></label>
  11. <div class="stick">
  12. <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="new-password" pattern=".{7,}" />
  13. <a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a>
  14. </div>
  15. <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
  16. </div>
  17. <div>
  18. <?php
  19. $redirect_url = urlencode(Minz_Url::display(
  20. array('c' => 'index', 'a' => 'index'),
  21. 'php', true
  22. ));
  23. ?>
  24. <input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
  25. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
  26. <a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
  27. </div>
  28. </form>
  29. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
  30. </div>