{% load i18n %}
{% load translations %}
{% load icons %}

<h4>
{% if addon.project_scope %}
<span class="badge pull-right flip" title="{% trans "This addon is used for the whole project, it is enough to install it for one component." %}">{% trans "project wide" %}</span>
{% endif %}
{% if addon.repo_scope %}
<span class="badge pull-right flip" title="{% trans "This addon is used for all components sharing this repository." %}">{% trans "repository wide" %}</span>
{% endif %}
{% icon addon.icon %}
{{ addon.verbose }}
{% documentation_icon "admin/addons" addon.doc_anchor %}
</h4>
<p>{{ addon.description }}</p>
{% if addon.instance %}
{% with form=addon.get_ui_form %}
  {% if form %}
    <div>
    {% for field in form %}
      {% if not field.is_hidden and field.value %}
        <span class="format-item">{{ field.label }} <span>{{ field|choiceval }}</span></span>
      {% endif %}
    {% endfor %}
    </div>
  {% endif %}
{% endwith %}
{% endif %}
