Lines 239-259
Link Here
|
239 |
|
239 |
|
240 |
[% UNLESS hidden.defined('branchcode') %] |
240 |
[% UNLESS hidden.defined('branchcode') %] |
241 |
<li> |
241 |
<li> |
242 |
[% IF mandatory.defined('branchcode') %] |
242 |
[% IF ( libraries.size > 1 ) %] |
243 |
<label for="borrower_branchcode" class="required">Home library:</label> |
243 |
[% IF mandatory.defined('branchcode') %] |
244 |
[% ELSE %] |
244 |
<label for="borrower_branchcode" class="required">Home library:</label> |
245 |
<label for="borrower_branchcode">Home library:</label> |
245 |
[% ELSE %] |
246 |
[% END %] |
246 |
<label for="borrower_branchcode">Home library:</label> |
|
|
247 |
[% END %] |
247 |
|
248 |
|
248 |
<select id="borrower_branchcode" name="borrower_branchcode"> |
249 |
<select id="borrower_branchcode" name="borrower_branchcode"> |
249 |
[% FOREACH l IN libraries %] |
250 |
[% FOREACH l IN libraries %] |
250 |
[% IF l.branchcode == borrower.branchcode %] |
251 |
[% IF l.branchcode == borrower.branchcode %] |
251 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
252 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
252 |
[% ELSE %] |
253 |
[% ELSE %] |
253 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
254 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
|
|
255 |
[% END %] |
254 |
[% END %] |
256 |
[% END %] |
|
|
257 |
</select> |
258 |
[% ELSE %] |
259 |
<span class="label">Home library:</span> |
260 |
[% FOREACH l IN libraries %] |
261 |
[% l.branchname | html %] |
262 |
<input type="hidden" name="borrower_branchcode" value="[% l.branchcode | html %]" /> |
255 |
[% END %] |
263 |
[% END %] |
256 |
</select> |
264 |
[% END %] |
257 |
</li> |
265 |
</li> |
258 |
[% END %] |
266 |
[% END %] |
259 |
|
267 |
|
260 |
- |
|
|