{% extends "devhub/addons/submit/base.html" %} {% block title %}{{ dev_page_title(_('Upload Add-on'), addon) }}{% endblock %} {% block primary %}
{{ csrf() }} {% if submit_page in ['version', 'file'] and waffle.switch('mixed-listed-unlisted')%} {% if submit_page == 'file' %}

{{ _('Where to Host File') }}

{% else %}

{{ _('Where to Host Version') }}

{% endif %}

{{ channel_choice_text|safe }} {% if submit_page == 'version' %} {% set channel_param = 'listed' if listed else 'unlisted' %} {{ _('Change') }} {% endif %}

{% endif %} {% if submit_page == 'file' %}

{{ _('Upload File') }}

{% else %}

{{ _('Upload Version') }}

{% endif %}

{% trans %} Use the fields below to upload your add-on package and select any platform restrictions. After upload, a series of automated validation tests will be run on your file. {% endtrans %}

{{ new_addon_form.non_field_errors() }} {{ source_form_field(new_addon_form.source) }}
{{ new_addon_form.errors.supported_platforms }} {{ new_addon_form.supported_platforms }}
{% if submit_page == 'version' %}
?
{% endif %} {% if is_admin %}
{% endif %}
{% endblock primary %}