Lines 3-17
Link Here
|
3 |
[% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %] |
3 |
[% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %] |
4 |
[% IF whole.error %] |
4 |
[% IF whole.error %] |
5 |
[% IF whole.status == 'missing_identifier' %] |
5 |
[% IF whole.status == 'missing_identifier' %] |
6 |
<p><em>Please Note:</em> Mandatory field Identifier is missing.</p> |
6 |
<div class="alert alert-warning"> |
|
|
7 |
<strong>Please note:</strong> Mandatory field Identifier is missing. |
8 |
</div> |
7 |
[% ELSIF whole.status == 'missing_type' %] |
9 |
[% ELSIF whole.status == 'missing_type' %] |
8 |
<p><em>Please Note:</em> Type is a mandatory field.</p> |
10 |
<div class="alert alert-warning"> |
|
|
11 |
<strong>Please note:</strong> Type is a mandatory field. |
12 |
</div> |
9 |
[% ELSIF whole.status == 'missing_branch' %] |
13 |
[% ELSIF whole.status == 'missing_branch' %] |
10 |
<p><em>Please Note:</em> Branch is a mandatory field.</p> |
14 |
<div class="alert alert-warning"> |
|
|
15 |
<strong>Please note:</strong> Library is a mandatory field. |
16 |
</div> |
11 |
[% ELSIF whole.status == 'invalid_borrower' %] |
17 |
[% ELSIF whole.status == 'invalid_borrower' %] |
12 |
<p><em>Please Note:</em> The borrower details you entered are invalid.</p> |
18 |
<div class="alert alert-warning"> |
|
|
19 |
<strong>Please note:</strong> The patron details you entered are invalid. |
20 |
</div> |
13 |
[% ELSIF whole.status == 'invalid_branch' %] |
21 |
[% ELSIF whole.status == 'invalid_branch' %] |
14 |
<p><em>Please Note:</em> The branch you chose is invalid.</p> |
22 |
<div class="alert alert-warning"> |
|
|
23 |
<strong>Please note:</strong> The library you chose is invalid. |
24 |
</div> |
15 |
[% ELSE %] |
25 |
[% ELSE %] |
16 |
<p>Unhandled error</p> |
26 |
<p>Unhandled error</p> |
17 |
[% END %] |
27 |
[% END %] |
Lines 25-36
Link Here
|
25 |
<fieldset class="rows"> |
35 |
<fieldset class="rows"> |
26 |
<legend>Patron options</legend> |
36 |
<legend>Patron options</legend> |
27 |
<ol> |
37 |
<ol> |
28 |
<li> |
|
|
29 |
[% WRAPPER ill_select_field required = 1 id = 'branchcode' label = t('Destination library') %] |
38 |
[% WRAPPER ill_select_field required = 1 id = 'branchcode' label = t('Destination library') %] |
30 |
<option value="" /> |
39 |
<option value=""></option> |
31 |
[% FOREACH branch IN branches %] |
40 |
[% FOREACH branch IN branches %] |
32 |
[% IF whole.value.other.branchcode && branch.branchcode == whole.value.other.branchcode %] |
41 |
[% IF whole.value.other.branchcode && branch.branchcode == whole.value.other.branchcode %] |
33 |
<option value="[% branch.branchcode | html %]" selected> |
42 |
<option value="[% branch.branchcode | html %]" selected="selected"> |
34 |
[% branch.branchname | html %] |
43 |
[% branch.branchname | html %] |
35 |
</option> |
44 |
</option> |
36 |
[% ELSE %] |
45 |
[% ELSE %] |
Lines 40-54
Link Here
|
40 |
[% END %] |
49 |
[% END %] |
41 |
[% END %] |
50 |
[% END %] |
42 |
[% END #ill_select_field %] |
51 |
[% END #ill_select_field %] |
43 |
</li> |
|
|
44 |
</ol> |
52 |
</ol> |
45 |
</fieldset> |
53 |
</fieldset> |
46 |
<fieldset class="rows"> |
54 |
<fieldset class="rows"> |
47 |
<legend>General details</legend> |
55 |
<legend>General details</legend> |
48 |
<ol id="general-standard-fields"> |
56 |
<ol id="general-standard-fields"> |
49 |
[% WRAPPER ill_select_field required = 1 id = 'type' label = t('Type') %] |
57 |
[% WRAPPER ill_select_field required = 1 id = 'type' label = t('Type') %] |
50 |
<li> |
58 |
<option value=""></option> |
51 |
<option value=""/> |
|
|
52 |
[% IF whole.value.other.type.lower == "book" %] |
59 |
[% IF whole.value.other.type.lower == "book" %] |
53 |
<option value="book" selected="selected">Book</option> |
60 |
<option value="book" selected="selected">Book</option> |
54 |
[% ELSE %] |
61 |
[% ELSE %] |
Lines 94-101
Link Here
|
94 |
[% ELSE %] |
101 |
[% ELSE %] |
95 |
<option value="resource">Generic resource</option> |
102 |
<option value="resource">Generic resource</option> |
96 |
[% END %] |
103 |
[% END %] |
97 |
</li> |
104 |
[% END #ill_select_field %] |
98 |
[% END #ill_select_field %] |
|
|
99 |
</ol> |
105 |
</ol> |
100 |
</fieldset> |
106 |
</fieldset> |
101 |
[% type = whole.value.other.type %] |
107 |
[% type = whole.value.other.type %] |
Lines 122-125
Link Here
|
122 |
[% INCLUDE "${cwd}/shared-includes/shared.js" %] |
128 |
[% INCLUDE "${cwd}/shared-includes/shared.js" %] |
123 |
// ]]> |
129 |
// ]]> |
124 |
</script> |
130 |
</script> |
125 |
[% END %] |
131 |
[% END %] |