src/Cms/ModuleBundle/Resources/views/Content/includes/editor/action_modal.html.twig line 1

Open in your IDE?
  1. {% set action = _args.action %}
  2. {% set icon = _args.icon|default(null) %}
  3. {% set heading = _args.heading %}
  4. {% set lead = _args.lead|default(null) %}
  5. {% set footer = _args.footer|default(null) %}
  6. {% set form = _args.form %}
  7. {% set buttons = _args.buttons|default(null) %}
  8. {% inline_html %}
  9.     {% embed '@ui/features/workflows/modal.html.twig' with {
  10.         htmlId: 'modal' ~ action
  11.     } %}
  12.         {% block header %}
  13.             <div class="modal__label center" for="publish_action_publishAt">
  14.                 {% if icon is not empty %}
  15.                     <em class="modal__label-icon fa fa-{{ icon }}"></em>
  16.                 {% endif %}
  17.                 <span class="modal__label-title">{{ heading }}</span>
  18.             </div>
  19.             {% if lead is not empty %}
  20.                 <p class="modal__body-lead center center">{{ lead }}</p>
  21.             {% endif %}
  22.         {% endblock %}
  23.         {% block body %}
  24.             {% form_theme form '@ui/features/workflows/form_themes/modal.html.twig' %}
  25.             {{ form_start(form, {
  26.                 attr: {
  27.                     id: 'frm' ~ action
  28.                 }
  29.             }) }}
  30.                 {{ form_rest(form) }}
  31.                 {{ buttons|raw }}
  32.             {{ form_end(form) }}
  33.         {% endblock %}
  34.         {% block footer %}
  35.             {% if footer is not empty %}
  36.                 <p class="small center">{{ footer }}</p>
  37.             {% endif %}
  38.         {% endblock %}
  39.     {% endembed %}
  40. {% endinline %}