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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-8 / +18 lines)
Lines 7-13 Link Here
7
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Additional contents &rsaquo; Tools &rsaquo; Koha</title>
8
<title>Additional contents &rsaquo; Tools &rsaquo; Koha</title>
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% UNLESS ( wysiwyg ) %]
10
[% IF ( wysiwyg ) %]
11
    [% SET editmode = "wysiwyg" %]
12
[% ELSE %]
13
    [% SET editmode = "text" %]
11
    [% Asset.css("lib/codemirror/codemirror.css") | $raw %]
14
    [% Asset.css("lib/codemirror/codemirror.css") | $raw %]
12
    [% Asset.css("lib/codemirror/lint.min.css") | $raw %]
15
    [% Asset.css("lib/codemirror/lint.min.css") | $raw %]
13
    <style>
16
    <style>
Lines 282-288 Link Here
282
[% BLOCK list %]
285
[% BLOCK list %]
283
286
284
    <div id="toolbar" class="btn-toolbar">
287
    <div id="toolbar" class="btn-toolbar">
285
        <a class="btn btn-default" id="newentry" href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&category=[% category | html %]"><i class="fa fa-plus"></i> New entry</a>
288
        <div class="btn-group">
289
            <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&editmode=[% editmode | uri %]" class="btn btn-default" id="newentry"> <i class="fa fa-plus"></i> New entry</a><button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
290
                <span class="caret"></span>
291
            </button>
292
            <ul class="dropdown-menu pull-right">
293
                <li>
294
                    [% IF ( wysiwyg ) %]
295
                        <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&editmode=text">New entry using text editor</a>
296
                    [% ELSE %]
297
                        <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&editmode=wysiwyg">New entry using WYSIWYG editor</a>
298
                    [% END %]
299
                </li>
300
            </ul>
301
        </div>
286
    </div>
302
    </div>
287
303
288
    <h2>Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h2>
304
    <h2>Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h2>
Lines 358-368 Link Here
358
                            </div>
374
                            </div>
359
                        </td>
375
                        </td>
360
                        <td class="actions">
376
                        <td class="actions">
361
                            [% IF ( wysiwyg ) %]
362
                                [% SET editmode = "wysiwyg" %]
363
                            [% ELSE %]
364
                                [% SET editmode = "text" %]
365
                            [% END %]
366
                            <div class="btn-group dropup">
377
                            <div class="btn-group dropup">
367
                                <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% c.idnew | uri %]&editmode=[% editmode | uri %]" class="btn btn-default btn-xs"> <i class="fa fa-pencil"></i> Edit</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
378
                                <a href="/cgi-bin/koha/tools/additional-contents.pl?op=add_form&amp;id=[% c.idnew | uri %]&editmode=[% editmode | uri %]" class="btn btn-default btn-xs"> <i class="fa fa-pencil"></i> Edit</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
368
                                    <span class="caret"></span>
379
                                    <span class="caret"></span>
369
- 

Return to bug 29265