eleven-8.x-1.0-beta5/eleven/templates/component/messages/status-messages.html.twig

eleven/templates/component/messages/status-messages.html.twig
{% block messages %}
{% for type, messages in message_list %}
  {%
    set classes = [
      'messages',
      'messages--' ~ type
    ]
  %}
<article role="contentinfo" aria-label="{{ status_headings[type] }}"{{ attributes.addClass(classes)|without('role', 'aria-label') }}>

  <a href="#" class="js-hide-message hide-message" data-helptext="{{'Hide Message'|t}}">
      <span class="visually-hidden">{{'Hide Message'|t}}</span>

  </a>

  <div class="messages__content">

    {% if type == 'error' %}
      <div role="alert">
    {% endif %}
      {% if status_headings[type] %}
        <h2 class="visually-hidden">{{ status_headings[type] }}</h2>
      {% endif %}

      {% if messages|length > 1 %}
        <ul class="messages__list">
          {% for message in messages %}
            <li class="messages__item">{{ message }}</li>
          {% endfor %}
        </ul>
      {% else %}
        {{ messages|first }}
      {% endif %}

    {% if type == 'error' %}
      </div>
    {% endif %}

  </div>

</article>
{% endfor %}
{% endblock messages %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc