Bugzilla – Attachment 116858 Details for
Bug 8326
Allow patron attributes to be made repeatable after initial creation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8326: Add aria-disabled to li's
Bug-8326-Add-aria-disabled-to-lis.patch (text/plain), 2.77 KB, created by
Katrin Fischer
on 2021-02-14 14:42:48 UTC
(
hide
)
Description:
Bug 8326: Add aria-disabled to li's
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-02-14 14:42:48 UTC
Size:
2.77 KB
patch
obsolete
>From aa452ba85dae2585d02ab477d27aeecd8dd0de55 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 8 Feb 2021 11:03:17 +0100 >Subject: [PATCH] Bug 8326: Add aria-disabled to li's > >To have the same display of "Editable in OPAC" > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/admin/patron-attr-types.tt | 21 +++++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >index 74db9cd1dd..bc91ae1365 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >@@ -77,7 +77,13 @@ > <input type="text" id="description" name="description" required="required" class="required" size="50" maxlength="250" value="[% attribute_type.description |html %]" /> > <span class="required">Required</span> > </li> >- <li><label for="repeatable">Repeatable: </label> >+ >+ [% IF attribute_type AND attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %] >+ <li aria-disabled="true"> >+ [% ELSE %] >+ <li> >+ [% END %] >+ <label for="repeatable">Repeatable: </label> > [% IF attribute_type %] > [% IF attribute_type.repeatable AND NOT can_be_set_to_nonrepeatable %] > <input type="checkbox" id="repeatable" name="repeatable" checked="checked" disabled="disabled" /> >@@ -91,8 +97,14 @@ > <input type="checkbox" id="repeatable" name="repeatable" /> > [% END %] > <span>Check to let a patron record have multiple values of this attribute.</span> >- </li> >- <li><label for="unique_id">Unique identifier: </label> >+ </li> >+ >+ [% IF attribute_type AND not can_be_set_to_unique %] >+ <li aria-disabled="true"> >+ [% ELSE %] >+ <li> >+ [% END %] >+ <label for="unique_id">Unique identifier: </label> > [% IF attribute_type %] > [% IF attribute_type.unique_id %] > <input type="checkbox" id="unique_id" name="unique_id" checked="checked" /> >@@ -107,7 +119,8 @@ > [% END %] > <span>If checked, attribute will be a unique identifier — if a value is given to a patron record, the same value > cannot be given to a different record.</span> >- </li> >+ </li> >+ > <li><label for="opac_display">Display in OPAC: </label> > [% IF attribute_type AND attribute_type.opac_display %] > <input type="checkbox" id="opac_display" name="opac_display" checked="checked" /> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8326
:
104517
|
116193
|
116194
|
116294
|
116483
|
116484
|
116857
| 116858 |
116859