Bug 27827: (follow-up) add a hint for clarification
When adding a new authority type, there is no indication of how big the authority type code can be (auth_types.authtypecode in the DB has a maximum length of 10 characters). This patch fixes that. To test, apply the patch and notice the hint appearing right above the "Authority type:" text box as you add a new authority type: it should display "10 characters maximum" in grey colour. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commitc359c15436) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitc3c8274197) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
9d492f2c4e
commit
ffceb3f79c
|
|
@ -73,6 +73,7 @@
|
|||
<input type="hidden" name="checked" value="0" />
|
||||
<input type="hidden" name="authtypecode" value="[% authority_type.authtypecode | html %]" />[% authority_type.authtypecode | html %]
|
||||
[% ELSE %]
|
||||
<div class="hint">10 characters maximum</div>
|
||||
<label for="authtypecode" class="required">Authority type: </label>
|
||||
<input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="20" maxlength="10" />
|
||||
<span class="required">Required</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue