|
Lines 1523-1529
Link Here
|
| 1523 |
[% END %] |
1523 |
[% END %] |
| 1524 |
[% FOREACH patron_attribute IN pa_loo.items %] |
1524 |
[% FOREACH patron_attribute IN pa_loo.items %] |
| 1525 |
<li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]"> |
1525 |
<li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]"> |
| 1526 |
[% IF patron_attribute.mandatory && patron_attribute.category_code == patron_category.categorycode %] |
1526 |
[% IF patron_attribute.mandatory && (patron_attribute.category_code == patron_category.categorycode || !patron_attribute.category_code) %] |
| 1527 |
<label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label> |
1527 |
<label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label> |
| 1528 |
[% ELSE %] |
1528 |
[% ELSE %] |
| 1529 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
1529 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
|
Lines 1532-1538
Link Here
|
| 1532 |
<select |
1532 |
<select |
| 1533 |
id="[% patron_attribute.form_id | html %]" |
1533 |
id="[% patron_attribute.form_id | html %]" |
| 1534 |
name="[% patron_attribute.form_id | html %]" |
1534 |
name="[% patron_attribute.form_id | html %]" |
| 1535 |
[% IF patron_attribute.mandatory && patron_attribute.category_code == patron_category.categorycode %]required="required"[% END %] |
1535 |
[% IF patron_attribute.mandatory && (patron_attribute.category_code == patron_category.categorycode || !patron_attribute.category_code) %]required="required"[% END %] |
| 1536 |
> |
1536 |
> |
| 1537 |
<option value=""></option> |
1537 |
<option value=""></option> |
| 1538 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
1538 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
|
Lines 1544-1550
Link Here
|
| 1544 |
[% END %] |
1544 |
[% END %] |
| 1545 |
</select> |
1545 |
</select> |
| 1546 |
[% ELSE %] |
1546 |
[% ELSE %] |
| 1547 |
[% IF patron_attribute.mandatory %] |
1547 |
[% IF patron_attribute.mandatory && (patron_attribute.category_code == patron_category.categorycode || !patron_attribute.category_code) %] |
| 1548 |
[% IF patron_attribute.is_date %] |
1548 |
[% IF patron_attribute.is_date %] |
| 1549 |
<input |
1549 |
<input |
| 1550 |
type="text" |
1550 |
type="text" |
| 1551 |
- |
|
|