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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-27 / +34 lines)
Lines 278-312 Link Here
278
    </span>
278
    </span>
279
    <fieldset id="save_as_template_span">
279
    <fieldset id="save_as_template_span">
280
        <legend>Save template</legend>
280
        <legend>Save template</legend>
281
        <select name="replace_template_id" id="replace_template_id" class="select2" style="width: 20em">
281
        <div class="btn-group">
282
            <option value="0" selected="selected">Save as new template</option>
282
            <select name="replace_template_id" id="replace_template_id" class="select2" style="width: 20em">
283
            <optgroup label="Update existing template">
283
                <option value="0" selected="selected">Save as new template</option>
284
                [% FOREACH t IN item_templates.owned %]
284
                <optgroup label="Update existing template">
285
                    <option data-editor="1" data-shared="[% t.is_shared | html %]" value="[% t.id | html %]">[% t.name | html %][% IF t.is_shared %] (shared)[% END %]</option>
285
                    [% FOREACH t IN item_templates.owned %]
286
                [% END %]
286
                        <option data-editor="1" data-shared="[% t.is_shared | html %]" value="[% t.id | html %]">[% t.name | html %][% IF t.is_shared %] (shared)[% END %]</option>
287
                [% IF CAN_user_editcatalogue_manage_item_editor_templates && item_templates.shared.count %]
287
                    [% END %]
288
                    <optgroup label="Update shared template">
288
                    [% IF CAN_user_editcatalogue_manage_item_editor_templates && item_templates.shared.count %]
289
                        [% FOREACH t IN item_templates.shared %]
289
                        <optgroup label="Update shared template">
290
                            <option data-editor="1" data-shared="1" value="[% t.id | html %]">[% t.name | html %][% IF t.is_shared %] (shared)[% END %]</option>
290
                            [% FOREACH t IN item_templates.shared %]
291
                        [% END %]
291
                                <option data-editor="1" data-shared="1" value="[% t.id | html %]">[% t.name | html %][% IF t.is_shared %] (shared)[% END %]</option>
292
                    </optgroup>
292
                            [% END %]
293
                [% END %]
293
                        </optgroup>
294
            </optgroup>
294
                    [% END %]
295
        </select>
295
                </optgroup>
296
            </select>
297
        </div>
296
298
297
        <span id="template_name_block">
299
        <div class="btn-group">
298
            <label for="template_name" class="required">Template name: </label>
300
            <span id="template_name_block">
299
            <input type="text" id="template_name" name="template_name" class="required"/>
301
                <label for="template_name" class="required">Template name: </label>
300
            <span class="required">Required</span>
302
                <input type="text" id="template_name" name="template_name" class="required"/>
301
        </span>
303
                <span class="required">Required</span>
304
            </span>
305
        </div>
302
306
303
        <label for="template_is_shared">
307
        <div class="btn-group">
304
            <input type="checkbox" id="template_is_shared" name="template_is_shared"/>
308
            <label for="template_is_shared">
305
            Share template
309
                <input type="checkbox" id="template_is_shared" name="template_is_shared"/>
306
        </label>
310
                Share template
311
            </label>
312
        </div>
307
313
308
        <input type="submit" id="save_as_template_submit" name="save_as_template_submit" value="Save" onclick="javascript:return CheckTemplateForm(this.form);" />
314
        <div class="btn-group">
309
        <a href="#" id="cancel_save_as_template" class="cancel">Cancel</a>
315
            <input type="submit" id="save_as_template_submit" name="save_as_template_submit" value="Save" onclick="javascript:return CheckTemplateForm(this.form);" />
316
            <a href="#" id="cancel_save_as_template" class="cancel">Cancel</a>
317
        </div>
310
    </fieldset>
318
    </fieldset>
311
319
312
    [% ELSE %]
320
    [% ELSE %]
313
- 

Return to bug 24606