{% macro submitBtn(text, icon, class = '') %} {% spaceless %} {% set text = text|default('pim_common.save')|trans|capitalize %} {% endspaceless %} {% endmacro %} {% macro deleteLinkAttributes(url, redirectUrl, message, successMessage, title, subTitle, errorMessage) %}{% spaceless %} {% set message = message|default('pim_enrich.entity.fallback.module.delete.item') %} {% set title = title|default('confirmation.delete'|trans) %} {% set successMessage = successMessage|default('flash.entity.removed'|trans) %} {% set errorMessage = errorMessage|default('The element could not be deleted')|trans %} href="javascript:void(0);" data-dialog="delete" data-title="{{ title }}" data-subtitle="{{ subTitle }}" data-message="{{ message }}" data-url="{{ url }}" data-redirect-url="{{ redirectUrl }}" data-method="DELETE" data-error-message="{{ errorMessage }}" data-success-message="{{ successMessage }}" {% endspaceless %}{% endmacro %} {% macro deleteLink(url, acl, redirectUrl, message, successMessage, title, class = '', subTitle = '', errorMessage = '') %}{% spaceless %} {% if acl is null or resource_granted(acl) %} {% import _self as elements %} {{ 'pim_common.delete'|trans|capitalize }} {% endif %} {% endspaceless %}{% endmacro %} {% macro link(text, url, opts = {}) %} {% spaceless %} {% set title = opts.title is defined ? opts.title : text %} {% set icon = opts.icon is defined ? opts.icon : null %} {{ text|trans|capitalize }} {% endspaceless %} {% endmacro %} {% macro page_header(options) %} {% set title = options.title is defined ? options.title : '' %} {% set buttons = options.buttons is defined ? options.buttons : '' %} {% set meta = options.meta is defined ? options.meta : '' %} {% set backButton = options.backButton is defined ? options.backButton : '' %} {% set state = options.state is defined ? options.state : '' %} {% set image = options.image is defined ? options.image : '' %} {% set context = options.context is defined ? options.context : '' %} {% endmacro %} {% macro form_navbar(tabs, translationSuffix = '.title') %}
{% endmacro %} {% macro form_errors(form) %} {% if form.vars.errors|length %}
{{ form_errors(form) }}
{% endif %} {% endmacro %} {% macro tabSections(items = {}) %}
{% for title, content in items %} {% if content|trim is not empty %}
{{ title|trans }}
{{ content|raw }}
{% endif %} {% endfor %}
{% endmacro %} {% macro updated(formId) %} {% spaceless %}
{{ 'info.updated'|trans }}
{% endspaceless %} {% endmacro %} {% macro form_container(content) %}
{% autoescape false %} {{ content }} {% endautoescape %}
{% endmacro %}