vartheme_bs5-2.0.x-dev/src/components/pages/pageUserReset/pageUserReset.twig

src/components/pages/pageUserReset/pageUserReset.twig
{#
/**
 * @file
 * Template for the main page.
 * Available config:
 *  - is_front: true | false -> to determine if page is front or not
 */
#}
<div class="page d-flex flex-column">
  {% embed '@organisms/navbar/navbar.twig' with {
    placement: 'sticky-top',
    container: 'fixed',
    color: 'light',
    utility_classes: ['bg-light'],
  } %}

    {% block branding %}
      {% if page.navbar_branding %}
        {{ page.navbar_branding }}
      {% endif %}
    {% endblock %}

    {% block left %}
      {% if page.navbar_left %}
        <div class="me-auto">
          {{ page.navbar_left }}
        </div>
      {% endif %}
    {% endblock %}

    {% block right %}
      {% if page.navbar_right %}
        <div class="ms-auto">
          {{ page.navbar_right }}
        </div>
      {% endif %}
    {% endblock %}
  {% endembed %}


  <main>
    <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}

    <div role="main" class="main-container {{ container }}">
      <div class="row justify-content-center">
        <div id="auth-box" class="login col-10 col-lg-4 col-xl-3">
          <h1 id="page-user-reset-title" class="sr-only">{{ title }}</h1>
          <div id="top-part">

          </div>
          <div id="middle-part">
            {% if logged_in %}
              {{ page.header|without('vartheme_bs5_local_tasks', 'vartheme_bs5_breadcrumbs', 'vartheme_bs5_local_actions') }}
            {% else %}
              <h2 class="title">{{ title }}</h2>
              {{ page.header|without('vartheme_bs5_local_tasks', 'vartheme_bs5_breadcrumbs', 'vartheme_bs5_local_actions', 'vartheme_bs5_page_title') }}
            {% endif %}
            {{ page.content }}
          </div>
          <div id="bottom-part">
            <div class="back-link">
              <a href="{{ url('<front>') }}"><i class="fas fa-home" aria-hidden="true"></i> {{ 'Back to'|t }}  {{ site_name }}</a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </main>

  {% if page.footer %}

    {% embed "@organisms/footer/footer.twig" with {
      content: page.footer
    } %}

    {% endembed %}
  {% endif %}
</div>

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

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