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=\"CheckPending\" href=\"/cgi-bin/koha/tags/review.pl\"><i class='fa fa-clock-o'></i>"+_(" Select all pending")+"<\/a> | <a id=\"CheckNone\" href=\"/cgi-bin/koha/tags/review.pl\"><i class='fa fa-remove'></i>"+_(" Clear all")+"<\/a></div>"); |
82 |
$("#CheckAll").click(function(){ |
82 |
$("#CheckAll").click(function(){ |
83 |
$(".checkboxed").checkCheckboxes(); |
83 |
$(".checkboxed").checkCheckboxes(); |
84 |
return false; |
84 |
return false; |
Lines 99-106
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
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).text(_("Reject")).css("color","#000"); |
103 |
$(event.target).attr( "value",_("Approved")).prop('disabled', true).css("color","#666"); |
103 |
$(event.target).text(_("Approved")).prop('disabled', true).css("color","#666"); |
104 |
return false; // cancel submit |
104 |
return false; // cancel submit |
105 |
} |
105 |
} |
106 |
if ($(event.target).is('.rej')) { |
106 |
if ($(event.target).is('.rej')) { |
Lines 108-119
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
108 |
"data": {rej: $(event.target).attr("title")}, |
108 |
"data": {rej: $(event.target).attr("title")}, |
109 |
"success": count_reject // success_reject |
109 |
"success": count_reject // success_reject |
110 |
}); |
110 |
}); |
111 |
$(event.target).prev(".ok").prop('disabled', false).attr("value",_("Approve")).css("color","#000"); |
111 |
$(event.target).prev(".ok").prop('disabled', false).text(_("Approve")).css("color","#000"); |
112 |
$(event.target).attr( "value",_("Rejected")).prop('disabled', true).css("color","#666"); |
112 |
$(event.target).text(_("Rejected")).prop('disabled', true).css("color","#666"); |
113 |
return false; // cancel submit |
113 |
return false; // cancel submit |
114 |
} |
114 |
} |
115 |
if ($(event.target).is('#test_button')) { |
115 |
if ($(event.target).is('#test_button')) { |
116 |
$(event.target).attr( "value",_("Testing...")).prop('disabled', true); |
116 |
$(event.target).text(_("Testing...")).prop('disabled', true); |
117 |
$.ajax({ |
117 |
$.ajax({ |
118 |
"data": {test: $('#test').attr("value")}, |
118 |
"data": {test: $('#test').attr("value")}, |
119 |
"success": success_test_call // success_reject |
119 |
"success": success_test_call // success_reject |
Lines 253-263
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
253 |
[% IF ( tagloo.approved ) %] |
253 |
[% IF ( tagloo.approved ) %] |
254 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
254 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
255 |
[% IF ( tagloo.approved == -1 ) %] |
255 |
[% IF ( tagloo.approved == -1 ) %] |
256 |
<input class="ok" type="submit" title="[% tagloo.term %]" value="Approve" name="approve" /> |
256 |
<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" /> |
257 |
<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 %] |
258 |
[% ELSE %] |
259 |
<input class="ok" disabled="disabled" type="submit" title="[% tagloo.term %]" value="Approved" name="approve" /> |
259 |
<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" /> |
260 |
<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 %] |
261 |
[% END %] |
262 |
</span> |
262 |
</span> |
263 |
</td> |
263 |
</td> |
Lines 265-272
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
265 |
</td> |
265 |
</td> |
266 |
[% ELSE %] |
266 |
[% ELSE %] |
267 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
267 |
<td class="actions"><span class="ajax_buttons" style="visibility:hidden"> |
268 |
<input class="ok" type="submit" title="[% tagloo.term %]" value="Approve" name="approve" /> |
268 |
<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" /> |
269 |
<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> |
270 |
</span> |
271 |
</td> |
271 |
</td> |
272 |
[% UNLESS ( filter_approved_pending ) %]<td> </td>[% END %] |
272 |
[% 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> |
280 |
</table> |
281 |
[% END %] |
281 |
[% END %] |
282 |
[% IF ( tagloop ) %]<fieldset class="action"> |
282 |
[% IF ( tagloop ) %]<fieldset class="action"> |
283 |
<input type="submit" value="Approve" id="approve_button" name="op-approve" /> |
283 |
<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" /> |
284 |
<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 %] |
285 |
</fieldset>[% END %] |
286 |
</form> |
286 |
</form> |
287 |
</div> |
287 |
</div> |
Lines 289-306
tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Link Here
|
289 |
<fieldset class="brief"> |
289 |
<fieldset class="brief"> |
290 |
<h4>Terms summary</h4> |
290 |
<h4>Terms summary</h4> |
291 |
<ul> |
291 |
<ul> |
292 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved</a>: |
292 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=1"><i class="fa fa-check" aria-hidden="true"></i> Approved</a>: |
293 |
<span id="terms_summary_approved_count">[% approved_count %]</span> |
293 |
<span id="terms_summary_approved_count">[% approved_count %]</span> |
294 |
</li> |
294 |
</li> |
295 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected</a>: |
295 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=-1"><i class="fa fa-remove" aria-hidden="true"></i> Rejected</a>: |
296 |
<span id="terms_summary_rejected_count">[% rejected_count %]</span> |
296 |
<span id="terms_summary_rejected_count">[% rejected_count %]</span> |
297 |
</li> |
297 |
</li> |
298 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending</a>: |
298 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=0"><i class="fa fa-clock-o"></i> Pending</a>: |
299 |
<span id="terms_summary_unapproved_count">[% unapproved_count %]</span> |
299 |
<span id="terms_summary_unapproved_count">[% unapproved_count %]</span> |
300 |
</li> |
300 |
</li> |
301 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>: |
301 |
<li><a href="/cgi-bin/koha/tags/review.pl?approved=all"><i class="fa fa-plus" aria-hidden="true"></i> Total</a>: |
302 |
<span id="terms_summary_approved_total">[% approved_total %]</span> |
302 |
<span id="terms_summary_approved_total">[% approved_total %]</span> |
303 |
</li> |
303 |
</li> |
304 |
</ul> |
304 |
</ul> |
305 |
<span id="terms_summary_status"> </span> |
305 |
<span id="terms_summary_status"> </span> |
306 |
</fieldset> |
306 |
</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> |
309 |
<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"> |
310 |
<form method="post" action="/cgi-bin/koha/tags/review.pl"> |
311 |
<input type="text" size="14" name="test" id="test" /> |
311 |
<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> |
312 |
<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"> |
313 |
<div id="verdict"> |
314 |
[% IF ( test_term ) %] |
314 |
[% IF ( test_term ) %] |
315 |
[% IF ( verdict_ok ) %] |
315 |
[% 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> |
360 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
361 |
</li> |
361 |
</li> |
362 |
</ol> |
362 |
</ol> |
363 |
<fieldset class="action"><input type="submit" value="Apply filter(s)" /></fieldset> |
363 |
<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> |
364 |
</fieldset> |
365 |
</form> |
365 |
</form> |
366 |
</div> |
366 |
</div> |