Merge branch 'bug_9625' into 3.12-master
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / reports-toolbar.inc
1 <div id="toolbar" class="btn-toolbar">
2     [% IF ( CAN_user_reports_create_reports ) %]<div class="btn-group">
3         <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                 <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             </ul>
8     </div>[% END %]
9 [% IF ( showsql || execute || editsql || save_successful ) %]
10     [% UNLESS ( errors ) %][%# Unless there are errors saving a report %]
11         [% UNLESS ( editsql ) %][%# Do not show edit button on edit page %]
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         [% 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 %]
16 [% END %]
17 </div>