{% from "devhub/includes/macros.html" import tip, empty_unless %} {{ csrf() }} {% set editable = (context == 'edit' and editable) or context == 'submit' %}
{% if webapp %} {# TODO(apps): Finalize copy. #} {{ tip('App icon', "Upload an icon for your app or choose from one of ours. The icon is displayed nearly everywhere your app is. Uploaded images must be one of the following image types: .png, .jpg") }} {% else %} {{ tip(_("Add-on icon"), _("Upload an icon for your add-on or choose from one of ours. The icon is displayed nearly everywhere your add-on is. Uploaded images must be one of the following image types: .png, .jpg")) }} {% endif %} | {% endif %}
{% if context == 'submit' %}
{% endif %}
{% if editable %}
{# L10n: The size of the icon #}
{{ _('32x32px') }}
{% if webapp %}
{# TODO(apps): Finalize copy. #}
{{ tip(None,
'Used in listings of apps, like search results
and featured apps.') }}
{% else %}
{{ tip(None,
_("Used in listings of add-ons, like search results
and featured add-ons.")) }}
{% endif %}
{# L10n: The size of the icon #}
{{ _('64x64px') }}
{% if webapp %}
{# TODO(apps): Finalize copy. #}
{{ tip(None, 'Used in app detail pages.') }}
{% else %}
{{ tip(None, _("Used in add-on detail pages.")) }}
{% endif %}
{{ form.icon_upload_hash }}
{% trans %}
PNG and JPG supported. Icons resized to 64x64 pixels if larger.
{% endtrans %}
|
---|---|
{% endif %} |
{% if context == 'submit' %}
{% endif %}
{% if editable %}
{% if preview_form %}
{{ preview_form.management_form }}
{{ preview_form.non_form_errors() }}
{% for form in preview_form.forms %}
{% endif %}
{% else %}
{% for preview in addon.previews.all() %}
{% endfor %}
{% endif %}
{% if form.instance.id %}
{% endfor %}
{{ form.caption }}
x
{{ form.position }}
{{ form.upload_hash }}
{{ form.errors }}
|