register.phtml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /* TODO list
  3. * - Show help for username and password formats
  4. */
  5. ?>
  6. <div class="prompt">
  7. <h1><?php echo _t('gen.auth.registration'); ?></h1>
  8. <form method="post" action="<?php echo _url('user', 'create'); ?>">
  9. <div>
  10. <label class="group-name" for="new_user_name"><?php echo _t('gen.auth.username'); ?></label>
  11. <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}" />
  12. </div>
  13. <div>
  14. <label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'); ?></label>
  15. <div class="stick">
  16. <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="off" pattern=".{7,}" />
  17. <a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a>
  18. </div>
  19. <noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
  20. </div>
  21. <div>
  22. <label class="group-name" for="new_user_email"><?php echo _t('gen.auth.email'); ?></label>
  23. <input type="email" id="new_user_email" name="new_user_email" class="extend" required="required" autocomplete="off" />
  24. </div>
  25. <div>
  26. <?php
  27. $redirect_url = urlencode(Minz_Url::display(
  28. array('c' => 'index', 'a' => 'index'),
  29. 'php', true
  30. ));
  31. ?>
  32. <input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
  33. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
  34. <a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
  35. </div>
  36. </form>
  37. <p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
  38. </div>