Lines 346-355
canned reports and writing custom SQL reports.</p>
Link Here
|
346 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
346 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
347 |
</div> |
347 |
</div> |
348 |
[% END %] |
348 |
[% END %] |
|
|
349 |
<div id="note-error" class="alert alert-danger" role="alert"> |
350 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
351 |
</div> |
349 |
[% IF ( languages_loop ) %] |
352 |
[% IF ( languages_loop ) %] |
350 |
[% UNLESS ( one_language_enabled ) %] |
353 |
[% UNLESS ( one_language_enabled ) %] |
351 |
<label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label> |
354 |
<div class="shared_infos rows"> |
352 |
<div id="shared_infos" class="rows"> |
|
|
353 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
355 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
354 |
</li> |
356 |
</li> |
355 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
357 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
Lines 368-374
canned reports and writing custom SQL reports.</p>
Link Here
|
368 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
370 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
369 |
<input type="hidden" name="phase" value="Share"> |
371 |
<input type="hidden" name="phase" value="Share"> |
370 |
|
372 |
|
371 |
<fieldset> |
373 |
<fieldset class="shared_infos"> |
372 |
<label for="mana_language">Language:</label> |
374 |
<label for="mana_language">Language:</label> |
373 |
<select id="mana_language" name="mana_language"> |
375 |
<select id="mana_language" name="mana_language"> |
374 |
[% FOREACH languages_loo IN languages_loop %] |
376 |
[% FOREACH languages_loo IN languages_loop %] |
Lines 428-438
canned reports and writing custom SQL reports.</p>
Link Here
|
428 |
[% END %] |
430 |
[% END %] |
429 |
</div> |
431 |
</div> |
430 |
<div class="modal-footer"> |
432 |
<div class="modal-footer"> |
431 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
433 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
432 |
[% IF one_language_enabled==0 %] |
434 |
[% IF one_language_enabled==0 %] |
433 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button> |
435 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary shared_infos">Share</button> |
434 |
[% ELSE %] |
436 |
[% ELSE %] |
435 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary">Share</a></div> |
437 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary shared_infos">Share</a></div> |
436 |
[% END %] |
438 |
[% END %] |
437 |
</div> |
439 |
</div> |
438 |
</div> |
440 |
</div> |
Lines 1065-1070
$(document).ready(function() {
Link Here
|
1065 |
[% Asset.js("../lib/d3c3/d3.min.js") | $raw %] |
1067 |
[% Asset.js("../lib/d3c3/d3.min.js") | $raw %] |
1066 |
[% Asset.js("../lib/d3c3/c3.min.js") | $raw %] |
1068 |
[% Asset.js("../lib/d3c3/c3.min.js") | $raw %] |
1067 |
[% INCLUDE 'calendar.inc' %] |
1069 |
[% INCLUDE 'calendar.inc' %] |
|
|
1070 |
[% INCLUDE 'mana.inc' %] |
1068 |
[% IF ( saved1 ) %] |
1071 |
[% IF ( saved1 ) %] |
1069 |
[% INCLUDE 'datatables.inc' %] |
1072 |
[% INCLUDE 'datatables.inc' %] |
1070 |
[% INCLUDE 'columns_settings.inc' %] |
1073 |
[% INCLUDE 'columns_settings.inc' %] |
Lines 1250-1260
$(document).ready(function() {
Link Here
|
1250 |
window.history.back(); |
1253 |
window.history.back(); |
1251 |
}); |
1254 |
}); |
1252 |
|
1255 |
|
|
|
1256 |
$(".mana_search_button").on("click",function(){ |
1257 |
mana_search($("#mana_search_field").val()); |
1258 |
}); |
1259 |
|
1253 |
$(".ShareButton").on("click", function(){ |
1260 |
$(".ShareButton").on("click", function(){ |
|
|
1261 |
$("#note-error").hide(); |
1254 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1262 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1255 |
$("#shared_infos").hide(); |
1263 |
$(".shared_infos").hide(); |
1256 |
$("#ManaShareButton").hide(); |
1264 |
$("#note-error").show(); |
1257 |
$("#noterror").show(); |
|
|
1258 |
} |
1265 |
} |
1259 |
else{ |
1266 |
else{ |
1260 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1267 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
Lines 1266-1271
$(document).ready(function() {
Link Here
|
1266 |
} |
1273 |
} |
1267 |
}); |
1274 |
}); |
1268 |
|
1275 |
|
|
|
1276 |
$("#ManaCloseButton").on("click", function() { |
1277 |
$(".shared_infos").show(); |
1278 |
}); |
1279 |
|
1269 |
$("#addColumn").on("click",function(){ |
1280 |
$("#addColumn").on("click",function(){ |
1270 |
addColumn(); |
1281 |
addColumn(); |
1271 |
}); |
1282 |
}); |