{% from "devhub/includes/macros.html" import tip, some_html_tip, empty_unless %}

{% if webapp %} {# TODO(apps): Finalize copy. #} App Details {% else %} {{ _('Add-on Details') }} {% endif %} {% if not editable %} {{ _('Edit') }} {% endif %}

{% if editable %}{{ form.non_field_errors() }}{% endif %} {% if not webapp %} {% endif %}
{{ _('Add-on Details for {0}')|f(addon.name) }}
{% if editable %} {{ form.description }} {{ form.description.errors }} {{ some_html_tip() }} {% else %} {% call empty_unless(addon.description) %}
{{ addon|all_locales('description', nl2br=True) }}
{% endcall %} {% endif %}
{% if webapp %} {# TODO(apps): Finalize copy. #} {{ tip(_("Default Locale"), "Information about your app is displayed in this locale unless you override it with a locale-specific translation.") }} {% else %} {{ tip(_("Default Locale"), _("Information about your add-on is displayed in this locale unless you override it with a locale-specific translation.")) }} {% endif %} {% 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 %}
{% if editable %} {% endif %}