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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt (-6 / +7 lines)
Lines 1379-1387 Link Here
1379
                    <input type="hidden" name="param_category" id="param_category" />
1379
                    <input type="hidden" name="param_category" id="param_category" />
1380
                    <div class="modal-body">
1380
                    <div class="modal-body">
1381
                        <div class="form-group">
1381
                        <div class="form-group">
1382
                            <label for="paramLabel">Parameter label: </label>
1382
                            <label for="paramLabel" class="required">Parameter label: </label>
1383
                            <input class="form-control" type="text" name="paramLabel" id="paramLabel">
1383
                            <input class="form-control required" type="text" name="paramLabel" id="paramLabel" required="required" />
1384
                            <div class="hint">Optional. The label for the field shown when the report is run, e.g. "Select a library."</div>
1384
                            <div class="hint">The label for the field shown when the report is run, e.g. "Select a library."</div>
1385
                        </div>
1385
                        </div>
1386
                        <div id="authorised_value_category" class="form-group" style="display:none">
1386
                        <div id="authorised_value_category" class="form-group" style="display:none">
1387
                            <label for="authorised_value">Authorized value category:</label>
1387
                            <label for="authorised_value">Authorized value category:</label>
Lines 1528-1534 Link Here
1528
                    modalTitle.text( _("Insert authorized value parameter") );
1528
                    modalTitle.text( _("Insert authorized value parameter") );
1529
                    $("#paramLabel").val( _("Authorized value") );
1529
                    $("#paramLabel").val( _("Authorized value") );
1530
                    $("#authorised_value_category").show();
1530
                    $("#authorised_value_category").show();
1531
                    $("#authorised_value").prop("required", true ).attr("required", "required");
1531
                    $("label[for='authorised_value']").addClass("required");
1532
                    $("#authorised_value").prop("required", true ).attr("required", "required").addClass("required");
1532
                    break;
1533
                    break;
1533
                case "insertDate":
1534
                case "insertDate":
1534
                    modalTitle.text( _("Insert date parameter") );
1535
                    modalTitle.text( _("Insert date parameter") );
Lines 1953-1959 Link Here
1953
                $("#runtime_parameters").on("hide.bs.modal", function(){
1954
                $("#runtime_parameters").on("hide.bs.modal", function(){
1954
                    $("#send_runtime_parameter")[0].reset();
1955
                    $("#send_runtime_parameter")[0].reset();
1955
                    $("#authorised_value_category").val("").hide();
1956
                    $("#authorised_value_category").val("").hide();
1956
                    $("#authorised_value").prop("required", false ).removeAttr("required");
1957
                    $("label[for='authorised_value']").removeClass("required");
1958
                    $("#authorised_value").prop("required", false ).removeAttr("required").removeClass("required");
1957
                });
1959
                });
1958
1960
1959
                $("#send_runtime_parameter").on("submit", function(e){
1961
                $("#send_runtime_parameter").on("submit", function(e){
1960
- 

Return to bug 29352