register.phtml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /* TODO list
  3. * - Show help for username and password formats
  4. * - Don't show this page if there is no more free account slots
  5. * - Fix i18n
  6. */
  7. ?>
  8. <div class="prompt">
  9. <h1><?php echo _t('gen.auth.register'); ?></h1>
  10. <form method="post" action="<?php echo _url('user', 'create'); ?>">
  11. <div>
  12. <label class="group-name" for="new_user_name"><?php echo _t('gen.auth.username'); ?></label>
  13. <input id="new_user_name" name="new_user_name" type="text" size="16" required="required" maxlength="16" autocomplete="off" pattern="[0-9a-zA-Z]{1,16}" />
  14. </div>
  15. <div>
  16. <label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
  17. <div class="stick">
  18. <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="off" pattern=".{7,}" />
  19. <a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a>
  20. </div>
  21. <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
  22. </div>
  23. <div>
  24. <label class="group-name" for="new_user_email"><?php echo _t('gen.auth.email'); ?></label>
  25. <input type="email" id="new_user_email" name="new_user_email" class="extend" required="required" autocomplete="off" />
  26. </div>
  27. <div>
  28. <?php
  29. $redirect_url = urlencode(Minz_Url::display(
  30. array('c' => 'index', 'a' => 'index'),
  31. 'php', true
  32. ));
  33. ?>
  34. <input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
  35. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
  36. <a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
  37. </div>
  38. </form>
  39. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
  40. </div>