Lines 335-344
canned reports and writing custom SQL reports.</p>
Link Here
|
335 |
<p>Your subscription is already linked with a Mana subscription model. Share it if you have made modifications, otherwise it will do nothing.</p> |
335 |
<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 |
</div> |
336 |
</div> |
337 |
[% END %] |
337 |
[% END %] |
|
|
338 |
<div id="note-error" class="alert alert-danger" role="alert"> |
339 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
340 |
</div> |
338 |
[% IF ( languages_loop ) %] |
341 |
[% IF ( languages_loop ) %] |
339 |
[% UNLESS ( one_language_enabled ) %] |
342 |
[% UNLESS ( one_language_enabled ) %] |
340 |
<label id="noteerror" type="hidden">Please enter a report name and descriptive note before sharing (minimum 20 characters)</label> |
343 |
<div class="shared_infos rows"> |
341 |
<div id="shared_infos" class="rows"> |
|
|
342 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
344 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
343 |
</li> |
345 |
</li> |
344 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
346 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
Lines 357-363
canned reports and writing custom SQL reports.</p>
Link Here
|
357 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
359 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
358 |
<input type="hidden" name="phase" value="Share"> |
360 |
<input type="hidden" name="phase" value="Share"> |
359 |
|
361 |
|
360 |
<fieldset> |
362 |
<fieldset class="shared_infos"> |
361 |
<label for="mana_language">Language:</label> |
363 |
<label for="mana_language">Language:</label> |
362 |
<select id="mana_language" name="mana_language"> |
364 |
<select id="mana_language" name="mana_language"> |
363 |
[% FOREACH languages_loo IN languages_loop %] |
365 |
[% FOREACH languages_loo IN languages_loop %] |
Lines 417-427
canned reports and writing custom SQL reports.</p>
Link Here
|
417 |
[% END %] |
419 |
[% END %] |
418 |
</div> |
420 |
</div> |
419 |
<div class="modal-footer"> |
421 |
<div class="modal-footer"> |
420 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
422 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
421 |
[% IF one_language_enabled==0 %] |
423 |
[% IF one_language_enabled==0 %] |
422 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary">Share</button> |
424 |
<button id="ManaShareButton" type="submit" form="mana_share_form" class="btn btn-primary shared_infos">Share</button> |
423 |
[% ELSE %] |
425 |
[% ELSE %] |
424 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary">Share</a></div> |
426 |
<div id="ManaShareButton" class="btn-group"><a class="btn btn-primary shared_infos">Share</a></div> |
425 |
[% END %] |
427 |
[% END %] |
426 |
</div> |
428 |
</div> |
427 |
</div> |
429 |
</div> |
Lines 1078-1083
Sub report:<select name="subreport">
Link Here
|
1078 |
|
1080 |
|
1079 |
[% MACRO jsinclude BLOCK %] |
1081 |
[% MACRO jsinclude BLOCK %] |
1080 |
[% INCLUDE 'calendar.inc' %] |
1082 |
[% INCLUDE 'calendar.inc' %] |
|
|
1083 |
[% INCLUDE 'mana.inc' %] |
1081 |
[% IF ( saved1 ) %] |
1084 |
[% IF ( saved1 ) %] |
1082 |
[% INCLUDE 'datatables.inc' %] |
1085 |
[% INCLUDE 'datatables.inc' %] |
1083 |
[% INCLUDE 'columns_settings.inc' %] |
1086 |
[% INCLUDE 'columns_settings.inc' %] |
Lines 1129-1139
Sub report:<select name="subreport">
Link Here
|
1129 |
window.history.back(); |
1132 |
window.history.back(); |
1130 |
}); |
1133 |
}); |
1131 |
|
1134 |
|
|
|
1135 |
$(".mana_search_button").on("click",function(){ |
1136 |
mana_search($("#mana_search_field").val()); |
1137 |
}); |
1138 |
|
1132 |
$(".ShareButton").on("click", function(){ |
1139 |
$(".ShareButton").on("click", function(){ |
|
|
1140 |
$("#note-error").hide(); |
1133 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1141 |
if($(this).closest("tr").find(".report_notes").text().length < 20 || $(this).closest("tr").find(".report_name").text().length < 20){ |
1134 |
$("#shared_infos").hide(); |
1142 |
$(".shared_infos").hide(); |
1135 |
$("#ManaShareButton").hide(); |
1143 |
$("#note-error").show(); |
1136 |
$("#noterror").show(); |
|
|
1137 |
} |
1144 |
} |
1138 |
else{ |
1145 |
else{ |
1139 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1146 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
Lines 1145-1150
Sub report:<select name="subreport">
Link Here
|
1145 |
} |
1152 |
} |
1146 |
}); |
1153 |
}); |
1147 |
|
1154 |
|
|
|
1155 |
$("#ManaCloseButton").on("click", function() { |
1156 |
$(".shared_infos").show(); |
1157 |
}); |
1158 |
|
1148 |
$("#addColumn").on("click",function(){ |
1159 |
$("#addColumn").on("click",function(){ |
1149 |
addColumn(); |
1160 |
addColumn(); |
1150 |
}); |
1161 |
}); |