manage.phtml 3.5 KB

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