register.phtml 1.7 KB

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