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

{{ _('App Details') }} {% if not editable %} {{ _('Edit') }} {% endif %}

{% if editable %}{{ form.non_field_errors() }}{% endif %}
{{ req_if_edit }} {% if editable %} {{ form.description }} {{ form.description.errors }} {{ some_html_tip() }} {% else %} {% call empty_unless(addon.description) %}
{{ addon|all_locales('description', nl2br=True) }}
{% endcall %} {% endif %}
{{ tip(_("Default Locale"), _("Information about your app is displayed in this locale " "unless you override it with a locale-specific " "translation.")) }} {{ req_if_edit }} {% if editable %} {{ form.default_locale }} {{ form.default_locale.errors }} {% else %} {{ addon.language_ascii() }} {% endif %}
{% if editable %} {{ form.homepage }} {{ form.homepage.errors }} {% else %} {% call empty_unless(addon.homepage) %} {{ addon|all_locales('homepage') }} {% endcall %} {% endif %}
{{ req_if_edit }} {% if editable %} {{ form.privacy_policy }} {{ form.privacy_policy.errors }} {{ some_html_tip() }} {% else %} {% call empty_unless(addon.privacy_policy) %}
{{ addon|all_locales('privacy_policy', nl2br=True) }}
{% endcall %} {% endif %}
{% if editable %} {% endif %}