Lines 74-84
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
74 |
|
74 |
|
75 |
var success_test_call = function() { |
75 |
var success_test_call = function() { |
76 |
$('#test_button').prop('disabled', false); |
76 |
$('#test_button').prop('disabled', false); |
77 |
$('#test_button').attr("value",_("Test")); |
77 |
$('#test_button').html("<i class='fa fa-check-square-o' aria-hidden='true'></i>" +_(" Test")); |
78 |
}; |
78 |
}; |
79 |
$(document).ready(function() { |
79 |
$(document).ready(function() { |
80 |
$('.ajax_buttons' ).css({visibility:"visible"}); |
80 |
$('.ajax_buttons' ).css({visibility:"visible"}); |
81 |
$("p.check").html("<strong>"+_("Select:")+" <\/strong><a id=\"CheckAll\" href=\"/cgi-bin/koha/tags/review.pl\">"+_("All")+"<\/a> <a id=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\">"+_("Pending")+"<\/a> <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\">"+_("None")+"<\/a>"); |
81 |
$("p.check").html("<div id=\"searchheader\"><a id=\"CheckAll\" href=\"/cgi-bin/koha/tags/review.pl\"><i class=\"fa fa-check\"><\/i>"+_(" Select all")+"<\/a> | <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\"><i class=\"fa fa-remove\"><\/i>"+_(" Clear all")+"<\/a> | <a id=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\"> "+_("Select all pending")+"<\/a><\/div>"); |
82 |
$("#CheckAll").click(function(){ |
82 |
$("#CheckAll").click(function(){ |
83 |
$(".checkboxed").checkCheckboxes(); |
83 |
$(".checkboxed").checkCheckboxes(); |
84 |
return false; |
84 |
return false; |
Lines 96-122
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
96 |
// window.alert(_("Click detected on ") + event.target + ": " + $(event.target).html); |
96 |
// window.alert(_("Click detected on ") + event.target + ": " + $(event.target).html); |
97 |
if ($(event.target).is('.ok')) { |
97 |
if ($(event.target).is('.ok')) { |
98 |
$.ajax({ |
98 |
$.ajax({ |
99 |
"data": {ok: $(event.target).attr("title")}, |
99 |
data: {ok: $(event.target).attr("title")}, |
100 |
"success": count_approve // success_approve |
100 |
success: count_approve // success_approve |
101 |
}); |
101 |
}); |
102 |
$(event.target).next(".rej").prop('disabled', false).attr("value",_("Reject")).css("color","#000"); |
102 |
$(event.target).next(".rej").prop('disabled', false).css("color","#000"); |
103 |
$(event.target).attr( "value",_("Approved")).prop('disabled', true).css("color","#666"); |
103 |
$(event.target).next(".rej").html("<i class='fa fa-remove'></i>" + _(" Reject")); |
|
|
104 |
$(event.target).prop('disabled', true).css("color","#666"); |
105 |
$(event.target).html("<i class='fa fa-check'></i>" + _(" Approved")); |
106 |
var getelement = $(event.target).attr("title"); |
107 |
var gettitle = "span[data-title|=" + getelement + "]"; |
108 |
$(gettitle).text(_("Approved")); |
109 |
if ($(gettitle).attr("class") == "pending"){ |
110 |
$(gettitle).toggleClass("pending approved"); |
111 |
} else { |
112 |
$(gettitle).toggleClass("rejected approved"); |
113 |
} |
104 |
return false; // cancel submit |
114 |
return false; // cancel submit |
105 |
} |
115 |
} |
106 |
if ($(event.target).is('.rej')) { |
116 |
if ($(event.target).is('.rej')) { |
107 |
$.ajax({ |
117 |
$.ajax({ |
108 |
"data": {rej: $(event.target).attr("title")}, |
118 |
data: {rej: $(event.target).attr("title")}, |
109 |
"success": count_reject // success_reject |
119 |
success: count_reject // success_reject |
110 |
}); |
120 |
}); |
111 |
$(event.target).prev(".ok").prop('disabled', false).attr("value",_("Approve")).css("color","#000"); |
121 |
$(event.target).prev(".ok").prop('disabled', false).css("color","#000"); |
112 |
$(event.target).attr( "value",_("Rejected")).prop('disabled', true).css("color","#666"); |
122 |
$(event.target).prev(".ok").html("<i class='fa fa-check'></i>" + _(" Approve")); |
|
|
123 |
$(event.target).prop('disabled', true).css("color","#666"); |
124 |
$(event.target).html("<i class='fa fa-remove'></i>" + _(" Rejected")); |
125 |
var getelement = $(event.target).attr("title"); |
126 |
var gettitle = "span[data-title|=" + getelement + "]"; |
127 |
$(gettitle).text(_("Rejected")); |
128 |
if ($(gettitle).attr("class") == "pending"){ |
129 |
$(gettitle).toggleClass("pending rejected"); |
130 |
} else { |
131 |
$(gettitle).toggleClass("approved rejected"); |
132 |
} |
113 |
return false; // cancel submit |
133 |
return false; // cancel submit |
114 |
} |
134 |
} |
115 |
if ($(event.target).is('#test_button')) { |
135 |
if ($(event.target).is('#test_button')) { |
116 |
$(event.target).attr( "value",_("Testing...")).prop('disabled', true); |
136 |
$(event.target).text(_("Testing...")).prop('disabled', true); |
117 |
$.ajax({ |
137 |
$.ajax({ |
118 |
"data": {test: $('#test').attr("value")}, |
138 |
data: {test: $('#test').attr("value")}, |
119 |
"success": success_test_call // success_reject |
139 |
success: success_test_call // success_reject |
120 |
}); |
140 |
}); |
121 |
return false; // cancel submit |
141 |
return false; // cancel submit |
122 |
} |
142 |
} |
Lines 239-249
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
239 |
</td> |
259 |
</td> |
240 |
<td> |
260 |
<td> |
241 |
[% IF ( tagloo.approved == -1 ) %] |
261 |
[% IF ( tagloo.approved == -1 ) %] |
242 |
<span class="rejected">Rejected</span> |
262 |
<span class="rejected" data-title="[% tagloo.term %]">Rejected</span> |
243 |
[% ELSIF ( tagloo.approved == 1 ) %] |
263 |
[% ELSIF ( tagloo.approved == 1 ) %] |
244 |
<span class="approved">Approved</span> |
264 |
<span class="approved" data-title="[% tagloo.term %]">Approved</span> |
245 |
[% ELSE %] |
265 |
[% ELSE %] |
246 |
<span class="pending">Pending</span> |
266 |
<span class="pending" data-title="[% tagloo.term %]">Pending</span> |
247 |
[% END %] |
267 |
[% END %] |
248 |
</td> |
268 |
</td> |
249 |
<td><a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term %]</a> |
269 |
<td><a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term %]</a> |
Lines 253-263
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
253 |
[% IF ( tagloo.approved ) %] |
273 |
[% IF ( tagloo.approved ) %] |
254 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
274 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
255 |
[% IF ( tagloo.approved == -1 ) %] |
275 |
[% IF ( tagloo.approved == -1 ) %] |
256 |
<input class="ok" type="submit" title="[% tagloo.term %]" value="Approve" name="approve" /> |
276 |
<button class="ok btn btn-mini" type="submit" title="[% tagloo.term %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> |
257 |
<input class="rej" disabled="disabled" type="submit" title="[% tagloo.term %]" value="Rejected" name="reject" /> |
277 |
<button class="rej btn btn-mini" disabled="disabled" type="submit" title="[% tagloo.term %]" value="Rejected" name="reject"><i class="fa fa-remove"></i> Rejected</button> |
258 |
[% ELSE %] |
278 |
[% ELSE %] |
259 |
<input class="ok" disabled="disabled" type="submit" title="[% tagloo.term %]" value="Approved" name="approve" /> |
279 |
<button class="ok btn btn-mini" disabled="disabled" type="submit" title="[% tagloo.term %]" value="Approved" name="approve"><i class="fa fa-check"></i> Approved</button> |
260 |
<input class="rej" type="submit" title="[% tagloo.term %]" value="Reject" name="reject" /> |
280 |
<button class="rej btn btn-mini" type="submit" title="[% tagloo.term %]" value="Reject" name="reject"><i class="fa fa-remove"></i> Reject</button> |
261 |
[% END %] |
281 |
[% END %] |
262 |
</span> |
282 |
</span> |
263 |
</td> |
283 |
</td> |
Lines 265-272
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
265 |
</td> |
285 |
</td> |
266 |
[% ELSE %] |
286 |
[% ELSE %] |
267 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
287 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
268 |
<input class="ok" type="submit" title="[% tagloo.term %]" value="Approve" name="approve" /> |
288 |
<button class="ok btn btn-mini" type="submit" title="[% tagloo.term %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> |
269 |
<input class="rej" type="submit" title="[% tagloo.term %]" value="Reject" name="reject" /> |
289 |
<button class="rej btn btn-mini" type="submit" title="[% tagloo.term %]" value="Reject" name="reject"><i class="fa fa-remove"></i> Reject</button> |
270 |
</span> |
290 |
</span> |
271 |
</td> |
291 |
</td> |
272 |
[% UNLESS ( filter_approved_pending ) %]<td> </td>[% END %] |
292 |
[% UNLESS ( filter_approved_pending ) %]<td> </td>[% END %] |
Lines 280-287
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
280 |
</table> |
300 |
</table> |
281 |
[% END %] |
301 |
[% END %] |
282 |
[% IF ( tagloop ) %]<fieldset class="action"> |
302 |
[% IF ( tagloop ) %]<fieldset class="action"> |
283 |
<input type="submit" value="Approve" id="approve_button" name="op-approve" /> |
303 |
<button type="submit" value="Approve" class="btn btn-small" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button> |
284 |
<input type="submit" value="Reject" id="reject_button" name="op-reject" /> |
304 |
<button type="submit" value="Reject" class="btn btn-small" id="reject_button" name="op-reject"><i class="fa fa-remove"></i> Reject</button> |
285 |
</fieldset>[% END %] |
305 |
</fieldset>[% END %] |
286 |
</form> |
306 |
</form> |
287 |
</div> |
307 |
</div> |
Lines 289-306
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
289 |
<fieldset class="brief"> |
309 |
<fieldset class="brief"> |
290 |
<h4>Terms summary</h4> |
310 |
<h4>Terms summary</h4> |
291 |
<ul> |
311 |
<ul> |
292 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved</a>: |
312 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved</a>: |
293 |
<span id="terms_summary_approved_count">[% approved_count %]</span> |
313 |
<span id="terms_summary_approved_count">[% approved_count %]</span> |
294 |
</li> |
314 |
</li> |
295 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected</a>: |
315 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected</a>: |
296 |
<span id="terms_summary_rejected_count">[% rejected_count %]</span> |
316 |
<span id="terms_summary_rejected_count">[% rejected_count %]</span> |
297 |
</li> |
317 |
</li> |
298 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending</a>: |
318 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending</a>: |
299 |
<span id="terms_summary_unapproved_count">[% unapproved_count %]</span> |
319 |
<span id="terms_summary_unapproved_count">[% unapproved_count %]</span> |
300 |
</li> |
320 |
</li> |
301 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>: |
321 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>: |
302 |
<span id="terms_summary_approved_total">[% approved_total %]</span> |
322 |
<span id="terms_summary_approved_total">[% approved_total %]</span> |
303 |
</li> |
323 |
</li> |
304 |
</ul> |
324 |
</ul> |
305 |
<span id="terms_summary_status"> </span> |
325 |
<span id="terms_summary_status"> </span> |
306 |
</fieldset> |
326 |
</fieldset> |
Lines 309-315
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
309 |
<div class="description">Enter a word or phrase to check against approved/rejected lists: </div> |
329 |
<div class="description">Enter a word or phrase to check against approved/rejected lists: </div> |
310 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
330 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
311 |
<input type="text" size="14" name="test" id="test" /> |
331 |
<input type="text" size="14" name="test" id="test" /> |
312 |
<fieldset class="action"><input type="submit" value="Test" id="test_button" name="op-test" /></fieldset> |
332 |
<fieldset class="action"><button type="submit" value="Test" class="btn btn-small" id="test_button" name="op-test"><i class="fa fa-check-square-o" aria-hidden="true"></i> Test</button></fieldset> |
313 |
<div id="verdict"> |
333 |
<div id="verdict"> |
314 |
[% IF ( test_term ) %] |
334 |
[% IF ( test_term ) %] |
315 |
[% IF ( verdict_ok ) %] |
335 |
[% IF ( verdict_ok ) %] |
Lines 360-366
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
360 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
380 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
361 |
</li> |
381 |
</li> |
362 |
</ol> |
382 |
</ol> |
363 |
<fieldset class="action"><input type="submit" value="Apply filter(s)" /></fieldset> |
383 |
<fieldset class="action"><button type="submit" class="btn btn-small"><i class="fa fa-filter" aria-hidden="true"></i> Apply filter(s)</button></fieldset> |
364 |
</fieldset> |
384 |
</fieldset> |
365 |
</form> |
385 |
</form> |
366 |
</div> |
386 |
</div> |
367 |
- |
|
|