{# vim: set ts=2 et sts=2 sw=2: #} {% from "users/includes/macros.html" import login_form, register_form %} {% from "search/includes/macros.html" import search_engine with context %} {% macro select_product(products) -%}

{{ _('Which product would you like to post a question about?') }}

{%- endmacro %} {% macro selected_product(product, can_change) -%}
{{ product.name }} {% if can_change %} {{ _('change') }} {% endif %}
{%- endmacro %} {% macro select_category(product) -%}

{{ _('Which category best describes your problem?') }}

{%- endmacro %} {% macro selected_category(category, product, can_change) -%}
{{ category.name }} {% if can_change %} {{ _('change') }} {% endif %}
{%- endmacro %} {% macro current_articles_and_message(articles, category, html=None) -%} {% if html %}

{{ html|safe }}

{% else %}

{{ _('We have lots of helpful articles on that topic. Try one of the following:') }}

{% endif %} {% if articles %} {% endif %} {%- endmacro %} {% macro aaq_search_form(product, category, settings, host, request) -%} {%- endmacro %} {% macro show_results(search_results, product, category, request) -%} {% if search_results %}

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

{% set button_text = _('None of these solve my problem') %} {% else %}

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

{% set button_text = _('Provide more details') %} {% endif %}
{%- endmacro %} {% macro register_login_forms(register, login, csrf) -%}

{{ _('Before you continue, we ask you to create a support account so we can contact you.') }}

{{ _('A support account lets us alert you when people respond to your question.') }}

{# TODO: these may have regressed the layout, h2 -> h3. Check! #}

{{ _('Create an account') }}

{{ register_form(register, csrf=csrf, action='') }}

{{ _('I already have an account') }}

{{ login_form(login, csrf=csrf, action='', only_pwreset=True) }}
{%- endmacro %}