{% from 'developers/includes/macros.html' import empty_unless, required, select_cats, tip, trans_readonly %} {% set req_if_edit = required() if editable %}

{{ _('Basic Information') }} {% if not editable %} {{ _('Edit') }} {% endif %}

{# L10n: {0} is the addon name #}
{{ _('Basic Information for {0}')|f(addon.name) }}
{{ req_if_edit }} {% if editable %} {{ form.name }} {{ form.name.errors }} {% else %} {{ addon|all_locales('name') }} {% endif %}
{{ tip(_('App URL'), _('Select a unique URL for your detail page. ' 'By default we use your app name to create ' 'this URL.')) }} {{ req_if_edit }} {% if editable %}
{{ settings.SITE_URL }}/…/{{ form.slug }}
{{ form.slug.errors }} {% else %} {{ settings.SITE_URL }}/…/{{ addon.app_slug if webapp else addon.slug }} {% if request.can_view_consumer %} {{ _('View Listing') }} {% endif %} {% endif %}
{{ _('Manifest URL') }} {% if editable %} {{ form.manifest_url.errors }}

{% trans email='app-reviews@mozilla.org' %} Manifest URLs cannot be changed after your app has been submitted. Please email {{ email }} if there is a reason you need to modify your manifest URL. {% endtrans %}

{% else %} {{ addon.manifest_url }} {% endif %}
{% if editable %} {{ form.summary }} {{ form.summary.errors }}
{% else %} {{ addon|all_locales('summary') }} {% endif %}
{{ tip(_('Categories'), _("Categories are the primary way users browse through apps. Choose any that fit your app's functionality for the most exposure.")) }} {{ req_if_edit }} {% if editable %} {{ cat_form.non_form_errors() }} {{ cat_form.management_form }} {% for form in cat_form.initial_forms %} {% if form.disabled %}

{% if form.app %} {{ form.app.pretty }}: {% endif %} {% set cats = dict(addon.app_categories).get(form.app, []) %} {{ cats|join(' · ')|safe }}

{% if webapp %} {# TODO(apps): Finalize copy. #} {% with email='amo-editors@mozilla.org' %} Categories cannot be changed while your app is featured. Please email {{ email }} if there is a reason you need to modify your categories. {% endwith %} {% else %} {% trans email='amo-editors@mozilla.org' %} Categories cannot be changed while your add-on is featured for this application. Please email {{ email }} if there is a reason you need to modify your categories. {% endtrans %} {% endif %}

{% else %} {{ select_cats(amo.MAX_CATEGORIES, form, webapp) }} {% endif %} {% endfor %} {% else %} {% set categories = addon.app_categories %} {% call empty_unless(categories) %}
    {% for app, cats in categories %}
  • {% if not webapp %} {{ app.pretty }}: {% endif %} {{ cats|join(' · ')|safe }}
  • {% endfor %}
{% endcall %} {% endif %}
{{ tip(_('Device Types'), _('Indicate support for desktop, mobile, and tablet devices.')) }} {{ req_if_edit }} {% if editable %} {{ device_type_form.device_types.errors }} {{ device_type_form.device_types }} {% else %} {% set device_types = addon.device_types %} {% call empty_unless(device_types) %} {# Jinja doesn't support list comprehensions. Comprehend this. #} {% for device in device_types %} {{ device.name }}{% if not loop.last %}, {% endif %} {% endfor %} {% endcall %} {% endif %}
{% if editable %} {% endif %}