-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip twig block for table pages #3377
- Loading branch information
Showing
3 changed files
with
114 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% macro tableOpen(label) %} | ||
<div class="fr-table__wrapper"> | ||
<div class="fr-table__container"> | ||
<div class="fr-table__content"> | ||
<table class="sortable fr-cell--multiline" aria-label="{{ label }}" aria-describedby="desc-table"> | ||
{% endmacro %} | ||
|
||
{% macro tableEnd() %} | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends 'back/base_bo.html.twig' %} | ||
|
||
{% block content %} | ||
{% block contentTitle %}{% endblock %} | ||
{% block contentFilters %}{% endblock %} | ||
{% block contentDescription %}{% endblock %} | ||
|
||
<section class="fr-col-12 fr-table fr-pt-0 fr-px-5v"> | ||
<div class="fr-table__wrapper"> | ||
<div class="fr-table__container"> | ||
<div class="fr-table__content"> | ||
<table class="sortable fr-cell--multiline" aria-label="{{ tableLabel }}" aria-describedby="desc-table"> | ||
<thead> | ||
<tr> | ||
{% block contentTableHead %}{% endblock %} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% block contentTableBody %}{% endblock %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="fr-grid-row fr-mt-2v fr-grid-row--center"> | ||
{% import '_partials/macros.html.twig' as macros %} | ||
{{ macros.customPagination(pages, searchUser.page, 'back_user_index', searchUser.urlParams) }} | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters