Lines 352-361
canned reports and writing custom SQL reports.</p>
Link Here
|
352 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
352 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
353 |
</div> |
353 |
</div> |
354 |
[% END %] |
354 |
[% END %] |
|
|
355 |
<div id="note-error" class="alert alert-danger" role="alert"> |
356 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
357 |
</div> |
355 |
[% IF ( languages_loop ) %] |
358 |
[% IF ( languages_loop ) %] |
356 |
[% UNLESS ( one_language_enabled ) %] |
359 |
[% UNLESS ( one_language_enabled ) %] |
357 |
<label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label> |
360 |
<div class="shared_infos rows"> |
358 |
<div id="shared_infos" class="rows"> |
|
|
359 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
361 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
360 |
</li> |
362 |
</li> |
361 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
363 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
Lines 374-380
canned reports and writing custom SQL reports.</p>
Link Here
|
374 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
376 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
375 |
<input type="hidden" name="phase" value="Share"> |
377 |
<input type="hidden" name="phase" value="Share"> |
376 |
|
378 |
|
377 |
<fieldset> |
379 |
<fieldset class="shared_infos"> |
378 |
<label for="mana_language">Language:</label> |
380 |
<label for="mana_language">Language:</label> |
379 |
<select id="mana_language" name="mana_language"> |
381 |
<select id="mana_language" name="mana_language"> |
380 |
[% FOREACH languages_loo IN languages_loop %] |
382 |
[% FOREACH languages_loo IN languages_loop %] |
Lines 434-444
canned reports and writing custom SQL reports.</p>
Link Here
|
434 |
[% END %] |
436 |
[% END %] |
435 |
</div> |
437 |
</div> |
436 |
<div class="modal-footer"> |
438 |
<div class="modal-footer"> |
437 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
439 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
438 |
[% IF one_language_enabled==0 %] |
440 |
[% IF one_language_enabled==0 %] |
439 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button> |
441 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary shared_infos">Share</button> |
440 |
[% ELSE %] |
442 |
[% ELSE %] |
441 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary">Share</a></div> |
443 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary shared_infos">Share</a></div> |
442 |
[% END %] |
444 |
[% END %] |
443 |
</div> |
445 |
</div> |
444 |
</div> |
446 |
</div> |
Lines 1067-1072
canned reports and writing custom SQL reports.</p>
Link Here
|
1067 |
[% Asset.js("lib/d3c3/d3.min.js") | $raw %] |
1069 |
[% Asset.js("lib/d3c3/d3.min.js") | $raw %] |
1068 |
[% Asset.js("lib/d3c3/c3.min.js") | $raw %] |
1070 |
[% Asset.js("lib/d3c3/c3.min.js") | $raw %] |
1069 |
[% INCLUDE 'calendar.inc' %] |
1071 |
[% INCLUDE 'calendar.inc' %] |
|
|
1072 |
[% INCLUDE 'mana.inc' %] |
1070 |
[% IF ( saved1 ) %] |
1073 |
[% IF ( saved1 ) %] |
1071 |
[% INCLUDE 'datatables.inc' %] |
1074 |
[% INCLUDE 'datatables.inc' %] |
1072 |
[% INCLUDE 'columns_settings.inc' %] |
1075 |
[% INCLUDE 'columns_settings.inc' %] |
Lines 1274-1284
canned reports and writing custom SQL reports.</p>
Link Here
|
1274 |
window.history.back(); |
1277 |
window.history.back(); |
1275 |
}); |
1278 |
}); |
1276 |
|
1279 |
|
|
|
1280 |
$(".mana_search_button").on("click",function(){ |
1281 |
mana_search($("#mana_search_field").val()); |
1282 |
}); |
1283 |
|
1277 |
$(".ShareButton").on("click", function(){ |
1284 |
$(".ShareButton").on("click", function(){ |
|
|
1285 |
$("#note-error").hide(); |
1278 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1286 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1279 |
$("#shared_infos").hide(); |
1287 |
$(".shared_infos").hide(); |
1280 |
$("#ManaShareButton").hide(); |
1288 |
$("#note-error").show(); |
1281 |
$("#noterror").show(); |
|
|
1282 |
} |
1289 |
} |
1283 |
else{ |
1290 |
else{ |
1284 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1291 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
Lines 1290-1295
canned reports and writing custom SQL reports.</p>
Link Here
|
1290 |
} |
1297 |
} |
1291 |
}); |
1298 |
}); |
1292 |
|
1299 |
|
|
|
1300 |
$("#ManaCloseButton").on("click", function() { |
1301 |
$(".shared_infos").show(); |
1302 |
}); |
1303 |
|
1293 |
$("#addColumn").on("click",function(){ |
1304 |
$("#addColumn").on("click",function(){ |
1294 |
addColumn(); |
1305 |
addColumn(); |
1295 |
}); |
1306 |
}); |