search_forums.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% extends "cranefly/search/search_form.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=_('Search Forums'), parent=_("Search Community")) }}{% endblock %}
  5. {% block form %}
  6. <div class="form-container">
  7. <div class="form-header">
  8. <h1>{% trans %}Search Forums{% 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(search_route) }}" method="post">
  16. {{ form_theme.hidden_fields(form) }}
  17. <div class="form-fields">
  18. <fieldset class="first last">
  19. {{ form_theme.row(form.search_query, attrs={'class': 'span8'}) }}
  20. {{ form_theme.row(form.search_thread_titles, attrs={'inline': lang_search_thread_titles()}) }}
  21. {{ form_theme.row(form.search_thread, attrs={'class': 'span8'}) }}
  22. {{ form_theme.row(form.search_author, attrs={'class': 'span8'}) }}
  23. <hr>
  24. {{ form_theme.row(form.search_forums, attrs={'class': 'span8', 'size': 8}) }}
  25. {{ form_theme.row(form.search_forums_childs, attrs={'inline': lang_search_forum_children()}) }}
  26. <hr>
  27. {{ form_theme.row(form.search_before, attrs={'class': 'span8 form-datepicker'}) }}
  28. {{ form_theme.row(form.search_after, attrs={'class': 'span8 form-datepicker'}) }}
  29. </fieldset>
  30. </div>
  31. <div class="form-actions">
  32. <button type="submit" class="btn btn-primary">{% trans %}Search{% endtrans %}</button>
  33. </div>
  34. </form>
  35. </div>
  36. {% endblock %}
  37. {% macro lang_search_forum_children() -%}
  38. {% trans %}Include Children Forums in Search{% endtrans %}
  39. {%- endmacro %}