options.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. {# form_theme.form_widget(form, width=9) #}
  19. <fieldset>
  20. <legend>{% trans %}Privacy{% endtrans %}</legend>
  21. {{ form_theme.row(form.hide_activity) }}
  22. {{ form_theme.row(form.allow_pds) }}
  23. </fieldset>
  24. <fieldset>
  25. <legend>{% trans %}Forum Options{% endtrans %}</legend>
  26. {{ form_theme.row(form.timezone) }}
  27. {{ form_theme.row(form.newsletters, attrs={'inline': _("Yes, I want to subscribe forum newsletter.")}) }}
  28. </fieldset>
  29. <fieldset>
  30. <legend>{% trans %}Watching Threads{% endtrans %}</legend>
  31. {{ form_theme.row(form.subscribe_start) }}
  32. {{ form_theme.row(form.subscribe_reply) }}
  33. </fieldset>
  34. </div>
  35. <div class="form-actions">
  36. <button name="save" type="submit" class="btn btn-primary">{% trans %}Change Options{% endtrans %}</button>
  37. <a href="{{ url('usercp') }}" class="btn">{% trans %}Cancel{% endtrans %}</a>
  38. </div>
  39. </form>
  40. </div>
  41. {% endblock %}