{% set action = _args.action %}
{% set icon = _args.icon|default(null) %}
{% set heading = _args.heading %}
{% set lead = _args.lead|default(null) %}
{% set footer = _args.footer|default(null) %}
{% set form = _args.form %}
{% set buttons = _args.buttons|default(null) %}
{% inline_html %}
{% embed '@ui/features/workflows/modal.html.twig' with {
htmlId: 'modal' ~ action
} %}
{% block header %}
<div class="modal__label center" for="publish_action_publishAt">
{% if icon is not empty %}
<em class="modal__label-icon fa fa-{{ icon }}"></em>
{% endif %}
<span class="modal__label-title">{{ heading }}</span>
</div>
{% if lead is not empty %}
<p class="modal__body-lead center center">{{ lead }}</p>
{% endif %}
{% endblock %}
{% block body %}
{% form_theme form '@ui/features/workflows/form_themes/modal.html.twig' %}
{{ form_start(form, {
attr: {
id: 'frm' ~ action
}
}) }}
{{ form_rest(form) }}
{{ buttons|raw }}
{{ form_end(form) }}
{% endblock %}
{% block footer %}
{% if footer is not empty %}
<p class="small center">{{ footer }}</p>
{% endif %}
{% endblock %}
{% endembed %}
{% endinline %}