{# 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 %}

{% trans %} or, post a question in our Community Support Forum (registration required) {% endtrans %}

{% endif %} {% endif %} {% if current_category and ((current_articles or search_results or current_html) or not (current_articles and search_results and current_html)) and not form and not deadend %} {% if not form_header_set %}

{% trans %} Post a question in our Community Support Forum (registration required) {% endtrans %}

{% endif %} {{ aaq_search_form(current_product, current_category, settings, host, request) }} {% endif %} {% if tried_search and not form %} {% if results %}

{{ _("We've found some articles and previous answered questions that may solve your issue:") }}

{% set button_text = _('None of these solve my problem') %}
{% for result in results %} {{ search_result(result, as='aaq') }} {% endfor %}
{# .search-results #} {% else %}{# No search results at all. #}

{{ _('This question has not been asked before.') }}

{% set button_text = _('Provide more details') %} {% endif %}
{% endif %} {% endblock %} {% block major_detail_instructions %}

{{ _('Fill in the details of your question.') }}

{% endblock %} {% block submit_button_value %}{{ _('Post Question') }}{% endblock %}