Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-28955: Adding pagination to URL Aliases in the URL alias tab
- Loading branch information
Showing
7 changed files
with
173 additions
and
63 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
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
10 changes: 10 additions & 0 deletions
10
src/bundle/Resources/views/content/tab/pagination.html.twig
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,10 @@ | ||
<div class="row justify-content-center align-items-center mb-2"> | ||
<span> | ||
{{ 'pagination.viewing'|trans({ | ||
'%viewing%': pager.currentPageResults|length, | ||
'%total%': pager.nbResults}, 'pagination')|desc('Viewing <strong>%viewing%</strong> out of <strong>%total%</strong> items')|raw }} | ||
</span> | ||
</div> | ||
<div class="row justify-content-center align-items-center mb-3"> | ||
{{ pagerfanta(pager, 'ez', paginatonParams) }} | ||
</div> |
36 changes: 36 additions & 0 deletions
36
src/bundle/Resources/views/content/tab/url/custom_urls_table.html.twig
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,36 @@ | ||
{% trans_default_domain 'content_url' %} | ||
{% form_theme form_custom_url_remove '@EzPlatformAdminUi/parts/form/flat_widgets.html.twig' %} | ||
|
||
{{ form_start(form_custom_url_remove, { | ||
'action': path('ezplatform.custom_url.remove'), | ||
'attr': { 'class': 'ez-toggle-btn-state', 'data-toggle-button-id': '#delete-custom-urls' } | ||
}) }} | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>{{ 'tab.urls.url'|trans|desc('URL') }}</th> | ||
<th>{{ 'tab.urls.language'|trans|desc('Language') }}</th> | ||
<th>{{ 'tab.urls.type'|trans|desc('Type') }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for custom_url in custom_urls_pager.currentPageResults %} | ||
<tr> | ||
<td class="ez-checkbox-cell">{{ form_widget(form_custom_url_remove.url_aliases[custom_url.id]) }}</td> | ||
<td>{{ custom_url.path }}</td> | ||
<td> | ||
{% for languageCode in custom_url.languageCodes %}{{ admin_ui_config.languages.mappings[languageCode].name }}<br>{% endfor %} | ||
</td> | ||
<td> | ||
{% if custom_url.forward %} | ||
{{ 'tab.urls.type.redirect'|trans|desc('Redirect') }} | ||
{% else %} | ||
{{ 'tab.urls.type.direct'|trans|desc('Direct') }} | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{{ form_end(form_custom_url_remove) }} |
21 changes: 21 additions & 0 deletions
21
src/bundle/Resources/views/content/tab/url/system_urls_table.html.twig
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,21 @@ | ||
{% trans_default_domain 'content_url' %} | ||
|
||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>{{ 'tab.urls.url'|trans|desc('URL') }}</th> | ||
<th>{{ 'tab.urls.language'|trans|desc('Language') }}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for system_url in system_urls_pager.currentPageResults %} | ||
<tr> | ||
<td>{{ system_url.path }}</td> | ||
<td> | ||
{% for languageCode in system_url.languageCodes %}{{ admin_ui_config.languages.mappings[languageCode].name }}<br>{% endfor %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
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
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