View | Details | Raw Unified | Return to bug 27644
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-14 / +13 lines)
Lines 1498-1530 Link Here
1498
            switch ( category ){
1498
            switch ( category ){
1499
                case "insertAuthVal":
1499
                case "insertAuthVal":
1500
                    modalTitle.text( _("Insert authorized value parameter") );
1500
                    modalTitle.text( _("Insert authorized value parameter") );
1501
                    $("#paramLabel").val("Authorized value")
1501
                    $("#paramLabel").val( _("Authorized value") );
1502
                    $("#authorised_value_category").show();
1502
                    $("#authorised_value_category").show();
1503
                    $("#authorised_value").prop("required", true ).attr("required", "required");
1503
                    $("#authorised_value").prop("required", true ).attr("required", "required");
1504
                    break;
1504
                    break;
1505
                case "insertDate":
1505
                case "insertDate":
1506
                    modalTitle.text( _("Insert date parameter") );
1506
                    modalTitle.text( _("Insert date parameter") );
1507
                    $("#paramLabel").val("Date")
1507
                    $("#paramLabel").val( _("Date") );
1508
                    $("#param_category").val("date");
1508
                    $("#param_category").val("date");
1509
                    break;
1509
                    break;
1510
                case "insertItemtypes":
1510
                case "insertItemtypes":
1511
                    modalTitle.text( _("Insert item types parameter") );
1511
                    modalTitle.text( _("Insert item types parameter") );
1512
                    $("#paramLabel").val("Item type")
1512
                    $("#paramLabel").val( _("Item type") );
1513
                    $("#param_category").val("itemtypes");
1513
                    $("#param_category").val("itemtypes");
1514
                    break;
1514
                    break;
1515
                case "insertBranches":
1515
                case "insertBranches":
1516
                    modalTitle.text( _("Insert libraries parameter") );
1516
                    modalTitle.text( _("Insert libraries parameter") );
1517
                    $("#paramLabel").val("Library")
1517
                    $("#paramLabel").val( _("Library") );
1518
                    $("#param_category").val("branches");
1518
                    $("#param_category").val("branches");
1519
                    break;
1519
                    break;
1520
                case "insertCategorycode":
1520
                case "insertCategorycode":
1521
                    modalTitle.text( _("Insert patron category parameter") );
1521
                    modalTitle.text( _("Insert patron category parameter") );
1522
                    $("#paramLabel").val("Patron category")
1522
                    $("#paramLabel").val( _("Patron category") );
1523
                    $("#param_category").val("categorycode");
1523
                    $("#param_category").val("categorycode");
1524
                    break;
1524
                    break;
1525
                case "insertText":
1525
                case "insertText":
1526
                    modalTitle.text( _("Insert text parameter") );
1526
                    modalTitle.text( _("Insert text parameter") );
1527
                    $("#paramLabel").val("Text")
1527
                    $("#paramLabel").val( _("Text") );
1528
                    $("#param_category").val("");
1528
                    $("#param_category").val("");
1529
                    break;
1529
                    break;
1530
            }
1530
            }
Lines 1554-1560 Link Here
1554
1554
1555
            $("body").on('click',".fetch_chart_data",function(){
1555
            $("body").on('click',".fetch_chart_data",function(){
1556
                if( [% unlimited_total || 0 | $raw %] > 1000 ){
1556
                if( [% unlimited_total || 0 | $raw %] > 1000 ){
1557
                    if( confirm("Fetching full chart data for reports with many rows can cause performance issues. Are you sure you with to chart this report?") ){
1557
                    if( confirm( _("Fetching full chart data for reports with many rows can cause performance issues. Are you sure you with to chart this report?") ) ){
1558
                        return true;
1558
                        return true;
1559
                    } else {
1559
                    } else {
1560
                        return false;
1560
                        return false;
Lines 2164-2175 Link Here
2164
                        </div>\
2164
                        </div>\
2165
                        <div class="modal-body"><textarea id="code' + reportid + '">' + message + '</textarea>\
2165
                        <div class="modal-body"><textarea id="code' + reportid + '">' + message + '</textarea>\
2166
                        <div class="modal-footer">\
2166
                        <div class="modal-footer">\
2167
                            <a id="preview-modal-editreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?reports=' + reportid + '&amp;phase=Edit%20SQL"><i class="fa fa-pencil"></i> Edit</a>\
2167
                            <a id="preview-modal-editreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?reports=' + reportid + '&amp;phase=Edit%20SQL"><i class="fa fa-pencil"></i> ' + _("Edit") + '</a>\
2168
                            <a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from existing&amp;report_id=' + reportid + '"><i class="fa fa-copy"></i> Duplicate</a>\
2168
                            <a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from existing&amp;report_id=' + reportid + '"><i class="fa fa-copy"></i> ' + _("Duplicate") + '</a>\
2169
                            <a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/tools/scheduler.pl?id=' + reportid + '"><i class="fa fa-clock-o"></i> Schedule</a>\
2169
                            <a id="preview-modal-duplicate" class="btn btn-default" href="/cgi-bin/koha/tools/scheduler.pl?id=' + reportid + '"><i class="fa fa-clock-o"></i> ' + _("Schedule") + '</a>\
2170
                            <a id="preview-modal-delete" class="delete btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?reports=' + reportid + '&amp;phase=Delete%20Saved"><i class="fa fa-trash"></i> Delete</a>\
2170
                            <a id="preview-modal-delete" class="delete btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?reports=' + reportid + '&amp;phase=Delete%20Saved"><i class="fa fa-trash"></i> ' + _("Delete") + '</a>\
2171
                            <a id="preview-modal-runreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?reports=' + reportid + '&amp;phase=Run%20this%20report"><i class="fa fa-play"></i> Run report</a>\
2171
                            <a id="preview-modal-runreport" class="btn btn-default" href="/cgi-bin/koha/reports/guided_reports.pl?reports=' + reportid + '&amp;phase=Run%20this%20report"><i class="fa fa-play"></i> ' + _("Run report") + '</a>\
2172
                            <a href="#" id="preview-sql-modal-cancel" data-dismiss="modal" class="btn btn-default"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>\
2172
                            <a href="#" id="preview-sql-modal-cancel" data-dismiss="modal" class="btn btn-default"><i class="fa fa-remove" aria-hidden="true"></i> ' + _("Close") + '</a>\
2173
                        </div>\
2173
                        </div>\
2174
                    </div>\
2174
                    </div>\
2175
                </div>\
2175
                </div>\
2176
- 

Return to bug 27644