KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
3.1KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Edit User “%s”" | translate | format(user.login | escape) }{% endblock %}
  3. {% block content %}
  4. ${ user.delete_link('<img src="'~ theme_url ~'/images/icons/delete.png" alt="delete" />'~ ("Delete" | translate), null, null, "button boo right") }
  5. <h1>${ "Editing User &#8220;%s&#8221;" | translate | format(user.login | escape) }</h1>
  6. <form id="user_edit" class="split" action="{% admin "update_user" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  7. <fieldset>
  8. <h2>${ "Information" | translate }</h2>
  9. <p>
  10. <label for="full_name">${ "Full Name" | translate }</label>
  11. <input class="text" type="text" name="full_name" value="${ user.full_name | escape }" id="full_name" />
  12. </p>
  13. <p>
  14. <label for="email">${ "E-Mail" | translate }</label>
  15. <input class="text" type="text" name="email" value="${ user.email | escape }" id="email" />
  16. </p>
  17. <p>
  18. <label for="website">${ "Website" | translate }</label>
  19. <input class="text" type="text" name="website" value="${ user.website | escape }" id="website" />
  20. </p>
  21. <h2>${ "Settings" | translate }</h2>
  22. <p>
  23. <label for="login">${ "Login" | translate }</label>
  24. <input class="text" type="text" name="login" value="${ user.login | escape }" id="full_name" />
  25. </p>
  26. <p>
  27. <label for="group">${ "Group" | translate }</label>
  28. <select name="group" id="group">
  29. {% for group in groups %}
  30. <option value="$group.id"${ group.id | option_selected(user.group_id) }>$group.name</option>
  31. {% endfor %}
  32. </select>
  33. </p>
  34. <p>
  35. <label for="new_password1">${ "New Password?" | translate }</label>
  36. <input class="text" type="password" name="new_password1" value="" id="new_password1" />
  37. </p>
  38. <p>
  39. <label for="new_password2">${ "Confirm" | translate }</label>
  40. <input class="text" type="password" name="new_password2" value="" id="new_password2" />
  41. </p>
  42. ${ trigger.call("edit_user_fields", user) }
  43. <br />
  44. <p>
  45. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  46. </p>
  47. <input type="hidden" name="id" value="$user.id" id="id" />
  48. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  49. </fieldset>
  50. </form>
  51. {% endblock %}