From 1ddf1119d3413ef42a73fbafa938c71f313d73aa Mon Sep 17 00:00:00 2001 From: Owen Leonard <oleonard@myacpl.org> Date: Tue, 14 May 2013 15:09:14 -0400 Subject: [PATCH] [SIGNED-OFF] Bug 6329 - patron categories should show which fields are required When entering a new patron category, required fields are not indicated on the entry form. This patch adds the "required" class to the relevant labels. To test, add or edit a patron category. Confirm that the required fields (category code, category type, description, and enrollment period) are indicated as being required with a red label. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> --- .../prog/en/modules/admin/categorie.tt | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt index 98e09ff..c28f412 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt @@ -143,10 +143,10 @@ <li><span class="label">Category code: </span>[% categorycode |html %] <input type="hidden" name="categorycode" value="[% categorycode |html %]" /><input type="hidden" name="is_a_modif" value="1" /></li> [% ELSE %] - <li><label for="categorycode">Category code: </label> <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" onblur="toUC(this)" /></li> + <li><label for="categorycode" class="required">Category code: </label> <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" onblur="toUC(this)" /></li> [% END %] - <li><label for="description">Description: </label> <input type="text" name="description" id="description" size="40" maxlength="80" value="[% description |html %]" /></li> - <li><label for="enrolmentperiod">Enrollment period: </label> + <li><label for="description" class="required">Description: </label> <input type="text" name="description" id="description" size="40" maxlength="80" value="[% description |html %]" /></li> + <li><label for="enrolmentperiod" class="required">Enrollment period: </label> <fieldset> <legend>Choose one</legend> <ol> @@ -181,7 +181,7 @@ [% END %] </select></li> <li><label for="reservefee">Hold fee: </label><input type="text" name="reservefee" id="reservefee" size="6" value="[% reservefee %]" /></li> - <li><label for="category_type">Category type: </label> <select name="category_type" id="category_type"> + <li><label for="category_type" class="required">Category type: </label> <select name="category_type" id="category_type"> [% IF ( type_n ) %]<option value="" selected="selected">Select a category type</option>[% ELSE %]<option value="">Select a category type</option>[% END %] [% IF ( type_A ) %]<option value="A" selected="selected">Adult</option>[% ELSE %]<option value="A">Adult</option>[% END %] [% IF ( type_C ) %]<option value="C" selected="selected">Child</option>[% ELSE %]<option value="C">Child</option>[% END %] -- 1.7.2.3