Lines 342-351
canned reports and writing custom SQL reports.</p>
Link Here
|
342 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
342 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
343 |
</div> |
343 |
</div> |
344 |
[% END %] |
344 |
[% END %] |
|
|
345 |
<div id="note-error" class="alert alert-danger" role="alert"> |
346 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
347 |
</div> |
345 |
[% IF ( languages_loop ) %] |
348 |
[% IF ( languages_loop ) %] |
346 |
[% UNLESS ( one_language_enabled ) %] |
349 |
[% UNLESS ( one_language_enabled ) %] |
347 |
<label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label> |
350 |
<div class="shared_infos rows"> |
348 |
<div id="shared_infos" class="rows"> |
|
|
349 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
351 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
350 |
</li> |
352 |
</li> |
351 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
353 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
Lines 364-370
canned reports and writing custom SQL reports.</p>
Link Here
|
364 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
366 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
365 |
<input type="hidden" name="phase" value="Share"> |
367 |
<input type="hidden" name="phase" value="Share"> |
366 |
|
368 |
|
367 |
<fieldset> |
369 |
<fieldset class="shared_infos"> |
368 |
<label for="mana_language">Language:</label> |
370 |
<label for="mana_language">Language:</label> |
369 |
<select id="mana_language" name="mana_language"> |
371 |
<select id="mana_language" name="mana_language"> |
370 |
[% FOREACH languages_loo IN languages_loop %] |
372 |
[% FOREACH languages_loo IN languages_loop %] |
Lines 424-434
canned reports and writing custom SQL reports.</p>
Link Here
|
424 |
[% END %] |
426 |
[% END %] |
425 |
</div> |
427 |
</div> |
426 |
<div class="modal-footer"> |
428 |
<div class="modal-footer"> |
427 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
429 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
428 |
[% IF one_language_enabled==0 %] |
430 |
[% IF one_language_enabled==0 %] |
429 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button> |
431 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary shared_infos">Share</button> |
430 |
[% ELSE %] |
432 |
[% ELSE %] |
431 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary">Share</a></div> |
433 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary shared_infos">Share</a></div> |
432 |
[% END %] |
434 |
[% END %] |
433 |
</div> |
435 |
</div> |
434 |
</div> |
436 |
</div> |
Lines 1061-1066
$(document).ready(function() {
Link Here
|
1061 |
|
1063 |
|
1062 |
[% MACRO jsinclude BLOCK %] |
1064 |
[% MACRO jsinclude BLOCK %] |
1063 |
[% INCLUDE 'calendar.inc' %] |
1065 |
[% INCLUDE 'calendar.inc' %] |
|
|
1066 |
[% INCLUDE 'mana.inc' %] |
1064 |
[% IF ( saved1 ) %] |
1067 |
[% IF ( saved1 ) %] |
1065 |
[% INCLUDE 'datatables.inc' %] |
1068 |
[% INCLUDE 'datatables.inc' %] |
1066 |
[% INCLUDE 'columns_settings.inc' %] |
1069 |
[% INCLUDE 'columns_settings.inc' %] |
Lines 1112-1122
$(document).ready(function() {
Link Here
|
1112 |
window.history.back(); |
1115 |
window.history.back(); |
1113 |
}); |
1116 |
}); |
1114 |
|
1117 |
|
|
|
1118 |
$(".mana_search_button").on("click",function(){ |
1119 |
mana_search($("#mana_search_field").val()); |
1120 |
}); |
1121 |
|
1115 |
$(".ShareButton").on("click", function(){ |
1122 |
$(".ShareButton").on("click", function(){ |
|
|
1123 |
$("#note-error").hide(); |
1116 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1124 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1117 |
$("#shared_infos").hide(); |
1125 |
$(".shared_infos").hide(); |
1118 |
$("#ManaShareButton").hide(); |
1126 |
$("#note-error").show(); |
1119 |
$("#noterror").show(); |
|
|
1120 |
} |
1127 |
} |
1121 |
else{ |
1128 |
else{ |
1122 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1129 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
Lines 1128-1133
$(document).ready(function() {
Link Here
|
1128 |
} |
1135 |
} |
1129 |
}); |
1136 |
}); |
1130 |
|
1137 |
|
|
|
1138 |
$("#ManaCloseButton").on("click", function() { |
1139 |
$(".shared_infos").show(); |
1140 |
}); |
1141 |
|
1131 |
$("#addColumn").on("click",function(){ |
1142 |
$("#addColumn").on("click",function(){ |
1132 |
addColumn(); |
1143 |
addColumn(); |
1133 |
}); |
1144 |
}); |