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.

user_settings.twig 1.9KB

9 years ago
12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "User Settings" | translate }{% endblock %}
  3. {% block content %}
  4. <form id="user_settings" class="split" action="{% admin "user_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  5. <fieldset>
  6. <p>
  7. <label for="can_register">${ "Registration" | translate }</label>
  8. <input class="checkbox" type="checkbox" name="can_register" id="can_register"${ site.can_register | checked } />
  9. ${ "Allow people to register" | translate }
  10. </p>
  11. <p>
  12. <label for="default_group">${ "Default User Group" | translate }</label>
  13. <select name="default_group" id="default_group">
  14. {% for group in groups %}
  15. <option value="$group.id"${ group.id | option_selected(site.default_group) }>$group.name</option>
  16. {% endfor %}
  17. </select>
  18. </p>
  19. <p>
  20. <label for="guest_group">${ "&#8220;Guest&#8221; Group" | translate }</label>
  21. <select name="guest_group" id="guest_group">
  22. {% for group in groups %}
  23. <option value="$group.id"${ group.id | option_selected(site.guest_group) }>$group.name</option>
  24. {% endfor %}
  25. </select>
  26. </p>
  27. <p class="buttons">
  28. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  29. </p>
  30. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  31. </fieldset>
  32. </form>
  33. {% endblock %}