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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-1 / +10 lines)
Lines 328-333 Link Here
328
                                <th>Library limitation</th>
328
                                <th>Library limitation</th>
329
                                <th>Authorized value category</th>
329
                                <th>Authorized value category</th>
330
                                <th>Mandatory</th>
330
                                <th>Mandatory</th>
331
                                <th>Mandatory - OPAC</th>
331
                                <th>Searching</th>
332
                                <th>Searching</th>
332
                                <th class="NoSort noExport">Actions</th>
333
                                <th class="NoSort noExport">Actions</th>
333
                            </tr>
334
                            </tr>
Lines 369-374 Link Here
369
                                            <span>No</span>
370
                                            <span>No</span>
370
                                        [% END %]
371
                                        [% END %]
371
                                    </td>
372
                                    </td>
373
                                    <td>
374
                                        [% IF ( item.opac_mandatory ) -%]
375
                                            <span>Yes</span>
376
                                        [% ELSE -%]
377
                                            <span>No</span>
378
                                        [% END %]
379
                                    </td>
372
                                    <td>
380
                                    <td>
373
                                        [% IF ( item.staff_searchable ) %]
381
                                        [% IF ( item.staff_searchable ) %]
374
                                            [% IF( item.searched_by_default ) %]
382
                                            [% IF( item.searched_by_default ) %]
Lines 424-431 Link Here
424
                .change(function () {
432
                .change(function () {
425
                    if (this.checked) {
433
                    if (this.checked) {
426
                        $("#opac_editable").removeAttr("disabled").parent().removeAttr("aria-disabled");
434
                        $("#opac_editable").removeAttr("disabled").parent().removeAttr("aria-disabled");
435
                        $("#opac_mandatory").removeAttr("disabled").parent().removeAttr("aria-disabled");
427
                    } else {
436
                    } else {
428
                        $("#opac_editable").attr("disabled", true).parent().attr("aria-disabled", "true");
437
                        $("#opac_editable").attr("disabled", true).parent().attr("aria-disabled", "true");
438
                        $("#opac_mandatory").attr("disabled", true).parent().attr("aria-disabled", "true");
429
                    }
439
                    }
430
                })
440
                })
431
                .change();
441
                .change();
432
- 

Return to bug 35635