{# Base template for creating a new or editing an existing question. The cases for showing uneditable product and category names are handled here. Fancier behaviors like editing them can be provided by overriding blocks. #} {% extends "questions/base.html" %} {% from "layout/errorlist.html" import errorlist %} {% from "includes/common_macros.html" import search_box, scam_banner, content_editor with context %} {% from "questions/includes/aaq_macros.html" import progress_bar %} {% from "questions/includes/aaq_macros.html" import troubleshooting_instructions with context %} {% from "upload/attachments.html" import attachments_form %} {% set scripts = ('questions', 'questions.geo',) %} {% set hide_aaq_link = True %} {% block contentwrap %}
{% if current_step %} {{ progress_bar(current_step, product_slug=current_product.slug) }} {% if current_step > 1 and not has_ticketing_support %} {{ scam_banner() }} {% endif %} {% endif %} {% block formwrap %} {# TODO: hook this up to the backend when subproducts are in. #}

{{ current_product.title }}

{% block major_detail_instructions %} {% endblock %}
{% if not no_headline %}

{% block headline %}{% endblock %}

{% endif %}
{% if form %}
{% csrf_token %} {% if not has_ticketing_support %}

{% trans %} Be nice. Our volunteers are Mozilla users just like you, who take the time out of their day to help. {% endtrans %}

{% endif %}
{% if is_loginless and not user.is_authenticated %} {% trans %} Can't sign in to your account and need help? You've found the right place. Complete the form below to contact our support staff. {% endtrans %} {% else %} {% trans %} Be descriptive. Saying “playing video on YouTube is always choppy” will help us understand the issue better than saying “something is wrong” or “the app is broken”. {% endtrans %} {% endif %}
{% for field in form.hidden_fields() %} {{ field|safe }} {% endfor %}
    {% set li_class='' %} {% for field in form.visible_fields() if not field.name == 'notifications' %} {% if not has_ticketing_support %} {% if field.name == 'ff_version' %}
  • {{ _("We've made some educated guesses about your current browser and operating system.") }} {{ _('Show details »')|safe }} {{ _('Hide details »')|safe }}

  • {% endif %} {% if field.name == 'ff_version' or field.name == 'os' %} {% set li_class='details' %} {% endif %} {% endif %}
  • {{ field.label_tag()|safe }} {% if field.name == 'content' %} {{ content_editor(field) }} {% elif field.name == 'troubleshooting' %} {{ troubleshooting_instructions(field) }} {% elif field.name == 'description' and is_loginless %} {{ field }} {{ field.errors }} {% elif category_field_attrs and (field.name == 'category') %} {{ field.as_widget(attrs=category_field_attrs)|safe }} {% else %} {{ field|safe }} {% endif %} {% if field.help_text and field.name != 'troubleshooting' %}

    {{ field.help_text|safe }}

    {% endif %} {% if field.name != 'content' %} {{ field.errors }} {% endif %}
  • {% if field.name == 'content' %}
  • {% block attachments_form %} {{ attachments_form('auth.User', user.pk, images, settings, user) }} {% endblock %}
  • {% endif %} {% endfor %} {% if form.notifications %}
  • {{ checkbox(form.notifications) }}
  • {% endif %}

Helpful Tip icon {{ _('Helpful Tip!')}}

{% trans %} Follow through. Sometimes, our volunteers would ask you for more information or to test out certain scenarios. The sooner you can do this, the sooner they would know how to fix it. {% endtrans %}

{% block more_submit_buttons %} {{ _('Cancel') }} {% endblock %}
{% endif %}
{% endblock %}
{% endblock %} {% block side %} {% endblock %}