manage.phtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php $this->partial('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url('user', 'delete'); ?>">
  5. <legend><?php echo _t('users'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="users_list"><?php echo _t('users_list'); ?></label>
  8. <div class="group-controls">
  9. <select id="users_list" name="username"><?php
  10. foreach (listUsers() as $user) {
  11. echo '<option>', $user, '</option>';
  12. }
  13. ?></select>
  14. </div>
  15. </div>
  16. <div class="form-group form-actions">
  17. <div class="group-controls">
  18. <button type="submit" class="btn btn-attention confirm"><?php echo _t('delete'); ?></button>
  19. </div>
  20. </div>
  21. </form>
  22. <form method="post" action="<?php echo _url('user', 'create'); ?>">
  23. <legend><?php echo _t('create_user'); ?></legend>
  24. <div class="form-group">
  25. <label class="group-name" for="new_user_language"><?php echo _t('language'); ?></label>
  26. <div class="group-controls">
  27. <select name="new_user_language" id="new_user_language">
  28. <?php $languages = $this->conf->availableLanguages(); ?>
  29. <?php foreach ($languages as $short => $lib) { ?>
  30. <option value="<?php echo $short; ?>"<?php echo $this->conf->language === $short ? ' selected="selected"' : ''; ?>><?php echo $lib; ?></option>
  31. <?php } ?>
  32. </select>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="group-name" for="new_user_name"><?php echo _t('username'); ?></label>
  37. <div class="group-controls">
  38. <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}" placeholder="demo" />
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="group-name" for="new_user_passwordPlain"><?php echo _t('password_form'); ?></label>
  43. <div class="group-controls">
  44. <div class="stick">
  45. <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" autocomplete="off" pattern=".{7,}" />
  46. <a class="btn toggle-password"><?php echo _i('key'); ?></a>
  47. </div>
  48. <noscript><b><?php echo _t('javascript_should_be_activated'); ?></b></noscript>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="group-name" for="new_user_email"><?php echo _t('persona_connection_email'); ?></label>
  53. <?php $mail = $this->conf->mail_login; ?>
  54. <div class="group-controls">
  55. <input type="email" id="new_user_email" name="new_user_email" class="extend" autocomplete="off" placeholder="alice@example.net" />
  56. </div>
  57. </div>
  58. <div class="form-group form-actions">
  59. <div class="group-controls">
  60. <button type="submit" class="btn btn-important"><?php echo _t('create'); ?></button>
  61. <button type="reset" class="btn"><?php echo _t('cancel'); ?></button>
  62. </div>
  63. </div>
  64. </form>
  65. </div>