diff --git a/templates/web/prod/actions/Feedback/ListsMacros.html.twig b/templates/web/prod/actions/Feedback/ListsMacros.html.twig new file mode 100644 index 0000000000..c4058b5231 --- /dev/null +++ b/templates/web/prod/actions/Feedback/ListsMacros.html.twig @@ -0,0 +1,149 @@ +{% macro ResultTable(results, list, sort, ord) %} +{{ sort}} {{ ord }} la + + + + + + + + + + + + + + {% for user in results %} + + + + + + + + + + {% endfor %} + +
+ {% trans 'Login' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + + + {% trans 'First/Last Name' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + + + {% trans 'Company' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + + + {% trans 'E-Mail' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + + + {% trans 'Country' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + + + {% trans 'Last Template' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + + + {% trans 'Creation date' %} + + {{ ord == 'asc' ? '▼' : '▲' }} + + +
+ {{ user.get_login() }} + + + {{ user.get_display_name() }} + + {{ user.get_company() }} + + {{ user.get_email() }} + + {{ user.get_country() }} + + {{ user.get_login() }} + + {{ user.get_creation_date()|getDate }} +
+ + +{% endmacro %} \ No newline at end of file diff --git a/templates/web/prod/actions/Feedback/ResultTable.html.twig b/templates/web/prod/actions/Feedback/ResultTable.html.twig new file mode 100644 index 0000000000..b074621d28 --- /dev/null +++ b/templates/web/prod/actions/Feedback/ResultTable.html.twig @@ -0,0 +1,3 @@ +{% import 'prod/actions/Feedback/ListsMacros.html.twig' as ListsMacros %} + +{{ ListsMacros.ResultTable(results, list, sort, ord) }} \ No newline at end of file