Bug 31414: Set focus to name in additional fields.
authorIsobel Graham <isobel.graham09@gmail.com>
Sun, 6 Nov 2022 14:28:42 +0000 (14:28 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 9 Nov 2022 16:55:56 +0000 (13:55 -0300)
Focus is set to name on additional fields on
administation add fields.

Test plan
1. Go to administation and manange additional
fields.
2. If you then add field the focus should
automatically go to the field name.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt

index ee40903..ae89d06 100755 (executable)
                 <ol>
                     <li>
                         <label for="name" class="required">Name: </label>
-                        <input type="text" name="name" id="name" value="[% field.name | html %]" class="required" required="required" />
+                        <input type="text" name="name" id="name" value="[% field.name | html %]" class="focus" required="required" />
                         <span class="required">Required</span>
                     </li>
                     <li>