Lines 336-345
canned reports and writing custom SQL reports.</p>
Link Here
|
336 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
336 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
337 |
</div> |
337 |
</div> |
338 |
[% END %] |
338 |
[% END %] |
|
|
339 |
<div id="note-error" class="alert alert-danger" role="alert"> |
340 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
341 |
</div> |
339 |
[% IF ( languages_loop ) %] |
342 |
[% IF ( languages_loop ) %] |
340 |
[% UNLESS ( one_language_enabled ) %] |
343 |
[% UNLESS ( one_language_enabled ) %] |
341 |
<label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label> |
344 |
<div class="shared_infos rows"> |
342 |
<div id="shared_infos" class="rows"> |
|
|
343 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
345 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
344 |
</li> |
346 |
</li> |
345 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
347 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
Lines 358-364
canned reports and writing custom SQL reports.</p>
Link Here
|
358 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
360 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
359 |
<input type="hidden" name="phase" value="Share"> |
361 |
<input type="hidden" name="phase" value="Share"> |
360 |
|
362 |
|
361 |
<fieldset> |
363 |
<fieldset class="shared_infos"> |
362 |
<label for="mana_language">Language:</label> |
364 |
<label for="mana_language">Language:</label> |
363 |
<select id="mana_language" name="mana_language"> |
365 |
<select id="mana_language" name="mana_language"> |
364 |
[% FOREACH languages_loo IN languages_loop %] |
366 |
[% FOREACH languages_loo IN languages_loop %] |
Lines 418-428
canned reports and writing custom SQL reports.</p>
Link Here
|
418 |
[% END %] |
420 |
[% END %] |
419 |
</div> |
421 |
</div> |
420 |
<div class="modal-footer"> |
422 |
<div class="modal-footer"> |
421 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
423 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
422 |
[% IF one_language_enabled==0 %] |
424 |
[% IF one_language_enabled==0 %] |
423 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button> |
425 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary shared_infos">Share</button> |
424 |
[% ELSE %] |
426 |
[% ELSE %] |
425 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary">Share</a></div> |
427 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary shared_infos">Share</a></div> |
426 |
[% END %] |
428 |
[% END %] |
427 |
</div> |
429 |
</div> |
428 |
</div> |
430 |
</div> |
Lines 1055-1060
$(document).ready(function() {
Link Here
|
1055 |
|
1057 |
|
1056 |
[% MACRO jsinclude BLOCK %] |
1058 |
[% MACRO jsinclude BLOCK %] |
1057 |
[% INCLUDE 'calendar.inc' %] |
1059 |
[% INCLUDE 'calendar.inc' %] |
|
|
1060 |
[% INCLUDE 'mana.inc' %] |
1058 |
[% IF ( saved1 ) %] |
1061 |
[% IF ( saved1 ) %] |
1059 |
[% INCLUDE 'datatables.inc' %] |
1062 |
[% INCLUDE 'datatables.inc' %] |
1060 |
[% INCLUDE 'columns_settings.inc' %] |
1063 |
[% INCLUDE 'columns_settings.inc' %] |
Lines 1106-1116
$(document).ready(function() {
Link Here
|
1106 |
window.history.back(); |
1109 |
window.history.back(); |
1107 |
}); |
1110 |
}); |
1108 |
|
1111 |
|
|
|
1112 |
$(".mana_search_button").on("click",function(){ |
1113 |
mana_search($("#mana_search_field").val()); |
1114 |
}); |
1115 |
|
1109 |
$(".ShareButton").on("click", function(){ |
1116 |
$(".ShareButton").on("click", function(){ |
|
|
1117 |
$("#note-error").hide(); |
1110 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1118 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1111 |
$("#shared_infos").hide(); |
1119 |
$(".shared_infos").hide(); |
1112 |
$("#ManaShareButton").hide(); |
1120 |
$("#note-error").show(); |
1113 |
$("#noterror").show(); |
|
|
1114 |
} |
1121 |
} |
1115 |
else{ |
1122 |
else{ |
1116 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1123 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
Lines 1122-1127
$(document).ready(function() {
Link Here
|
1122 |
} |
1129 |
} |
1123 |
}); |
1130 |
}); |
1124 |
|
1131 |
|
|
|
1132 |
$("#ManaCloseButton").on("click", function() { |
1133 |
$(".shared_infos").show(); |
1134 |
}); |
1135 |
|
1125 |
$("#addColumn").on("click",function(){ |
1136 |
$("#addColumn").on("click",function(){ |
1126 |
addColumn(); |
1137 |
addColumn(); |
1127 |
}); |
1138 |
}); |