{% extends 'creme_core/bricks/base/table.html' %} {% load i18n media creme_bricks %} {% load url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} billing-exporters-brick{% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Type') status='primary' %} {% brick_table_column title=_('Exporter') %} {% brick_table_column title=_('Action') status='action' %} {% endblock %} {% block brick_table_rows %} {% for config_item in config_items %} {{config_item.content_type}} {% with exporter=config_item.exporter %} {% if not config_item.engine_id %} {% translate 'Not configured' %} {% elif exporter is None %} {% translate 'Invalid configuration' %} {% else %} {{exporter.verbose_name}}
{% for img_src in exporter.screenshots %} {% endfor %}
{% endif %} {% endwith %} {% brick_table_action id='edit' url='billing__edit_exporter_config'|url:config_item.content_type_id label=_('Edit this configuration') %} {% endfor %} {% endblock %} {% block brick_table_empty %} {% translate 'No model configured for export ; see with your administrator if you want to add one.' %} {% endblock %}