Bug 31409: Set focus for cursor to Fund code when adding a new fund

This makes sure that the focus is on the first input field
of the form when adding or editing a fund.

To test:
* Go to administration > funds
* Add a new fund to the budget
* Verify the focus is not inside the form
* Apply patch
* Verify the focus is now in the first form field "Fund code"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2023-02-05 00:06:40 +00:00 committed by Tomas Cohen Arazi
parent aaa5bcd16b
commit 6d743dd63e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -267,7 +267,7 @@
[% END %]
<li>
<label class="required" for="budget_code">Fund code: </label>
<input type="text" name="budget_code" id="budget_code" value="[% budget_code | html %]" size="30" />
<input type="text" name="budget_code" id="budget_code" class="focus" value="[% budget_code | html %]" size="30" />
</li>
<li>