first commit
This commit is contained in:
23
templates/Kernel/partials/_admin_page_header.twig
Normal file
23
templates/Kernel/partials/_admin_page_header.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="admin-page-header">
|
||||
<div class="admin-page-header__body">
|
||||
<h2 class="admin-page-header__title">{{ title }}</h2>
|
||||
{% if intro is defined and intro %}
|
||||
<p class="admin-page-header__intro">{{ intro }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if (primary_action_href is defined and primary_action_href and primary_action_label is defined and primary_action_label)
|
||||
or (secondary_action_href is defined and secondary_action_href and secondary_action_label is defined and secondary_action_label) %}
|
||||
<div class="admin-page-header__actions">
|
||||
{% if secondary_action_href is defined and secondary_action_href and secondary_action_label is defined and secondary_action_label %}
|
||||
<a href="{{ secondary_action_href }}" class="btn btn--secondary">{{ secondary_action_label }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if primary_action_href is defined and primary_action_href and primary_action_label is defined and primary_action_label %}
|
||||
<a href="{{ primary_action_href }}" class="btn btn--primary">{{ primary_action_label }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% include '@Kernel/partials/_admin_nav.twig' %}
|
||||
Reference in New Issue
Block a user