View | Details | Raw Unified | Return to bug 19128
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-9 / +9 lines)
Lines 109-117 $(document).ready(function() { Link Here
109
                <option value="">All libraries</option>
109
                <option value="">All libraries</option>
110
                [% FOREACH branch IN branches_loop %]
110
                [% FOREACH branch IN branches_loop %]
111
                  [% IF ( branch.selected ) %]
111
                  [% IF ( branch.selected ) %]
112
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
112
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
113
                  [% ELSE %]
113
                  [% ELSE %]
114
                    <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
114
                    <option value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
115
                  [% END %]
115
                  [% END %]
116
                [% END %]
116
                [% END %]
117
            </select>
117
            </select>
Lines 164-170 $(document).ready(function() { Link Here
164
[% IF op == 'list' %]
164
[% IF op == 'list' %]
165
165
166
<div id="toolbar" class="btn-toolbar">
166
<div id="toolbar" class="btn-toolbar">
167
    <a id="addauth" class="btn btn-default btn-sm" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=[% category %]"><i class="fa fa-plus"> </i> New authorized value for [% category %]</a>
167
    <a id="addauth" class="btn btn-default btn-sm" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=[% category %]"><i class="fa fa-plus"> </i> New authorized value for [% category |html %]</a>
168
    <a id="addcat" class="btn btn-default btn-sm" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="fa fa-plus"> </i> New category</a>
168
    <a id="addcat" class="btn btn-default btn-sm" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form"><i class="fa fa-plus"> </i> New category</a>
169
</div>
169
</div>
170
170
Lines 207-215 $(document).ready(function() { Link Here
207
  <select name="searchfield" id="searchfield" size="1">
207
  <select name="searchfield" id="searchfield" size="1">
208
  [% FOR c IN categories %]
208
  [% FOR c IN categories %]
209
    [% IF c == searchfield %]
209
    [% IF c == searchfield %]
210
      <option value="[% c %]" selected="selected">[% c %]</option>
210
      <option value="[% c %]" selected="selected">[% c |html %]</option>
211
    [% ELSE %]
211
    [% ELSE %]
212
      <option value="[% c %]">[% c %]</option>
212
      <option value="[% c %]">[% c |html %]</option>
213
    [% END %]
213
    [% END %]
214
  [% END %]
214
  [% END %]
215
  <input type="submit" value="Submit" />
215
  <input type="submit" value="Submit" />
Lines 250-256 $(document).ready(function() { Link Here
250
 [% IF ( category == 'NOT_LOAN' ) %]
250
 [% IF ( category == 'NOT_LOAN' ) %]
251
    <p>Statuses to describe why an item is not for loan</p>
251
    <p>Statuses to describe why an item is not for loan</p>
252
 [% END %]
252
 [% END %]
253
<h3>Authorized values for category [% category %]:</h3>
253
<h3>Authorized values for category [% category |html %]:</h3>
254
254
255
[% IF ( loop ) %]<div id="pagertable_authorized_values">
255
[% IF ( loop ) %]<div id="pagertable_authorized_values">
256
</div>[% END %]
256
</div>[% END %]
Lines 272-279 $(document).ready(function() { Link Here
272
<tr>
272
<tr>
273
[% END %]
273
[% END %]
274
	<td>[% loo.authorised_value %]</td>
274
	<td>[% loo.authorised_value %]</td>
275
	<td>[% loo.lib %]</td>
275
	<td>[% loo.lib |html %]</td>
276
	<td>[% loo.lib_opac %]</td>
276
	<td>[% loo.lib_opac |html %]</td>
277
	<td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %]&nbsp;[% END %]</td>
277
	<td>[% IF ( loo.imageurl ) %]<img src="[% loo.imageurl %]" alt=""/>[% ELSE %]&nbsp;[% END %]</td>
278
    <td>
278
    <td>
279
        [% IF loo.branches.size > 0 %]
279
        [% IF loo.branches.size > 0 %]
Lines 296-302 $(document).ready(function() { Link Here
296
</tr>
296
</tr>
297
[% END %]
297
[% END %]
298
</tbody></table>[% ELSE %]
298
</tbody></table>[% ELSE %]
299
<div class="dialog message">There are no authorized values defined for [% category %]</div>
299
<div class="dialog message">There are no authorized values defined for [% category |html %]</div>
300
[% END %]
300
[% END %]
301
301
302
[% IF ( isprevpage ) %]
302
[% IF ( isprevpage ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-2 / +2 lines)
Lines 156-164 Link Here
156
                        <option value="">All branches</option>
156
                        <option value="">All branches</option>
157
                        [% FOREACH branch IN branches_loop %]
157
                        [% FOREACH branch IN branches_loop %]
158
                          [% IF branch.selected %]
158
                          [% IF branch.selected %]
159
                            <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
159
                            <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
160
                          [% ELSE %]
160
                          [% ELSE %]
161
                            <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
161
                            <option value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
162
                          [% END %]
162
                          [% END %]
163
                        [% END %]
163
                        [% END %]
164
                    </select>
164
                    </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-6 / +5 lines)
Lines 170-178 $(document).ready(function() { Link Here
170
                <option value="">All branches</option>
170
                <option value="">All branches</option>
171
                [% FOREACH branch IN branches_loop %]
171
                [% FOREACH branch IN branches_loop %]
172
                  [% IF ( branch.selected ) %]
172
                  [% IF ( branch.selected ) %]
173
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
173
                    <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
174
                  [% ELSE %]
174
                  [% ELSE %]
175
                    <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
175
                    <option value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
176
                  [% END %]
176
                  [% END %]
177
                [% END %]
177
                [% END %]
178
            </select>
178
            </select>
Lines 184-190 $(document).ready(function() { Link Here
184
            <select name="category_code" id="category">
184
            <select name="category_code" id="category">
185
                <option value=""></option>
185
                <option value=""></option>
186
                [% FOREACH cat IN categories %]
186
                [% FOREACH cat IN categories %]
187
                    [% IF ( cat.categorycode == category_code ) %]<option value="[% cat.categorycode %]" selected="selected">[% cat.description %]</option>[% ELSE %]<option value="[% cat.categorycode %]">[% cat.description %]</option>[% END %]
187
                    [% IF ( cat.categorycode == category_code ) %]<option value="[% cat.categorycode %]" selected="selected">[% cat.description |html %]</option>[% ELSE %]<option value="[% cat.categorycode %]">[% cat.description |html %]</option>[% END %]
188
                [% END %]
188
                [% END %]
189
            </select>
189
            </select>
190
            <span>Choose one to limit this attribute to one patron type. Please leave blank if you want these attributes to be available for all types of patrons.</span>
190
            <span>Choose one to limit this attribute to one patron type. Please leave blank if you want these attributes to be available for all types of patrons.</span>
Lines 196-206 $(document).ready(function() { Link Here
196
                [% FOREACH class IN classes_val_loop %]
196
                [% FOREACH class IN classes_val_loop %]
197
                    [% IF class.authorised_value == category_class %]
197
                    [% IF class.authorised_value == category_class %]
198
                        <option value="[% class.authorised_value %]" selected="selected">
198
                        <option value="[% class.authorised_value %]" selected="selected">
199
                            [% class.lib %]
199
                            [% class.lib |html %]
200
                        </option>
200
                        </option>
201
                    [% ELSE %]
201
                    [% ELSE %]
202
                        <option value="[% class.authorised_value %]" >
202
                        <option value="[% class.authorised_value %]" >
203
                            [% class.lib %]
203
                            [% class.lib |html %]
204
                        </option>
204
                        </option>
205
                    [% END %]
205
                    [% END %]
206
                [% END %]
206
                [% END %]
207
- 

Return to bug 19128