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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-46 / +29 lines)
Lines 238-298 Item types › Administration › Koha Link Here
238
                [% END %]
238
                [% END %]
239
            </ol>
239
            </ol>
240
            [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %]
240
            [% UNLESS Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') %]
241
                    <h5>Choose an icon:</h5>
241
                <h5>Choose an icon:</h5>
242
242
243
                    [% WRAPPER tabs id= "icons" %]
243
                [% WRAPPER tabs id= "icons" %]
244
244
                    [% WRAPPER tabs_nav %]
245
                        [% WRAPPER tabs_nav %]
245
                        [% WRAPPER tab_item tabname="none" %]
246
                            [% WRAPPER tab_item tabname= "none" bt_active= 1 %] <span>None</span> [% END %]
246
                            <span>None</span>
247
                            [% WRAPPER tab_item tabname= "tab_name_2" %] content [% END %]
247
                        [% END %]
248
                        [% END # /WRAPPER tabs_nav %]
249
250
                        [% WRAPPER tab_panels %]
251
                            [% WRAPPER tab_panel tabname="tab_name_1" bt_active= 1 %]
252
                                content
253
                            [% END %]
254
                            [% WRAPPER tab_panel tabname="tab_name_2" %]
255
                                content
256
                            [% END %]
257
                        [% END # /WRAPPER tab_panels %]
258
259
                    [% END # /WRAPPER tabs %]
260
                    <ul class="nav nav-tabs" role="tablist">
261
                        <li role="presentation">
262
                            <a aria-controls="non" role="tab" data-toggle="tab" href="#none">None</a>
263
                        </li>
264
                        [% FOREACH imageset IN imagesets %]
248
                        [% FOREACH imageset IN imagesets %]
265
                            [% IF ( imageset.imagesetactive ) %]
249
                            [% IF ( imageset.imagesetactive ) %]
266
                                <li role="presentation" class="active">
250
                                [% SET bt_active = 1 %]
267
                            [% ELSE %]
251
                            [% ELSE %]
268
                                <li role="presentation">
252
                                [% SET bt_active = 0 %]
269
                            [% END %]
253
                            [% END %]
270
                                <a aria-controls="[% imageset.imagesetname | uri %]" role="tab" data-toggle="tab" href="#[% imageset.imagesetname | uri %]">[% imageset.imagesetname | html %]</a>
254
                            [% WRAPPER tab_item tabname= imageset.imagesetname bt_active= bt_active %] [% imageset.imagesetname | html %] [% END %]
271
                            </li>
272
                        [% END %]
255
                        [% END %]
273
                        [% IF itemtype.image_location('intranet').match('^http') %]
256
                        [% IF itemtype.image_location('intranet').match('^http') %]
274
                            <li role="presentation" class="active">
257
                            [% SET bt_active = 1 %]
275
                        [% ELSE %]
258
                        [% ELSE %]
276
                            <li role="presentation">
259
                            [% SET bt_active = 0 %]
277
                        [% END %]
260
                        [% END %]
278
                            <a aria-controls="remote" role="tab" data-toggle="tab" href="#remote">Remote image</a>
261
                        [% WRAPPER tab_item tabname= "remote" bt_active= bt_active %] <span>Remote image</span> [% END %]
279
                        </li>
262
                    [% END %]
280
                    </ul>
263
281
                    <div class="tab-content">
264
                    [% WRAPPER tab_panels %]
282
                        <div id="none" role="tabpanel" class="tab-pane">
265
                        [% WRAPPER tab_panel tabname="none" %]
283
                            <div class="itemtype-icons">
266
                            <div class="itemtype-icons">
284
                                <label for="noimage">No image:
267
                                <label for="noimage">No image:
285
                                    <input type="radio" name="image" id="noimage" value="removeImage" />
268
                                    <input type="radio" name="image" id="noimage" value="removeImage" />
286
                                </label>
269
                                </label>
287
                            </div>
270
                            </div>
288
                        </div> <!-- /.tab-pane -->
271
                        [% END %]
289
290
                        [% FOREACH imageset IN imagesets %]
272
                        [% FOREACH imageset IN imagesets %]
291
                            [% IF ( imageset.imagesetactive ) %]
273
                            [% IF ( imageset.imagesetactive ) %]
292
                                <div id="[% imageset.imagesetname | html %]" role="tabpanel" class="tab-pane active">
274
                                [% SET bt_active = 1 %]
293
                            [% ELSE %]
275
                            [% ELSE %]
294
                                <div id="[% imageset.imagesetname | html %]" role="tabpanel" class="tab-pane">
276
                                [% SET bt_active = 0 %]
295
                            [% END %]
277
                            [% END %]
278
                            [% WRAPPER tab_panel tabname=imageset.imagesetname bt_active= bt_active %]
296
                                <div class="itemtype-icons">
279
                                <div class="itemtype-icons">
297
                                    [% FOREACH image IN imageset.images %]
280
                                    [% FOREACH image IN imageset.images %]
298
                                        <label>
281
                                        <label>
Lines 307-321 Item types &rsaquo; Administration &rsaquo; Koha Link Here
307
                                        </label>
290
                                        </label>
308
                                    [% END #/ FOREACH image %]
291
                                    [% END #/ FOREACH image %]
309
                                </div> <!-- /.itemtype-icons -->
292
                                </div> <!-- /.itemtype-icons -->
310
                            </div> <!-- /.tab-pane -->
293
                            [% END # /tab_panel %]
311
                        [% END #/FOREACH imageset %]
294
                        [% END # /FOREACH imageset %]
312
313
                        [% SET image_location = itemtype.image_location('intranet') %]
295
                        [% SET image_location = itemtype.image_location('intranet') %]
314
                        [% IF image_location.match('^http') %]
296
                        [% IF image_location.match('^http') %]
315
                            <div id="remote" role="tabpanel" class="tab-pane active">
297
                            [% SET bt_active = 1 %]
316
                        [% ELSE %]
298
                        [% ELSE %]
317
                            <div id="remote" role="tabpanel" class="tab-pane">
299
                            [% SET bt_active = 0 %]
318
                        [% END %]
300
                        [% END %]
301
                        [% WRAPPER tab_panel tabname="remote" %]
319
                            <label for="remote_image_check"> Remote image:</label>
302
                            <label for="remote_image_check"> Remote image:</label>
320
                            [% IF image_location.match('^http') %]
303
                            [% IF image_location.match('^http') %]
321
                                <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
304
                                <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
Lines 327-335 Item types &rsaquo; Administration &rsaquo; Koha Link Here
327
                                <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
310
                                <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
328
                                <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" />
311
                                <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" />
329
                            [% END %]
312
                            [% END %]
330
                        </div> <!-- /#remote -->
313
                        [% END %]
331
                    </div> <!-- /.tab-content -->
314
                    [% END # /tab_panels %]
332
                </div> <!-- /#icons -->
315
                [% END # /tabs#icons %]
316
333
            [% END %]
317
            [% END %]
334
            <ol class="oladditemtype">
318
            <ol class="oladditemtype">
335
                <li>
319
                <li>
336
- 

Return to bug 33157