4
0

manage.phtml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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', 'create'); ?>">
  5. <legend><?php echo _t('create_user'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="new_user_language"><?php echo _t('language'); ?></label>
  8. <div class="group-controls">
  9. <select name="new_user_language" id="new_user_language">
  10. <?php $languages = FreshRSS_Context::$conf->availableLanguages(); ?>
  11. <?php foreach ($languages as $short => $lib) { ?>
  12. <option value="<?php echo $short; ?>"<?php echo FreshRSS_Context::$conf->language === $short ? ' selected="selected"' : ''; ?>><?php echo $lib; ?></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('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('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"><?php echo _i('key'); ?></a>
  29. </div>
  30. <noscript><b><?php echo _t('javascript_should_be_activated'); ?></b></noscript>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="group-name" for="new_user_email"><?php echo _t('persona_connection_email'); ?></label>
  35. <?php $mail = FreshRSS_Context::$conf->mail_login; ?>
  36. <div class="group-controls">
  37. <input type="email" id="new_user_email" name="new_user_email" class="extend" autocomplete="off" placeholder="alice@example.net" />
  38. </div>
  39. </div>
  40. <div class="form-group form-actions">
  41. <div class="group-controls">
  42. <button type="submit" class="btn btn-important"><?php echo _t('create'); ?></button>
  43. <button type="reset" class="btn"><?php echo _t('cancel'); ?></button>
  44. </div>
  45. </div>
  46. </form>
  47. <form method="post" action="<?php echo _url('user', 'delete'); ?>">
  48. <legend><?php echo _t('users'); ?></legend>
  49. <div class="form-group">
  50. <label class="group-name" for="user-list"><?php echo _t('users_list'); ?></label>
  51. <div class="group-controls">
  52. <select id="user-list" class="select-change" name="username">
  53. <?php foreach (listUsers() as $username) { ?>
  54. <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>
  55. <?php } ?>
  56. </select>
  57. <p><?php echo _t('admin.users.articles_and_size',
  58. formatNumber($this->nb_articles),
  59. formatBytes($this->size_user)); ?></p>
  60. </div>
  61. </div>
  62. <div class="form-group form-actions">
  63. <div class="group-controls">
  64. <button type="submit" class="btn btn-attention confirm"><?php echo _t('delete'); ?></button>
  65. </div>
  66. </div>
  67. </form>
  68. </div>