<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
- $("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
+ $("fieldset.rows input").addClass("noEnterSubmit");
$("#guarantordelete").click(function() {
$("#contact-details").hide().find('a').remove();
$("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
[% END %]
[% IF ( ERROR_extended_unique_id_failed ) %]
<li id="ERROR_extended_unique_id_failed">The attribute value
- [% ERROR_extended_unique_id_failed %] is already is use by another patron record.</li>
+ [% ERROR_extended_unique_id_failed_value %] is already in use by another patron record.</li>
[% END %]
</ul>
</div>
<label for="dateofbirth">
[% END %]
Date of birth: </label>
-
- [% IF ( metric ) %]
+
+ [% IF ( dateformat == "metric" ) %]
<input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
-[% ELSE %]
+ [% ELSE %]
<input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
-[% END %]
+ [% END %]
[% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
[% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
[% END %]
[% UNLESS nobranchcode %]
<li>
- [%- IF ( mandatorybranchcode ) -%]
- <label for="branchcode" class="required">
- [%- ELSE -%]
- <label for="branchcode">
- [%- END -%]
- Library:</label>
- <select name="branchcode" size="1" id="branchcode">
- <option value=""></option>
+ <label for="branchcode" class="required">Library:</label>
+ <select name="branchcode" size="1" id="branchcode">
[%- FOREACH branchloo IN branchloop %]
[% IF ( branchloo.selected ) -%]
<option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
[%- END -%]
[%- END %]
</select>
- [% IF ( mandatorybranchcode ) -%]
<span class="required">Required</span>
- [%- END %]
</li>
[% END %]
<li>
- <label for="categorycode">Category: </label>
+ <label for="categorycode" class="required">Category: </label>
<select id="categorycode" name="categorycode" onchange="update_category_code(this);">
[% FOREACH typeloo IN typeloop %]
[% FOREACH categoryloo IN typeloo.categoryloop %]
[% END %]
[% END %]
</select>
+ <span class="required">Required</span>
</li>
[% UNLESS nosort1 %]
<li>
<label for="from">
[% END %]
Registration date: </label>
- [% IF ( metric ) %]
+ [% IF ( dateformat == "metric" ) %]
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
- [% ELSE %]
+ [% ELSE %]
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
- [% END %]
+ [% END %]
[% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
<label for="to">
[% END %]
Expiry date (leave blank for auto calc) </label>
- [% IF ( metric ) %]
+ [% IF ( dateformat == "metric" ) %]
[% UNLESS ( opadd ) %]
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" class="datepickerto" />
[% ELSE %]