Lines 1-6
Link Here
|
1 |
[% USE Branches %] |
1 |
[% USE Branches %] |
2 |
[% USE AuthorisedValues %] |
2 |
[% USE AuthorisedValues %] |
3 |
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %] |
|
|
4 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Tools › Patron clubs › Club template</title> |
4 |
<title>Koha › Tools › Patron clubs › Club template</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 69-81
Link Here
|
69 |
<label for="name">Library:</label> |
68 |
<label for="name">Library:</label> |
70 |
<select name="branchcode" id="club-template-branchcode"> |
69 |
<select name="branchcode" id="club-template-branchcode"> |
71 |
<option value=""> </option> |
70 |
<option value=""> </option> |
72 |
[% FOREACH b IN Branches.GetBranches() %] |
71 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => club_template.branchcode ) %] |
73 |
[% IF b.branchcode == club_template.branchcode %] |
|
|
74 |
<option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option> |
75 |
[% ELSE %] |
76 |
<option value="[% b.branchcode %]">[% b.branchname %]</option> |
77 |
[% END %] |
78 |
[% END %] |
79 |
</select> |
72 |
</select> |
80 |
<span class="hint">If set, only librarians logged in with this branch will be able to modify this club template.</span> |
73 |
<span class="hint">If set, only librarians logged in with this branch will be able to modify this club template.</span> |
81 |
</li> |
74 |
</li> |
Lines 102-114
Link Here
|
102 |
<label for="field-description-[% f.id %]">Authorised value category:</label> |
95 |
<label for="field-description-[% f.id %]">Authorised value category:</label> |
103 |
<select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]"> |
96 |
<select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]"> |
104 |
<option value=""> </option> |
97 |
<option value=""> </option> |
105 |
[% FOREACH c IN AuthorisedValuesCategories %] |
98 |
[% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %] |
106 |
[% IF f.authorised_value_category == c %] |
|
|
107 |
<option selected="selected" value="[% c %]">[% c %]</option> |
108 |
[% ELSE %] |
109 |
<option value="[% c %]">[% c %]</option> |
110 |
[% END %] |
111 |
[% END %] |
112 |
</select> |
99 |
</select> |
113 |
</li> |
100 |
</li> |
114 |
|
101 |
|
Lines 147-159
Link Here
|
147 |
<label for="enrollment-field-description-[% f.id %]">Authorised value category:</label> |
134 |
<label for="enrollment-field-description-[% f.id %]">Authorised value category:</label> |
148 |
<select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]"> |
135 |
<select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]"> |
149 |
<option value=""> </option> |
136 |
<option value=""> </option> |
150 |
[% FOREACH c IN AuthorisedValuesCategories %] |
137 |
[% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %] |
151 |
[% IF f.authorised_value_category == c %] |
|
|
152 |
<option selected="selected" value="[% c %]">[% c %]</option> |
153 |
[% ELSE %] |
154 |
<option value="[% c %]">[% c %]</option> |
155 |
[% END %] |
156 |
[% END %] |
157 |
</select> |
138 |
</select> |
158 |
</li> |
139 |
</li> |
159 |
|
140 |
|
Lines 201-209
Link Here
|
201 |
<label for="club_template_field_authorised_value_category">Authorised value category:</label> |
182 |
<label for="club_template_field_authorised_value_category">Authorised value category:</label> |
202 |
<select name="club_template_field_authorised_value_category"> |
183 |
<select name="club_template_field_authorised_value_category"> |
203 |
<option value=""> </option> |
184 |
<option value=""> </option> |
204 |
[% FOREACH c IN AuthorisedValuesCategories %] |
185 |
[% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %] |
205 |
<option value="[% c %]">[% c %]</option> |
|
|
206 |
[% END %] |
207 |
</select> |
186 |
</select> |
208 |
</li> |
187 |
</li> |
209 |
|
188 |
|
Lines 231-239
Link Here
|
231 |
<label for="club_template_enrollment_field_authorised_value_category">Authorised value category:</label> |
210 |
<label for="club_template_enrollment_field_authorised_value_category">Authorised value category:</label> |
232 |
<select name="club_template_enrollment_field_authorised_value_category"> |
211 |
<select name="club_template_enrollment_field_authorised_value_category"> |
233 |
<option value=""> </option> |
212 |
<option value=""> </option> |
234 |
[% FOREACH c IN AuthorisedValuesCategories %] |
213 |
[% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %] |
235 |
<option value="[% c %]">[% c %]</option> |
|
|
236 |
[% END %] |
237 |
</select> |
214 |
</select> |
238 |
</li> |
215 |
</li> |
239 |
|
216 |
|
240 |
- |
|
|