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.

new_user.twig 2.7KB

9 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Add User" | translate }{% endblock %}
  3. {% block content %}
  4. <h1>${ "New User" | translare }</h1>
  5. <form id="new_user" class="split" action="{% admin "add_user" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  6. <fieldset>
  7. <h2>${ "Settings" | translate }</h2>
  8. <p>
  9. <label for="login">${ "Login" | translate }</label>
  10. <input class="text" type="text" name="login" value="" id="full_name" />
  11. </p>
  12. <p>
  13. <label for="group">${ "Group" | translate }</label>
  14. <select name="group" id="group">
  15. <option value="$default_group.id">$default_group.name</option>
  16. {% for group in groups %}
  17. <option value="$group.id">$group.name</option>
  18. {% endfor %}
  19. </select>
  20. </p>
  21. <p>
  22. <label for="password1">${ "Password" | translate }</label>
  23. <input class="text" type="password" name="password1" value="" id="password1" />
  24. </p>
  25. <p>
  26. <label for="password2">${ "Confirm" | translate }</label>
  27. <input class="text" type="password" name="password2" value="" id="password2" />
  28. </p>
  29. <h2>${ "Information" | translate }</h2>
  30. <p>
  31. <label for="full_name">${ "Full Name" | translate }</label>
  32. <input class="text" type="text" name="full_name" value="" id="full_name" />
  33. </p>
  34. <p>
  35. <label for="email">${ "E-Mail" | translate }</label>
  36. <input class="text" type="text" name="email" value="" id="email" />
  37. </p>
  38. <p>
  39. <label for="website">${ "Website" | translate }</label>
  40. <input class="text" type="text" name="website" value="" id="website" />
  41. </p>
  42. ${ trigger.call("new_user_fields") }
  43. <br />
  44. <p>
  45. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Add User" | translate }</button>
  46. </p>
  47. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  48. </fieldset>
  49. </form>
  50. {% endblock %}