options.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends "cranefly/usercp/layout.html" %}
  2. {% import "forms.html" as form_theme with context %}
  3. {% import "cranefly/macros.html" as macros with context %}
  4. {% block title %}{{ macros.page_title(title=_('Change Forum Options')) }}{% endblock %}
  5. {% block action %}
  6. <div class="form-container">
  7. <div class="form-header">
  8. <h1>{% trans %}Change Forum Options{% endtrans %}</h1>
  9. </div>
  10. {% if message %}
  11. <div class="messages-list">
  12. {{ macros.draw_message(message) }}
  13. </div>
  14. {% endif %}
  15. <form action="{{ url('usercp_options') }}" method="post">
  16. {{ form_theme.hidden_fields(form) }}
  17. <div class="form-fields">
  18. <fieldset>
  19. <legend>{% trans %}Privacy{% endtrans %}</legend>
  20. {{ form_theme.row(form.hide_activity, attrs={'class': 'span9'}) }}
  21. {{ form_theme.row(form.allow_pds, attrs={'class': 'span9'}) }}
  22. </fieldset>
  23. <fieldset>
  24. <legend>{% trans %}Forum Options{% endtrans %}</legend>
  25. {{ form_theme.row(form.timezone, attrs={'class': 'span9'}) }}
  26. {{ form_theme.row(form.newsletters, attrs={'inline': _("Yes, I want to subscribe forum newsletter.")}) }}
  27. </fieldset>
  28. <fieldset>
  29. <legend>{% trans %}Watching Threads{% endtrans %}</legend>
  30. {{ form_theme.row(form.subscribe_start, attrs={'class': 'span9'}) }}
  31. {{ form_theme.row(form.subscribe_reply, attrs={'class': 'span9'}) }}
  32. </fieldset>
  33. </div>
  34. <div class="form-actions">
  35. <button name="save" type="submit" class="btn btn-primary">{% trans %}Change Options{% endtrans %}</button>
  36. <a href="{{ url('usercp') }}" class="btn">{% trans %}Cancel{% endtrans %}</a>
  37. </div>
  38. </form>
  39. </div>
  40. {% endblock %}