{# vim: set ts=2 et sts=2 sw=2: #} {% extends "questions/includes/question_editing_frame.html" %} {% from "questions/includes/aaq_macros.html" import select_product, select_category, current_articles_and_message, show_results %} {% from "questions/includes/aaq_macros.html" import aaq_search_form with context %} {% from "search/includes/result.html" import search_result with context %} {% set title = _('Ask a Question') %} {% set crumbs = [(url('questions.questions'), _('Forum')), (None, _('Ask a New Question'))] %} {% set can_edit_product = True %} {% set can_edit_category = True %} {% block headline %}{{ _('Ask a New Question') }}{% endblock %} {% block product %} {% if not current_product %} {{ select_product(products) }} {% else %} {{ super() }} {% endif %} {% endblock %} {% block category %} {% if current_product and not current_category and current_product.categories %} {{ select_category(current_product) }} {% else %} {{ super() }} {% endif %} {% endblock %} {% block articles_and_search_results %} {% set form_header_set = False %} {% if (current_articles or current_html) and not search_results and not form %} {{ current_articles_and_message(current_articles, current_category, current_html) }} {% if not form and not deadend %} {% set form_header_set = True %}