View | Details | Raw Unified | Return to bug 35895
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-247 / +293 lines)
Lines 17-282 Link Here
17
    [% t("Koha") | html %]
17
    [% t("Koha") | html %]
18
[% END %]</title>
18
[% END %]</title>
19
[% INCLUDE 'doc-head-close.inc' %]
19
[% INCLUDE 'doc-head-close.inc' %]
20
<style>
20
[% FILTER collapse %]<style>
21
.setlabel {width: 6em; font-family: courier; background-color:#E8E8E8;}
21
    .setlabel {width: 6em; font-family: courier; background-color:#E8E8E8;}
22
.rejected { color: #CC0033; }
22
    .rejected { color: #CC0033; }
23
.approved { color: #339900; }
23
    .approved { color: #339900; }
24
.pending { color: #CCC; font-style: italic; }
24
    .pending { color: #CCC; font-style: italic; }
25
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
25
    tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
26
</style>
26
</style>[% END %]
27
</head>
27
</head>
28
28
29
<body id="tags_review" class="tools">
29
<body id="tags_review" class="tools">
30
[% WRAPPER 'header.inc' %]
30
    [% WRAPPER 'header.inc' %]
31
    [% INCLUDE 'cat-search.inc' %]
31
        [% INCLUDE 'cat-search.inc' %]
32
[% END %]
32
    [% END %]
33
33
34
[% WRAPPER 'sub-header.inc' %]
34
    [% WRAPPER 'sub-header.inc' %]
35
    [% WRAPPER breadcrumbs %]
35
        [% WRAPPER breadcrumbs %]
36
        [% WRAPPER breadcrumb_item %]
37
            <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
38
        [% END %]
39
        [% IF ( filter_approved_ok || filter_approved_pending || filter_approved_rej ) %]
40
            [% WRAPPER breadcrumb_item %]
36
            [% WRAPPER breadcrumb_item %]
41
                <a href="/cgi-bin/koha/tags/review.pl">Tags</a>
37
                <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
42
            [% END %]
43
        [% ELSE %]
44
            [% WRAPPER breadcrumb_item bc_active= 1 %]
45
                <span>Tags</span>
46
            [% END %]
38
            [% END %]
47
        [% END %]
39
            [% IF ( filter_approved_ok || filter_approved_pending || filter_approved_rej ) %]
48
        [% IF ( filter_approved_ok ) %]
40
                [% WRAPPER breadcrumb_item %]
49
            [% WRAPPER breadcrumb_item bc_active= 1 %]
41
                    <a href="/cgi-bin/koha/tags/review.pl">Tags</a>
50
                [% t("Approved") | html %]
42
                [% END %]
43
            [% ELSE %]
44
                [% WRAPPER breadcrumb_item bc_active= 1 %]
45
                    <span>Tags</span>
46
                [% END %]
51
            [% END %]
47
            [% END %]
52
        [% ELSIF ( filter_approved_pending ) %]
48
            [% IF ( filter_approved_ok ) %]
53
            [% WRAPPER breadcrumb_item bc_active= 1 %]
49
                [% WRAPPER breadcrumb_item bc_active= 1 %]
54
                [% t("Pending") | html %]
50
                    [% t("Approved") | html %]
51
                [% END %]
52
            [% ELSIF ( filter_approved_pending ) %]
53
                [% WRAPPER breadcrumb_item bc_active= 1 %]
54
                    [% t("Pending") | html %]
55
                [% END %]
56
            [% ELSIF ( filter_approved_rej ) %]
57
                [% WRAPPER breadcrumb_item bc_active= 1 %]
58
                    [% t("Rejected") | html %]
59
                [% END %]
55
            [% END %]
60
            [% END %]
56
        [% ELSIF ( filter_approved_rej ) %]
61
        [% END #/ WRAPPER breadcrumbs %]
57
            [% WRAPPER breadcrumb_item bc_active= 1 %]
62
    [% END #/ WRAPPER sub-header.inc %]
58
                [% t("Rejected") | html %]
59
            [% END %]
60
        [% END %]
61
    [% END #/ WRAPPER breadcrumbs %]
62
[% END #/ WRAPPER sub-header.inc %]
63
63
64
<div class="main container-fluid">
64
    <div class="main container-fluid">
65
    <div class="row">
65
        <div class="row">
66
        <div class="col-sm-12">
66
            <div class="col-sm-12">
67
            <main>
67
                <main>
68
                    <div class="row">
69
                        <div class="col-sm-8 col-sm-push-2">
70
                            <h1>Tags</h1>
71
                            <form method="post" action="/cgi-bin/koha/tags/review.pl">
72
                                <h4>
73
                                    [% IF ( filter_approved_all ) %]<span>Displaying all terms</span>[% END %]
74
                                    [% IF ( filter_approved_ok ) %]<span>Displaying approved terms</span>[% END %]
75
                                    [% IF ( filter_approved_pending ) %]<span>Displaying pending terms</span>[% END %]
76
                                    [% IF ( filter_approved_rej ) %]<span>Displaying rejected terms</span>[% END %]
77
                                </h4>
68
78
69
<div class="row">
79
                                [% IF ( op_count ) %]
70
<div class="col-sm-8 col-sm-push-2">
80
                                    <div class="dialog message" id="main_status">
71
<h1>Tags</h1>
81
                                        [% IF ( op == 'approve' ) %]   <span>Approved</span>
72
<form method="post" action="/cgi-bin/koha/tags/review.pl">
82
                                        [% ELSIF ( op == 'reject' ) %] <span>Rejected</span>
73
    <h4>
83
                                        [% ELSIF ( op == 'test' ) %]   <span>Tested</span>
74
    [% IF ( filter_approved_all ) %]<span>Displaying all terms</span>[% END %]
84
                                        [% ELSE %]<span>Unknown operation ([% op | html %]) on</span>
75
    [% IF ( filter_approved_ok ) %]<span>Displaying approved terms</span>[% END %]
85
                                        [% END %]
76
    [% IF ( filter_approved_pending ) %]<span>Displaying pending terms</span>[% END %]
86
                                        <span>[% op_count | html %] Term(s).</span>
77
    [% IF ( filter_approved_rej ) %]<span>Displaying rejected terms</span>[% END %]
87
                                    </div>
78
    </h4>
88
                                [% END %]
89
                                [% IF ( message_loop ) %]
90
                                    <div class="dialog alert" id="main_error">
91
                                        [% FOREACH message_loo IN message_loop %]
92
                                            [% IF ( message_loo.failed_ok ) %]
93
                                                <strong>Error: </strong>
94
                                                <span>Failed to approve term ([% message_loo.failed_ok | html %]).</span>
95
                                            [% ELSIF ( message_loo.failed_rej ) %]
96
                                                <strong>Error: </strong>
97
                                                <span>Failed to reject term ([% message_loo.failed_rej | html %]).</span>
98
                                            [% ELSIF ( message_loo.approver ) %]
99
                                                <span>No match for user ([% message_loo.approver | html %]). FILTER REQUIRES BORROWERNUMBER (not name).</span>
100
                                            [% ELSIF ( message_loo.approved_by ) %]
101
                                                <strong>Error: </strong>
102
                                                <span>No match for borrowernumber ([% message_loo.approved_by | html %]).</span>
103
                                            [% ELSIF ( message_loo.op_zero ) %]
104
                                                <strong>Error: </strong>
105
                                                <span>The root koha user in your KOHA_CONF file (default: kohaadmin) is not a valid tag moderator. These actions are logged by borrowernumber, so the moderator must exist in your borrowers table. Please log in as a different authorized staff user to moderate tags.</span>
106
                                            [% ELSE %]
107
                                                <span>Unrecognized error!</span>
108
                                            [% END %]
109
                                            <br />
110
                                        [% END %]
111
                                    </div>
112
                                [% END %]
79
113
80
  [% IF ( op_count ) %]
114
                                [% IF ( pagination_bar ) %]
81
  <div class="dialog message" id="main_status">
115
                                    <div class="pages" id="pagination_top">
82
      [% IF ( op == 'approve' ) %]   <span>Approved</span>
116
                                        [% pagination_bar | $raw %]
83
      [% ELSIF ( op == 'reject' ) %] <span>Rejected</span>
117
                                    </div>
84
      [% ELSIF ( op == 'test' ) %]   <span>Tested</span>
118
                                [% END %]
85
      [% ELSE %]<span>Unknown operation ([% op | html %]) on</span>
119
86
      [% END %]
120
                                [% IF ( tagloop ) %]
87
      <span>[% op_count | html %] Term(s).</span>
121
                                    <div class="page-section">
88
  </div>
122
                                        <p class="check"></p>
89
  [% END %]
123
                                        <table id="tagst">
90
  [% IF ( message_loop ) %]
124
                                            <thead>
91
  <div class="dialog alert" id="main_error">
125
                                                <tr>
92
    [% FOREACH message_loo IN message_loop %]
126
                                                    <th class="NoSort">&nbsp;</th>
93
        [% IF ( message_loo.failed_ok ) %]<strong>Error: </strong><span>Failed to approve term ([% message_loo.failed_ok | html %]).</span>
127
                                                    <th>Status</th>
94
        [% ELSIF ( message_loo.failed_rej ) %]<strong>Error: </strong><span>Failed to reject term ([% message_loo.failed_rej | html %]).</span>
128
                                                    <th>Term</th>
95
        [% ELSIF ( message_loo.approver ) %]<span>No match for user ([% message_loo.approver | html %]). FILTER REQUIRES BORROWERNUMBER (not name).</span>
129
                                                    <th>Weight</th>
96
        [% ELSIF ( message_loo.approved_by ) %]<strong>Error: </strong><span>No match for borrowernumber ([% message_loo.approved_by | html %]).</span>
130
                                                        <th class="NoSort noExport">Actions</th>
97
        [% ELSIF ( message_loo.op_zero ) %]<strong>Error: </strong>
131
                                                        [% UNLESS ( filter_approved_pending ) %]<th>Reviewer</th>[% END %]
98
            <span>The root koha user in your KOHA_CONF file
132
                                                    <th>Date</th>
99
            (default: kohaadmin) is not a valid tag moderator. These actions are logged
133
                                                </tr>
100
            by borrowernumber, so the moderator must exist in your borrowers table.
134
                                            </thead>
101
            Please log in as a different authorized staff user to moderate tags.</span>
135
                                            <tbody>
102
        [% ELSE %]<span>Unrecognized error!</span>
136
                                                [% FOREACH tagloo IN tagloop %]
103
        [% END %]
137
                                                    <tr>
104
            <br />
138
                                                        <td>
105
        [% END %]
139
                                                            [% IF ( tagloo.approved == 0 ) %]
106
  </div>
140
                                                                <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="pending" />
107
  [% END %]
141
                                                            [% ELSIF ( tagloo.approved == 1 ) %]
108
  [% IF ( pagination_bar ) %]
142
                                                                <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="approved" />
109
  <div class="pages" id="pagination_top">
143
                                                            [% ELSE %]
110
    [% pagination_bar | $raw %]
144
                                                                <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="rejected" />
111
  </div>
145
                                                            [% END %]
112
  [% END %]
146
                                                        </td>
113
  [% IF ( tagloop ) %]
147
                                                        <td>
114
    <div class="page-section">
148
                                                            [% IF ( tagloo.approved == -1 ) %]
115
        <p class="check"></p>
149
                                                                <label for="checkbox[% offset + loop.count | html %]">
116
        <table id="tagst">
150
                                                                    <span class="rejected status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Rejected') | html %]</span>
117
            <thead>
151
                                                                </label>
118
                <tr>
152
                                                            [% ELSIF ( tagloo.approved == 1 ) %]
119
                    <th class="NoSort">&nbsp;</th>
153
                                                                <label for="checkbox[% offset + loop.count | html %]">
120
                <th>Status</th>
154
                                                                    <span class="approved status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Approved') | html %]</span>
121
                <th>Term</th>
155
                                                                </label>
122
                <th>Weight</th>
156
                                                            [% ELSE %]
123
                    <th class="NoSort noExport">Actions</th>
157
                                                                <label for="checkbox[% offset + loop.count | html %]">
124
                    [% UNLESS ( filter_approved_pending ) %]<th>Reviewer</th>[% END %]
158
                                                                    <span class="pending status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Pending') | html %]</span>
125
                <th>Date</th>
159
                                                                </label>
126
            </tr>
160
                                                            [% END %]
127
            </thead>
161
                                                        </td>
128
            <tbody>
162
                                                        <td>
129
            [% FOREACH tagloo IN tagloop %]
163
                                                            <a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term | html %]</a>
130
                <tr>
164
                                                        </td>
131
                    <td>
165
                                                        <td>
132
                        [% IF ( tagloo.approved == 0 ) %]
166
                                                            [% tagloo.weight_total | html %]
133
                            <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="pending" />
167
                                                        </td>
134
                        [% ELSIF ( tagloo.approved == 1 ) %]
168
                                                        [% IF ( tagloo.approved ) %]
135
                            <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="approved" />
169
                                                            <td class="actions">
136
                        [% ELSE %]
170
                                                                <span class="ajax_buttons" style="visibility:hidden">
137
                            <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="rejected" />
171
                                                                    [% IF ( tagloo.approved == -1 ) %]
138
                        [% END %]
172
                                                                        <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
139
                    </td>
173
                                                                        <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-times"></i> [% tp('Tags (single)', 'Rejected') | html %]</button>
140
                    <td>
174
                                                                    [% ELSE %]
141
                        [% IF ( tagloo.approved == -1 ) %]
175
                                                                        <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> [% tp('Tags (single)', 'Approved') | html %]</button>
142
                            <label for="checkbox[% offset + loop.count | html %]">
176
                                                                        <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button>
143
                                <span class="rejected status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Rejected') | html %]</span>
177
                                                                    [% END %]
144
                            </label>
178
                                                                </span>
145
                        [% ELSIF ( tagloo.approved == 1 ) %]
179
                                                            </td>
146
                            <label for="checkbox[% offset + loop.count | html %]">
180
                                                            <td>
147
                                <span class="approved status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Approved') | html %]</span>
181
                                                                [% IF ( tagloo.approved_by_name ) %]
148
                            </label>
182
                                                                    <a href="/cgi-bin/koha/tags/review.pl?approved_by=[% tagloo.approved_by | uri %]&amp;approved=all">[% tagloo.approved_by_name | html %]</a>
149
                        [% ELSE %]
183
                                                                [% ELSE %]
150
                            <label for="checkbox[% offset + loop.count | html %]">
184
                                                                    &nbsp;
151
                                <span class="pending status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Pending') | html %]</span>
185
                                                                [% END %]
152
                            </label>
186
                                                            </td>
153
                        [% END %]
187
                                                        [% ELSE %]
154
                    </td>
188
                                                            <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
155
                    <td><a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term | html %]</a>
189
                                                                <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
156
                    </td>
190
                                                                <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button>
157
                    <td>[% tagloo.weight_total | html %]
191
                                                                </span>
158
                    </td>
192
                                                            </td>
159
                    [% IF ( tagloo.approved ) %]
193
                                                            [% UNLESS ( filter_approved_pending ) %]
160
                    <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
194
                                                                <td>&nbsp;</td>
161
                        [% IF ( tagloo.approved == -1 ) %]
195
                                                            [% END %]
162
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
196
                                                        [% END %]
163
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-times"></i> [% tp('Tags (single)', 'Rejected') | html %]</button>
197
                                                        <td data-order="[% tagloo.date_approved | html %]">
164
                        [% ELSE %]
198
                                                            [% tagloo.date_approved | $KohaDates %]
165
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> [% tp('Tags (single)', 'Approved') | html %]</button>
199
                                                        </td>
166
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button>
200
                                                    </tr>
167
                        [% END %]
201
                                                [% END %]
168
                        </span>
202
                                            </tbody>
169
                    </td>
203
                                        </table>
170
                    <td>[% IF ( tagloo.approved_by_name ) %]<a href="/cgi-bin/koha/tags/review.pl?approved_by=[% tagloo.approved_by | uri %]&amp;approved=all">[% tagloo.approved_by_name | html %]</a>[% ELSE %]&nbsp;[% END %]
204
                                    </div> <!-- /.page-section -->
171
                    </td>
205
                                [% END %]
172
                    [% ELSE %]
206
173
                    <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
207
                                [% IF ( tagloop ) %]
174
                        <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
208
                                    <fieldset class="action">
175
                        <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button>
209
                                        <button type="submit" value="Approve" class="btn btn-default" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button>
176
                        </span>
210
                                        <button type="submit" value="Reject" class="btn btn-default"  id="reject_button" name="op-reject"><i class="fa fa-times"></i> Reject</button>
177
                    </td>
211
                                    </fieldset>
178
                    [% UNLESS ( filter_approved_pending ) %]<td>&nbsp;</td>[% END %]
212
                                [% END %]
179
                    [% END %]
213
                            </form>
180
                    <td data-order="[% tagloo.date_approved | html %]">
214
                        </div>
181
                        [% tagloo.date_approved | $KohaDates %]
215
                        <div class="col-sm-2 col-sm-push-2">
182
                    </td>
216
                            <aside>
183
                </tr>
217
                                <fieldset class="brief">
184
            [% END %]
218
                                    <h4>Terms summary</h4>
185
            </tbody>
219
                                    <ul>
186
        </table>
220
                                        <li>
187
    </div> <!-- /.page-section -->
221
                                            <a href="/cgi-bin/koha/tags/review.pl?approved=1">[% tp('Tags (multiple)', 'Approved') | html %]</a>:
188
  [% END %]
222
                                            <span id="terms_summary_approved_count">[% approved_count | html %]</span>
189
    [% IF ( tagloop ) %]<fieldset class="action">
223
                                            </li>
190
   <button type="submit" value="Approve" class="btn btn-default" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button>
224
                                        <li>
191
   <button type="submit" value="Reject" class="btn btn-default"  id="reject_button" name="op-reject"><i class="fa fa-times"></i> Reject</button>
225
                                            <a href="/cgi-bin/koha/tags/review.pl?approved=-1">[% tp('Tags (multiple)', 'Rejected') | html %]</a>:
192
  </fieldset>[% END %]
226
                                            <span id="terms_summary_rejected_count">[% rejected_count | html %]</span>
193
  </form>
227
                                        </li>
194
</div>
228
                                        <li>
195
<div class="col-sm-2 col-sm-push-2">
229
                                            <a href="/cgi-bin/koha/tags/review.pl?approved=0">[% tp('Tags (multiple)', 'Pending') | html %]</a>:
196
    <aside>
230
                                            <span id="terms_summary_unapproved_count">[% unapproved_count | html %]</span>
197
 <fieldset class="brief">
231
                                        </li>
198
  <h4>Terms summary</h4>
232
                                        <li>
199
  <ul>
233
                                            <a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>:
200
    <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">[% tp('Tags (multiple)', 'Approved') | html %]</a>:
234
                                            <span id="terms_summary_approved_total">[% approved_total | html %]</span>
201
        <span id="terms_summary_approved_count">[% approved_count | html %]</span>
235
                                        </li>
202
        </li>
236
                                    </ul>
203
    <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">[% tp('Tags (multiple)', 'Rejected') | html %]</a>:
237
                                    <span id="terms_summary_status">&nbsp;</span>
204
        <span id="terms_summary_rejected_count">[% rejected_count | html %]</span>
238
                                </fieldset>
205
    </li>
239
206
    <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">[% tp('Tags (multiple)', 'Pending') | html %]</a>:
240
                                <fieldset class="brief">
207
    <span id="terms_summary_unapproved_count">[% unapproved_count | html %]</span>
241
                                    <h4>Check lists</h4>
208
    </li>
242
                                    <div class="description">Enter a word or phrase to check against approved/rejected lists: </div>
209
    <li><a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>:
243
                                    <form method="post" action="/cgi-bin/koha/tags/review.pl">
210
        <span id="terms_summary_approved_total">[% approved_total | html %]</span>
244
                                        <input type="text" size="14" name="test" id="test" />
211
    </li>
245
                                        <fieldset class="action">
212
  </ul>
246
                                            <button type="submit" value="Test" class="approval_btn btn btn-default btn-sm" id="test_button" name="op-test"><i class="fas fa-check-square" aria-hidden="true"></i> Test</button>
213
  <span id="terms_summary_status">&nbsp;</span>
247
                                        </fieldset>
214
  </fieldset>
248
                                        <div id="verdict">
215
  <fieldset class="brief">
249
                                            [% IF ( test_term ) %]
216
   <h4>Check lists</h4>
250
                                                [% IF ( verdict_ok ) %]
217
   <div class="description">Enter a word or phrase to check against approved/rejected lists: </div>
251
                                                    <span>&quot;[% test_term | html %]&quot; is permitted.</span>
218
   <form method="post" action="/cgi-bin/koha/tags/review.pl">
252
                                                [% ELSIF ( verdict_rej ) %]
219
   <input type="text" size="14" name="test" id="test" />
253
                                                    <span>&quot;[% test_term | html %]&quot; is prohibited.</span>
220
   <fieldset class="action"><button type="submit" value="Test" class="approval_btn btn btn-default btn-sm" id="test_button" name="op-test"><i class="fas fa-check-square" aria-hidden="true"></i> Test</button></fieldset>
254
                                                [% ELSIF ( verdict_indeterminate ) %]
221
   <div id="verdict">
255
                                                    <span>&quot;[% test_term | html %]&quot; is neither permitted nor prohibited.</span>
222
    [% IF ( test_term ) %]
256
                                                [% END %]
223
    [% IF ( verdict_ok ) %]
257
                                            [% END %]
224
        <span>&quot;[% test_term | html %]&quot; is permitted.</span>
258
                                        </div>
225
    [% ELSIF ( verdict_rej ) %]
259
                                    </form>
226
        <span>&quot;[% test_term | html %]&quot; is prohibited.</span>
260
                                </fieldset>
227
    [% ELSIF ( verdict_indeterminate ) %]
261
                            </aside>
228
        <span>&quot;[% test_term | html %]&quot; is neither permitted nor prohibited.</span>
262
                        </div>
229
    [% END %]
263
230
    [% END %]
264
                        <div class="col-sm-2 col-sm-pull-10">
231
   </div>
265
                            <aside>
232
   </form>
266
                                <form method="post" action="/cgi-bin/koha/tags/review.pl">
233
  </fieldset>
267
                                    <fieldset class="brief">
234
    </aside>
268
                                        <h4>Filters</h4>
235
</div>
269
                                        <ol>
236
<div class="col-sm-2 col-sm-pull-10">
270
                                            <li>
237
    <aside>
271
                                                <label for="tag">Term:</label>
238
<form method="post" action="/cgi-bin/koha/tags/review.pl">
272
                                                <input type="text" name="tag" id="tag" value="[% filter_tag | html %]" />
239
<fieldset class="brief">
273
                                            </li>
240
  <h4>Filters</h4>
274
                                            <li>
241
	<ol>
275
                                                <label for="approved">Status:</label>
242
	    <li><label for="tag">Term:</label> <input type="text" name="tag" id="tag" value="[% filter_tag | html %]" />
276
                                                <select name="approved" id="approved">
243
	    </li>
277
                                                    [% IF ( filter_approved_all ) %]
244
	    <li><label for="approved">Status:</label>
278
                                                        <option selected="selected" value="all">all</option>
245
            <select name="approved" id="approved">
279
                                                    [% ELSE %]
246
            [% IF ( filter_approved_all ) %]<option selected="selected" value="all">all</option>
280
                                                        <option value="all">all</option>
247
            [% ELSE %]<option value="all">all</option>[% END %]
281
                                                    [% END %]
248
            [% IF ( filter_approved_ok ) %]<option selected="selected" value="1">approved</option>
282
                                                    [% IF ( filter_approved_ok ) %]
249
            [% ELSE %]<option value="1">approved</option>[% END %]
283
                                                        <option selected="selected" value="1">approved</option>
250
            [% IF ( filter_approved_pending ) %]<option selected="selected" value="0">pending</option>
284
                                                    [% ELSE %]
251
            [% ELSE %]<option value="0">pending</option>[% END %]
285
                                                        <option value="1">approved</option>
252
            [% IF ( filter_approved_rej ) %]<option selected="selected" value="-1">rejected</option>
286
                                                    [% END %]
253
            [% ELSE %]<option value="-1">rejected</option>[% END %]
287
                                                    [% IF ( filter_approved_pending ) %]
254
			</select>
288
                                                        <option selected="selected" value="0">pending</option>
255
	    </li>
289
                                                    [% ELSE %]
256
	    <li><label for="approver">Reviewer:</label> <input type="text" name="approver" id="approver" value="[% filter_approver | html %]" />
290
                                                        <option value="0">pending</option>
257
	    </li>
291
                                                    [% END %]
258
	    <li>
292
                                                    [% IF ( filter_approved_rej ) %]
259
			<label for="from">Date: from </label>
293
                                                        <option selected="selected" value="-1">rejected</option>
260
            <input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-date_to="to" />
294
                                                    [% ELSE %]
261
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
295
                                                        <option value="-1">rejected</option>
296
                                                    [% END %]
297
                                                </select>
298
                                            </li>
299
                                            <li>
300
                                                <label for="approver">Reviewer:</label>
301
                                                <input type="text" name="approver" id="approver" value="[% filter_approver | html %]" />
302
                                            </li>
303
                                            <li>
304
                                                <label for="from">Date: from </label>
305
                                                <input type="text" size="10" id="from" name="from" value="[% filter_date_approved_from | html %]" class="flatpickr" data-date_to="to" />
306
                                                <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
262
307
263
			<label for="to">...to </label>
308
                                                <label for="to">...to </label>
264
            <input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" />
309
                                                <input type="text" size="10" id="to" name="to" value="[% filter_date_approved_to | html %]" class="flatpickr" />
265
			<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
310
                                                <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
266
	    </li>
311
                                            </li>
267
  </ol>
312
                                        </ol>
268
    <fieldset class="action"><button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button></fieldset>
313
                                        <fieldset class="action">
269
</fieldset>
314
                                            <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button>
270
</form>
315
                                        </fieldset>
316
                                    </fieldset>
317
                                </form>
271
318
272
[% INCLUDE 'tools-menu.inc' %]
319
                                [% INCLUDE 'tools-menu.inc' %]
273
320
274
</aside>
321
                            </aside>
275
</div>
322
                        </div>
276
</div>
323
                    </div>
277
</main>
324
                </main>
278
</div>
325
            </div>
279
</div>
326
        </div>
280
327
281
[% MACRO jsinclude BLOCK %]
328
[% MACRO jsinclude BLOCK %]
282
    [% INCLUDE 'datatables.inc' %]
329
    [% INCLUDE 'datatables.inc' %]
283
- 

Return to bug 35895