Lines 389-400
Link Here
|
389 |
<li><a href="/cgi-bin/koha/tools/scheduler.pl?id=[% savedreport.id | uri %]"><i class="fa-solid fa-clock"></i> Schedule</a></li> |
389 |
<li><a href="/cgi-bin/koha/tools/scheduler.pl?id=[% savedreport.id | uri %]"><i class="fa-solid fa-clock"></i> Schedule</a></li> |
390 |
[% IF ( CAN_user_reports_delete_reports ) %] |
390 |
[% IF ( CAN_user_reports_delete_reports ) %] |
391 |
<li> |
391 |
<li> |
392 |
<form method="post" action="/cgi-bin/koha/reports/guided_reports.pl"> |
392 |
<a class="submit-form-link" href="#" data-id="[% savedreport.id | html %]" data-action="guided_reports.pl" data-method="post" data-op="cud-delete" data-confirmation-msg="[% t('Are you sure you want to delete this report?') | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
393 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
394 |
<input type="hidden" name="op" value="cud-delete" /> |
395 |
<input type="hidden" name="id" value="[% savedreport.id | html %]" /> |
396 |
</form> |
397 |
<a href="#" class="delete" title="Delete this saved report"><i class="fa fa-trash-can"></i> Delete</a> |
398 |
</li> |
393 |
</li> |
399 |
[% END %] |
394 |
[% END %] |
400 |
</ul> |
395 |
</ul> |
Lines 1567-1573
Link Here
|
1567 |
[% Asset.js( "lib/codemirror/highlight.js" ) | $raw %] |
1562 |
[% Asset.js( "lib/codemirror/highlight.js" ) | $raw %] |
1568 |
[% Asset.css("lib/codemirror/highlight.css") | $raw %] |
1563 |
[% Asset.css("lib/codemirror/highlight.css") | $raw %] |
1569 |
[% Asset.js( "js/mana.js" ) | $raw %] |
1564 |
[% Asset.js( "js/mana.js" ) | $raw %] |
1570 |
|
1565 |
[% Asset.js("js/form-submit.js") | $raw %] |
1571 |
<script> |
1566 |
<script> |
1572 |
|
1567 |
|
1573 |
// if the report param form has multiselects override default form submission |
1568 |
// if the report param form has multiselects override default form submission |
Lines 2249-2261
Link Here
|
2249 |
|
2244 |
|
2250 |
[% END %] |
2245 |
[% END %] |
2251 |
|
2246 |
|
2252 |
$(".delete").on("click",function(e){ |
|
|
2253 |
e.preventDefault(); |
2254 |
if ( confirmDelete(MSG_CONFIRM_DELETE) ) { |
2255 |
return $(this).siblings('form').submit(); |
2256 |
} |
2257 |
}); |
2258 |
|
2259 |
$("#mana_search_form").submit(function(e){ |
2247 |
$("#mana_search_form").submit(function(e){ |
2260 |
e.preventDefault(); |
2248 |
e.preventDefault(); |
2261 |
}); |
2249 |
}); |
Lines 2470-2481
Link Here
|
2470 |
<a id="preview-modal-editreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?id=' + reportid + '&op=edit_form"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' + _("Edit") + '</a>\ |
2458 |
<a id="preview-modal-editreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?id=' + reportid + '&op=edit_form"><i class="fa-solid fa-pencil" aria-hidden="true"></i> ' + _("Edit") + '</a>\ |
2471 |
<a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?op=duplicate&id=' + reportid + '"><i class="fa fa-copy"></i> ' + _("Duplicate") + '</a>\ |
2459 |
<a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?op=duplicate&id=' + reportid + '"><i class="fa fa-copy"></i> ' + _("Duplicate") + '</a>\ |
2472 |
<a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/tools/scheduler.pl?id=' + reportid + '"><i class="fa-solid fa-clock"></i> ' + _("Schedule") + '</a>\ |
2460 |
<a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/tools/scheduler.pl?id=' + reportid + '"><i class="fa-solid fa-clock"></i> ' + _("Schedule") + '</a>\ |
2473 |
<form method="post" action="/cgi-bin/koha/reports/guided_reports.pl">\ |
2461 |
<a class="btn btn-default submit-form-link" href="#" data-id="' + reportid + '" data-action="guided_reports.pl" data-method="post" data-op="cud-delete" data-confirmation-msg="' + _('Are you sure you want to delete this report?') + '"><i class="fa fa-trash-can"></i> Delete</a>\ |
2474 |
[% INCLUDE 'csrf-token.inc' | collapse %]\ |
|
|
2475 |
<input type="hidden" name="op" value="cud-delete" />\ |
2476 |
<input type="hidden" name="id" value="' + reportid + '" />\ |
2477 |
</form>\ |
2478 |
<a id="preview-modal-delete"href="#" class="btn btn-default" title="Delete this saved report"><i class="fa fa-trash-can"></i> ' + _("Delete") + '</a>\ |
2479 |
<a id="preview-modal-runreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?id=' + reportid + '&op=run"><i class="fa fa-play"></i> ' + _("Run report") + '</a>\ |
2462 |
<a id="preview-modal-runreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?id=' + reportid + '&op=run"><i class="fa fa-play"></i> ' + _("Run report") + '</a>\ |
2480 |
<a href="#" id="preview-sql-modal-cancel" data-dismiss="modal" class="btn btn-default"><i class="fa fa-times" aria-hidden="true"></i> ' + _("Close") + '</a>\ |
2463 |
<a href="#" id="preview-sql-modal-cancel" data-dismiss="modal" class="btn btn-default"><i class="fa fa-times" aria-hidden="true"></i> ' + _("Close") + '</a>\ |
2481 |
</div>\ |
2464 |
</div>\ |
Lines 2490-2502
Link Here
|
2490 |
lineWrapping: true, |
2473 |
lineWrapping: true, |
2491 |
readOnly: true |
2474 |
readOnly: true |
2492 |
}); |
2475 |
}); |
2493 |
$("#preview-modal-delete").on("click",function(e){ |
|
|
2494 |
e.preventDefault(); |
2495 |
if ( confirmDelete(MSG_CONFIRM_DELETE) ) { |
2496 |
return $(this).siblings('form').submit(); |
2497 |
} |
2498 |
}); |
2499 |
|
2500 |
} |
2476 |
} |
2501 |
</script> |
2477 |
</script> |
2502 |
[% END %] |
2478 |
[% END %] |