Lines 324-333
canned reports and writing custom SQL reports.</p>
Link Here
|
324 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
324 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
325 |
</div> |
325 |
</div> |
326 |
[% END %] |
326 |
[% END %] |
|
|
327 |
<div id="note-error" class="alert alert-danger" role="alert"> |
328 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
329 |
</div> |
327 |
[% IF ( languages_loop ) %] |
330 |
[% IF ( languages_loop ) %] |
328 |
[% UNLESS ( one_language_enabled ) %] |
331 |
[% UNLESS ( one_language_enabled ) %] |
329 |
<label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label> |
332 |
<div class="shared_infos rows"> |
330 |
<div id="shared_infos" class="rows"> |
|
|
331 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
333 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
332 |
</li> |
334 |
</li> |
333 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
335 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
Lines 346-352
canned reports and writing custom SQL reports.</p>
Link Here
|
346 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
348 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
347 |
<input type="hidden" name="phase" value="Share"> |
349 |
<input type="hidden" name="phase" value="Share"> |
348 |
|
350 |
|
349 |
<fieldset> |
351 |
<fieldset class="shared_infos"> |
350 |
<label for="mana_language">Language:</label> |
352 |
<label for="mana_language">Language:</label> |
351 |
<select id="mana_language" name="mana_language"> |
353 |
<select id="mana_language" name="mana_language"> |
352 |
[% FOREACH languages_loo IN languages_loop %] |
354 |
[% FOREACH languages_loo IN languages_loop %] |
Lines 406-416
canned reports and writing custom SQL reports.</p>
Link Here
|
406 |
[% END %] |
408 |
[% END %] |
407 |
</div> |
409 |
</div> |
408 |
<div class="modal-footer"> |
410 |
<div class="modal-footer"> |
409 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
411 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
410 |
[% IF one_language_enabled==0 %] |
412 |
[% IF one_language_enabled==0 %] |
411 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button> |
413 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary shared_infos">Share</button> |
412 |
[% ELSE %] |
414 |
[% ELSE %] |
413 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary">Share</a></div> |
415 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary shared_infos">Share</a></div> |
414 |
[% END %] |
416 |
[% END %] |
415 |
</div> |
417 |
</div> |
416 |
</div> |
418 |
</div> |
Lines 1052-1057
Sub report:<select name="subreport">
Link Here
|
1052 |
|
1054 |
|
1053 |
[% MACRO jsinclude BLOCK %] |
1055 |
[% MACRO jsinclude BLOCK %] |
1054 |
[% INCLUDE 'calendar.inc' %] |
1056 |
[% INCLUDE 'calendar.inc' %] |
|
|
1057 |
[% INCLUDE 'mana.inc' %] |
1055 |
[% IF ( saved1 ) %] |
1058 |
[% IF ( saved1 ) %] |
1056 |
[% INCLUDE 'datatables.inc' %] |
1059 |
[% INCLUDE 'datatables.inc' %] |
1057 |
[% END %] |
1060 |
[% END %] |
Lines 1094-1104
Sub report:<select name="subreport">
Link Here
|
1094 |
window.history.back(); |
1097 |
window.history.back(); |
1095 |
}); |
1098 |
}); |
1096 |
|
1099 |
|
|
|
1100 |
$(".mana_search_button").on("click",function(){ |
1101 |
mana_search($("#mana_search_field").val()); |
1102 |
}); |
1103 |
|
1097 |
$(".ShareButton").on("click", function(){ |
1104 |
$(".ShareButton").on("click", function(){ |
|
|
1105 |
$("#note-error").hide(); |
1098 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1106 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1099 |
$("#shared_infos").hide(); |
1107 |
$(".shared_infos").hide(); |
1100 |
$("#ManaShareButton").hide(); |
1108 |
$("#note-error").show(); |
1101 |
$("#noterror").show(); |
|
|
1102 |
} |
1109 |
} |
1103 |
else{ |
1110 |
else{ |
1104 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1111 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
Lines 1110-1115
Sub report:<select name="subreport">
Link Here
|
1110 |
} |
1117 |
} |
1111 |
}); |
1118 |
}); |
1112 |
|
1119 |
|
|
|
1120 |
$("#ManaCloseButton").on("click", function() { |
1121 |
$(".shared_infos").show(); |
1122 |
}); |
1123 |
|
1113 |
$("#addColumn").on("click",function(){ |
1124 |
$("#addColumn").on("click",function(){ |
1114 |
addColumn(); |
1125 |
addColumn(); |
1115 |
}); |
1126 |
}); |