|
Lines 246-281
Link Here
|
| 246 |
</legend> |
246 |
</legend> |
| 247 |
|
247 |
|
| 248 |
<ol class="default_values" style="display:none;"> |
248 |
<ol class="default_values" style="display:none;"> |
| 249 |
[% FOREACH borrower_field IN borrower_fields %] |
249 |
[% FOREACH borrower_db_column IN borrower_fields.keys.sort %] |
| 250 |
|
250 |
[% SWITCH borrower_db_column %] |
| 251 |
[% SWITCH borrower_field.field %] |
|
|
| 252 |
[% CASE 'branchcode' %] |
251 |
[% CASE 'branchcode' %] |
| 253 |
<li> |
252 |
<li> |
| 254 |
<label class="description" for="branchcode">[% borrower_field.description | html %]: </label> |
253 |
<label class="description" for="branchcode">[% borrower_fields.$borrower_db_column | html %]: </label> |
| 255 |
<select id="branchcode" name="branchcode"> |
254 |
<select id="branchcode" name="branchcode"> |
| 256 |
<option value="" selected="selected"></option> |
255 |
<option value="" selected="selected"></option> |
| 257 |
[% FOREACH library IN Branches.all() %] |
256 |
[% FOREACH library IN Branches.all() %] |
| 258 |
<option value="[% library.branchcode | html %]">[% library.branchname | html %]</option> |
257 |
<option value="[% library.branchcode | html %]">[% library.branchname | html %]</option> |
| 259 |
[% END %] |
258 |
[% END %] |
| 260 |
</select> |
259 |
</select> |
| 261 |
<span class="field_hint">[% borrower_field.field | html %]</span> |
260 |
<span class="field_hint">[% borrower_db_column | html %]</span> |
| 262 |
</li> |
261 |
</li> |
| 263 |
[% CASE 'categorycode' %] |
262 |
[% CASE 'categorycode' %] |
| 264 |
<li> |
263 |
<li> |
| 265 |
<label class="description" for="categorycode">[% borrower_field.description | html %]: </label> |
264 |
<label class="description" for="categorycode">[% borrower_fields.$borrower_db_column | html %]: </label> |
| 266 |
<select id="categorycode" name="categorycode"> |
265 |
<select id="categorycode" name="categorycode"> |
| 267 |
<option value="" selected="selected"></option> |
266 |
<option value="" selected="selected"></option> |
| 268 |
[% FOREACH category IN categories %] |
267 |
[% FOREACH category IN categories %] |
| 269 |
<option value="[% category.categorycode | html %]">[% category.description | html %]</option> |
268 |
<option value="[% category.categorycode | html %]">[% category.description | html %]</option> |
| 270 |
[% END %] |
269 |
[% END %] |
| 271 |
</select> |
270 |
</select> |
| 272 |
<span class="field_hint">[% borrower_field.field | html %]</span> |
271 |
<span class="field_hint">[% borrower_db_column | html %]</span> |
| 273 |
</li> |
272 |
</li> |
| 274 |
[% CASE %] |
273 |
[% CASE %] |
| 275 |
<li> |
274 |
<li> |
| 276 |
<label class="description" for="[% borrower_field.field | html %]">[% borrower_field.description | html %]: </label> |
275 |
<label class="description" for="[% borrower_db_column| html %]">[% borrower_fields.$borrower_db_column | html %]: </label> |
| 277 |
<input id="[% borrower_field.field | html %]" name="[% borrower_field.field | html %]" type="text" /> |
276 |
<input id="[% borrower_db_column | html %]" name="[% borrower_db_column | html %]" type="text" /> |
| 278 |
<span class="field_hint">[% borrower_field.field | html %]</span> |
277 |
<span class="field_hint">[% borrower_db_column | html %]</span> |
| 279 |
</li> |
278 |
</li> |
| 280 |
[% END %] |
279 |
[% END %] |
| 281 |
[% END %] |
280 |
[% END %] |
|
Lines 298-308
Link Here
|
| 298 |
|
297 |
|
| 299 |
<ol class="preserve_values" style="display:none;"> |
298 |
<ol class="preserve_values" style="display:none;"> |
| 300 |
<div class="hint">Selected fields will be preserved from original patron record when overwriting existing patron.</div> |
299 |
<div class="hint">Selected fields will be preserved from original patron record when overwriting existing patron.</div> |
| 301 |
[% FOREACH borrower_field IN borrower_fields %] |
300 |
[% FOREACH borrower_db_column IN borrower_fields.keys.sort %] |
| 302 |
<li> |
301 |
<li> |
| 303 |
<label class="description" for="preserve_existing_[% borrower_field.field | html %]">[% borrower_field.description | html %]: </label> |
302 |
<label class="description" for="preserve_existing_[% borrower_db_column | html %]">[% borrower_fields.$borrower_db_column | html %]: </label> |
| 304 |
<input name="preserve_existing" id="preserve_existing_[% borrower_field.field | html %]" value="[% borrower_field.field | html %]" type="checkbox"> |
303 |
<input name="preserve_existing" id="preserve_existing_[% borrower_db_column | html %]" value="[% borrower_db_column | html %]" type="checkbox"> |
| 305 |
<span class="field_hint">[% borrower_field.field | html %]</span> |
304 |
<span class="field_hint">[% borrower_db_column | html %]</span> |
| 306 |
</li> |
305 |
</li> |
| 307 |
[% END %] |
306 |
[% END %] |
| 308 |
</ol> |
307 |
</ol> |
|
Lines 364-370
Link Here
|
| 364 |
OR choose which fields you want to supply from the following list: |
363 |
OR choose which fields you want to supply from the following list: |
| 365 |
<ul> |
364 |
<ul> |
| 366 |
<li> |
365 |
<li> |
| 367 |
[% FOREACH columnkey IN borrower_fields %]'[% columnkey.field | html %]', [% END %] |
366 |
[% FOREACH columnkey IN borrower_fields.keys.sort %]'[% columnkey | html %]', [% END %] |
| 368 |
</li> |
367 |
</li> |
| 369 |
</ul> |
368 |
</ul> |
| 370 |
</li> |
369 |
</li> |