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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc (-10 / +23 lines)
Lines 1-17 Link Here
1
<div id="toolbar" class="btn-toolbar">
1
<div id="toolbar" class="btn-toolbar">
2
    [% IF ( CAN_user_reports_create_reports ) %]<div class="btn-group">
2
    [% IF ( CAN_user_reports_create_reports ) %]
3
        <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New report <span class="caret"></span></button>
3
        <div class="btn-group">
4
            <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New report <span class="caret"></span></button>
4
            <ul class="dropdown-menu">
5
            <ul class="dropdown-menu">
5
                <li id="newmenuc"><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">New guided report</a> </li>
6
                <li id="newmenuc"><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new">New guided report</a> </li>
6
                <li id="newsql"><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL">New SQL report</a> </li>
7
                <li id="newsql"><a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL">New SQL report</a> </li>
7
            </ul>
8
            </ul>
8
    </div>[% END %]
9
        </div>
9
[% IF ( showsql || execute || editsql || save_successful ) %]
10
    [% END %]
10
    [% UNLESS ( errors ) %][%# Unless there are errors saving a report %]
11
11
        [% UNLESS ( editsql ) %][%# Do not show edit button on edit page %]
12
    [% IF ( showsql || execute || editsql || save_successful || error ) %]
12
            [% IF ( CAN_user_reports_create_reports ) %]<div class="btn-group"><a id="editreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&amp;phase=Edit%20SQL"><i class="icon-pencil"></i> Edit</a></div>[% END %]
13
        [% UNLESS ( editsql ) # Do not show edit button on edit page %]
14
            [% IF ( CAN_user_reports_create_reports ) %]
15
                <div class="btn-group">
16
                    <a id="editreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&amp;phase=Edit%20SQL">
17
                        <i class="icon-pencil"></i> Edit
18
                    </a>
19
                </div>
20
            [% END %]
21
        [% END %]
22
23
        [% UNLESS ( errors ) # Unless there are errors saving a report %]
24
            <div class="btn-group">
25
                <a id="runreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&amp;phase=Run%20this%20report">
26
                    <i class="icon-play"></i> Run report
27
                </a>
28
            </div>
13
        [% END %]
29
        [% END %]
14
        <div class="btn-group"><a id="runreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&amp;phase=Run%20this%20report"><i class="icon-play"></i> Run report</a></div>
15
    [% END %]
30
    [% END %]
16
[% END %]
17
</div>
31
</div>
18
- 

Return to bug 12214