Lines 137-143
canned reports and writing custom SQL reports.</p>
Link Here
|
137 |
|
137 |
|
138 |
[% IF report_converted %] |
138 |
[% IF report_converted %] |
139 |
<div class="dialog message"> |
139 |
<div class="dialog message"> |
140 |
The report "[% report_converted %]" has been converted. |
140 |
The report "[% report_converted | html %]" has been converted. |
141 |
</div> |
141 |
</div> |
142 |
[% END %] |
142 |
[% END %] |
143 |
|
143 |
|
Lines 179-185
canned reports and writing custom SQL reports.</p>
Link Here
|
179 |
<div style="display:inline-block"> |
179 |
<div style="display:inline-block"> |
180 |
[% IF manamsg %] |
180 |
[% IF manamsg %] |
181 |
<div id="mana_search" class="dialog message"> |
181 |
<div id="mana_search" class="dialog message"> |
182 |
<p> [% manamsg %] </p> |
182 |
<p> [% manamsg | html %] </p> |
183 |
</div> |
183 |
</div> |
184 |
[% END %] |
184 |
[% END %] |
185 |
|
185 |
|
Lines 355-439
canned reports and writing custom SQL reports.</p>
Link Here
|
355 |
<div id="note-error" class="alert alert-danger" role="alert"> |
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) |
356 |
Please enter a report name and descriptive note before sharing (minimum 20 characters) |
357 |
</div> |
357 |
</div> |
358 |
[% IF ( languages_loop ) %] |
358 |
<div class="shared_infos rows"> |
359 |
[% UNLESS ( one_language_enabled ) %] |
359 |
<li><span class="label">Id: </span><div id="shared_id"></div></li> |
360 |
<div class="shared_infos rows"> |
360 |
<li><span class="label">Name: </span><div id="shared_name"></div></li> |
361 |
<li> <span class="label">Id: </span><div id="shared_id"></div> |
361 |
<li><span class="label">SQL: </span><div id="shared_sql"></div></li> |
362 |
</li> |
362 |
<li><span class="label">Group: </span><div id="shared_group"></div></li> |
363 |
<li> <span class="label">Name: </span><div id="shared_name"></div> |
363 |
<li><span class="label">Type: </span><div id="shared_type"></div></li> |
364 |
</li> |
364 |
<li><span class="label">Notes: </span><div id="shared_notes"></div></li> |
365 |
<li> <span class="label">SQL: </span><div id="shared_sql"></div> |
365 |
</div> |
366 |
</li> |
366 |
<div class="rows"> |
367 |
<li> <span class="label">Group: </span><div id="shared_group"></div> |
367 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl" class="validated" > |
368 |
</li> |
368 |
<input type="hidden" name="phase" value="Share"> |
369 |
<li> <span class="label">Type: </span><div id="shared_type"></div> |
369 |
|
370 |
</li> |
370 |
[% IF (languages_loop) %] |
371 |
<li> <span class="label">Notes: </span><div id="shared_notes"></div> |
371 |
<fieldset class="shared_infos"> |
372 |
</li> |
372 |
<label for="mana_language">Language:</label> |
373 |
|
373 |
<select id="mana_language" name="mana_language"> |
374 |
</div> |
374 |
[% FOREACH languages_loo IN languages_loop %] |
375 |
<div class="rows"> |
375 |
[% IF ( languages_loo.group_enabled ) %] |
376 |
<form method="post" id="mana_share_form" action="/cgi-bin/koha/reports/guided_reports.pl?phase=Share" class="validated" > |
376 |
[% IF ( languages_loo.plural ) %] |
377 |
<input type="hidden" name="phase" value="Share"> |
377 |
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %] |
378 |
|
378 |
[% IF ( sublanguages_loo.enabled ) %] |
379 |
<fieldset class="shared_infos"> |
379 |
[% IF ( sublanguages_loo.sublanguage_current ) %] |
380 |
<label for="mana_language">Language:</label> |
380 |
<option value="[% languages_loo.rfc4646_subtag | html %]" selected> |
381 |
<select id="mana_language" name="mana_language"> |
381 |
[% sublanguages_loo.native_description | html %] |
382 |
[% FOREACH languages_loo IN languages_loop %] |
382 |
[% sublanguages_loo.script_description | html %] |
383 |
[% IF ( languages_loo.group_enabled ) %] |
383 |
[% sublanguages_loo.region_description | html %] |
384 |
[% IF ( languages_loo.plural ) %] |
384 |
|
385 |
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %] |
385 |
[% sublanguages_loo.variant_description | html %] |
386 |
[% IF ( sublanguages_loo.enabled ) %] |
386 |
([% sublanguages_loo.rfc4646_subtag | html %]) |
387 |
[% IF ( sublanguages_loo.sublanguage_current ) %] |
|
|
388 |
<option value="[% languages_loo.rfc4646_subtag %]" selected> |
389 |
[% sublanguages_loo.native_description %] |
390 |
[% sublanguages_loo.script_description %] |
391 |
[% sublanguages_loo.region_description %] |
392 |
|
393 |
[% sublanguages_loo.variant_description %] |
394 |
([% sublanguages_loo.rfc4646_subtag %]) |
395 |
</option> |
396 |
[% ELSE %] |
397 |
<option value="[% languages_loo.rfc4646_subtag %]"> |
398 |
[% sublanguages_loo.native_description %] |
399 |
[% sublanguages_loo.script_description %] |
400 |
[% sublanguages_loo.region_description %] |
401 |
[% sublanguages_loo.variant_description %] |
402 |
([% sublanguages_loo.rfc4646_subtag %]) |
403 |
</option> |
404 |
[% END %] |
405 |
[% END %] |
406 |
[% END %] |
407 |
[% ELSE %] |
408 |
[% IF ( languages_loo.group_enabled ) %] |
409 |
[% IF ( languages_loo.current ) %] |
410 |
<option value="[% languages_loo.rfc4646_subtag %]" selected> |
411 |
[% IF ( languages_loo.native_description ) %] |
412 |
[% languages_loo.native_description %] |
413 |
[% ELSE %] |
414 |
[% languages_loo.rfc4646_subtag %] |
415 |
[% END %] |
416 |
</option> |
387 |
</option> |
417 |
[% ELSE %] |
388 |
[% ELSE %] |
418 |
<option value="[% languages_loo.rfc4646_subtag %]"> |
389 |
<option value="[% languages_loo.rfc4646_subtag | html %]"> |
419 |
[% IF ( languages_loo.native_description ) %] |
390 |
[% sublanguages_loo.native_description | html %] |
420 |
[% languages_loo.native_description %] |
391 |
[% sublanguages_loo.script_description | html %] |
421 |
[% ELSE %] |
392 |
[% sublanguages_loo.region_description | html %] |
422 |
[% languages_loo.rfc4646_subtag %] |
393 |
[% sublanguages_loo.variant_description | html %] |
423 |
[% END %] |
394 |
([% sublanguages_loo.rfc4646_subtag | html %]) |
424 |
</option> |
395 |
</option> |
425 |
[% END %] |
396 |
[% END %] |
426 |
[% END %] |
397 |
[% END %] |
427 |
[% END %] |
398 |
[% END %] |
|
|
399 |
[% ELSE %] |
400 |
[% IF ( languages_loo.group_enabled ) %] |
401 |
[% IF ( languages_loo.current ) %] |
402 |
<option value="[% languages_loo.rfc4646_subtag | html %]" selected> |
403 |
[% IF ( languages_loo.native_description ) %] |
404 |
[% languages_loo.native_description | html %] |
405 |
[% ELSE %] |
406 |
[% languages_loo.rfc4646_subtag | html %] |
407 |
[% END %] |
408 |
</option> |
409 |
[% ELSE %] |
410 |
<option value="[% languages_loo.rfc4646_subtag | html %]"> |
411 |
[% IF ( languages_loo.native_description ) %] |
412 |
[% languages_loo.native_description | html %] |
413 |
[% ELSE %] |
414 |
[% languages_loo.rfc4646_subtag | html %] |
415 |
[% END %] |
416 |
</option> |
417 |
[% END %] |
418 |
[% END %] |
428 |
[% END %] |
419 |
[% END %] |
429 |
[% END %] |
420 |
[% END %] |
430 |
</select> |
421 |
[% END %] |
431 |
<input type="hidden" id="reportid" name="reportid" value="[% savedreport.id %]"/> |
422 |
</select> |
432 |
</fieldset> |
423 |
</fieldset> |
433 |
</form> |
424 |
[% ELSE %] |
434 |
</div> |
425 |
<input type="hidden" name="mana_language" value="[% lang | html %]"> |
435 |
[% END %] |
426 |
[% END %] |
436 |
[% END %] |
427 |
<input type="hidden" id="reportid" name="reportid"/> |
|
|
428 |
</form> |
429 |
</div> |
437 |
</div> |
430 |
</div> |
438 |
<div class="modal-footer"> |
431 |
<div class="modal-footer"> |
439 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
432 |
<button class="btn" id="ManaCloseButton" data-dismiss="modal" aria-hidden="true">Close</button> |
Lines 1291-1296
canned reports and writing custom SQL reports.</p>
Link Here
|
1291 |
$("#note-error").show(); |
1284 |
$("#note-error").show(); |
1292 |
} |
1285 |
} |
1293 |
else{ |
1286 |
else{ |
|
|
1287 |
$("#reportid").val($(this).closest("tr").find(".report_id").text()); |
1294 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1288 |
$("#shared_id").html($(this).closest("tr").find(".report_id").text()); |
1295 |
$("#shared_name").html($(this).closest("tr").find(".report_name").text()); |
1289 |
$("#shared_name").html($(this).closest("tr").find(".report_name").text()); |
1296 |
$("#shared_sql").html($(this).closest("tr").find(".report_sql").val()); |
1290 |
$("#shared_sql").html($(this).closest("tr").find(".report_sql").val()); |
Lines 1496-1502
canned reports and writing custom SQL reports.</p>
Link Here
|
1496 |
}); |
1490 |
}); |
1497 |
|
1491 |
|
1498 |
$('div#ManaShareButton').click(function() { |
1492 |
$('div#ManaShareButton').click(function() { |
1499 |
window.location="/cgi-bin/koha/reports/guided_reports.pl?phase=Share"; |
1493 |
$("#mana_share_form").submit(); |
|
|
1494 |
}); |
1495 |
|
1496 |
$("#mana_search_form").submit(function(e){ |
1497 |
e.preventDefault(); |
1500 |
}); |
1498 |
}); |
1501 |
}); |
1499 |
}); |
1502 |
|
1500 |
|