Lines 1-7
Link Here
|
1 |
<div id="toolbar" class="btn-toolbar"> |
1 |
<div id="toolbar" class="btn-toolbar"> |
2 |
[% IF ( CAN_user_reports_create_reports ) %] |
2 |
[% IF ( CAN_user_reports_create_reports ) %] |
3 |
<div class="btn-group"> |
3 |
<div class="btn-group"> |
4 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New report <span class="caret"></span></button> |
4 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-plus"></i> New report <span class="caret"></span></button> |
5 |
<ul class="dropdown-menu"> |
5 |
<ul class="dropdown-menu"> |
6 |
<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> |
7 |
<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> |
Lines 9-42
Link Here
|
9 |
</div> |
9 |
</div> |
10 |
[% END %] |
10 |
[% END %] |
11 |
|
11 |
|
12 |
[% IF ( showsql || execute || editsql || save_successful ) %] |
12 |
[% IF ( showsql || execute || save_successful ) %] |
13 |
[% IF ( CAN_user_reports_create_reports ) %] |
13 |
[% IF ( CAN_user_reports_create_reports ) %] |
14 |
[% UNLESS ( editsql ) # Do not show edit button on edit page %] |
|
|
15 |
<div class="btn-group"> |
16 |
<a id="editreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Edit%20SQL"> |
17 |
<i class="fa fa-pencil"></i> Edit |
18 |
</a> |
19 |
</div> |
20 |
[% END %] |
21 |
<div class="btn-group"> |
14 |
<div class="btn-group"> |
22 |
<a class="btn btn-small" title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&sql=[% sql %]&reportname=[% reportname %]&notes=[% notes %]"> |
15 |
<button data-toggle="dropdown" class="btn btn-small dropdown-toggle"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button> |
23 |
<i class="fa fa-copy"></i> Duplicate |
16 |
<ul class="dropdown-menu"> |
24 |
</a> |
17 |
<li> |
|
|
18 |
<a id="editreport" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Edit%20SQL"> |
19 |
<i class="fa fa-fw fa-pencil"></i> Edit |
20 |
</a> |
21 |
</li> |
22 |
<li> |
23 |
<a id="duplicatereport" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&sql=[% sql |uri %]&reportname=[% reportname |uri %]&notes=[% notes |uri %]"><i class="fa fa-fw fa-copy"></i> Duplicate</a> |
24 |
</li> |
25 |
<li> |
26 |
<a id="deletereport" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Delete%20Saved"><i class="fa fa-fw fa-trash"></i> Delete</a> |
27 |
</li> |
28 |
</ul> |
25 |
</div> |
29 |
</div> |
26 |
[% END %] |
30 |
[% END %] |
27 |
|
31 |
|
28 |
[% IF ( CAN_user_reports_create_reports ) %] |
32 |
[% IF ( CAN_user_tools_schedule_tasks ) %] |
29 |
<div class="btn-group"> |
33 |
<div class="btn-group"> |
30 |
<a class="confirmdelete btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Delete%20Saved"> |
34 |
<a id="schedulereport" class="btn btn-small" href="/cgi-bin/koha/tools/scheduler.pl?id=[% id %]"><i class="fa fa-clock-o"></i> Schedule</a> |
31 |
<i class="fa fa-remove"></i> Delete |
35 |
</div> |
32 |
</a> |
36 |
[% END %] |
|
|
37 |
|
38 |
[% IF ( save_successful ) %] |
39 |
<div class="btn-group"> |
40 |
<a id="showreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Show%20SQL"><i class="fa fa-fw fa-search"></i> Show</a> |
33 |
</div> |
41 |
</div> |
34 |
[% END %] |
42 |
[% END %] |
35 |
|
43 |
|
36 |
[% UNLESS ( errors ) # Unless there are errors saving a report %] |
44 |
[% UNLESS ( errors ) # Unless there are errors saving a report %] |
37 |
<div class="btn-group"> |
45 |
<div class="btn-group"> |
38 |
<a id="runreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Run%20this%20report"> |
46 |
<a id="runreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Run%20this%20report"> |
39 |
<i class="fa fa-play"></i> Run report |
47 |
<i class="fa fa-fw fa-play"></i> Run report |
40 |
</a> |
48 |
</a> |
41 |
</div> |
49 |
</div> |
42 |
<div class="btn-group"> |
50 |
<div class="btn-group"> |