feedback-list-page.twig
2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<div class="wrap wpml-tf-feedback-list-page">
<h1>{{ strings.page_title }}</h1>
<h2>{{ strings.page_subtitle }}</h2>
<input type="hidden" name="ajax_action" value="{{ ajax_action }}">
<input type="hidden" name="ajax_nonce" value="{{ ajax_nonce }}">
<form method="GET">
<input type="hidden" name="page" value="{{ admin_page_hook }}">
{% for filter_name, filter_value in current_query.filters if filter_value %}
<input type="hidden" name="{{ filter_name }}" value="{{ filter_value }}">
{% endfor %}
{% for sorter_name, sorter_value in current_query.sorters if sorter_value %}
<input type="hidden" name="{{ sorter_name }}" value="{{ sorter_value }}">
{% endfor %}
<input type="hidden" name="nonce" value="{{ nonce }}">
<input type="submit" class="hidden">
{% include 'feedback-list-page-filters.twig' with { 'filters': page_filters.all_and_trash } %}
{% include 'feedback-list-page-filters.twig' with { 'filters': page_filters.statuses } %}
{% include 'feedback-list-page-filters.twig' with { 'filters': page_filters.languages } %}
{% include 'feedback-list-page-table-nav.twig' with { 'nav_location': 'top' } %}
<table class="js-wpml-tf-feedback-list-table wpml-tf-feedback-list-table widefat fixed"
data-confirm-trash="{{ strings.confirm.trash }}">
<thead>
{% include 'feedback-list-page-table-header.twig' with { 'header_id': 'thead' } %}
</thead>
<tbody>
{% if 0 < feedback_collection|length %}
{% for feedback in feedback_collection %}
{% include 'feedback-list-page-table-row.twig'
with {
'feedback': feedback,
'strings': strings.row_summary,
'has_admin_capabilities': has_admin_capabilities,
'is_in_trash': is_in_trash
} only
%}
{% if not is_in_trash %}
{% include 'feedback-list-page-table-row-details.twig'
with { 'feedback': feedback, 'strings': strings.row_details, 'has_admin_capabilities': has_admin_capabilities } only %}
{% endif %}
{% endfor %}
{% else %}
<tr>
<td colspan="6">{{ strings.no_feedback }}</td>
</tr>
{% endif %}
</tbody>
<tfoot>
{% include 'feedback-list-page-table-header.twig' with { 'header_id': 'tfoot' } %}
</tfoot>
</table>
{% include 'feedback-list-page-table-nav.twig' with { 'nav_location': 'bottom' } %}
</form>
</div>