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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-4 / +8 lines)
Lines 195-208 Item types administration Link Here
195
                        <ul>
195
                        <ul>
196
                            <li>
196
                            <li>
197
                                <label for="remote_image_check"> Remote image:</label>
197
                                <label for="remote_image_check"> Remote image:</label>
198
                                [% IF itemtype.imageurl %]
198
                                [% SET image_location = itemtype.image_location('intranet') %]
199
                                [% IF image_location.match('^http') %]
199
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
200
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" />
201
                                    <input type="text" name="remoteImage" size="48" maxlength="200" value="[% image_location | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" />
202
                                    [% IF itemtype.imageurl %]
203
                                        <img src="[% image_location | html %]" alt="" />
204
                                    [% END %]
200
                                [% ELSE %]
205
                                [% ELSE %]
201
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
206
                                    <input type="radio" id="remote_image_check" name="image" value="remoteImage" />
202
                                [% END %]
207
                                [% END %]
203
                                <input type="text" name="remoteImage" size="48" maxlength="200" value="[% itemtype.imageurl | html %]" onmousedown="document.getElementById('remote_image_check').checked = true;" />
208
                                <input type="text" name="remoteImage" size="48" maxlength="200" value="" onmousedown="document.getElementById('remote_image_check').checked = true;" />
204
                                [% IF itemtype.imageurl %]
209
                                [% IF itemtype.imageurl %]
205
                                    <img src="[% itemtype.imageurl | html %]" alt="" />
210
                                    <img src="[% image_location | html %]" alt="" />
206
                                [% END %]
211
                                [% END %]
207
                            </li>
212
                            </li>
208
                        </ul>
213
                        </ul>
209
- 

Return to bug 23804