-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
src/Kunstmaan/AdminListBundle/Resources/views/AdminListTwigExtension/limit.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{% if adminlist.configurator is instanceof('Kunstmaan\\AdminListBundle\\AdminList\\Configurator\\ChangeableLimitInterface') %} | ||
<div class="container-fluid"> | ||
<div class="dropdown pull-right"> | ||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{{ 'kuma_admin_list.limit'|trans({'%limit%': adminlist.configurator.limit}) }}</button> | ||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"> | ||
{{ 'kuma_admin_list.limit'|trans({'%limit%': adminlist.configurator.limit}) }} | ||
<i class="fa fa-caret-down"></i> | ||
</button> | ||
<ul class="dropdown-menu"> | ||
{% for option in adminlist.configurator.getLimitOptions() %} | ||
<li><a href="?limit={{ option }}">{{ option }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endif %} |