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-37
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 |
[% 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 %]&phase=Edit%20SQL"> |
17 |
<i class="fa fa-pencil"></i> Edit |
18 |
</a> |
19 |
</div> |
20 |
[% END %] |
21 |
[% END %] |
22 |
|
13 |
|
23 |
[% IF ( CAN_user_reports_create_reports ) %] |
14 |
[% IF ( CAN_user_reports_create_reports ) %] |
24 |
<div class="btn-group"> |
15 |
<div class="btn-group"> |
25 |
<a class="confirmdelete btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Delete%20Saved"> |
16 |
<button data-toggle="dropdown" class="btn btn-small dropdown-toggle"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button> |
26 |
<i class="fa fa-remove"></i> Delete |
17 |
<ul class="dropdown-menu"> |
27 |
</a> |
18 |
<li> |
|
|
19 |
<a id="editreport" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Edit%20SQL"> |
20 |
<i class="fa fa-fw fa-pencil"></i> Edit |
21 |
</a> |
22 |
</li> |
23 |
<li> |
24 |
<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> |
25 |
</li> |
26 |
<li> |
27 |
<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> |
28 |
</li> |
29 |
</ul> |
30 |
</div> |
31 |
[% END %] |
32 |
|
33 |
[% IF ( CAN_user_tools_schedule_tasks ) %] |
34 |
<div class="btn-group"> |
35 |
<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> |
36 |
</div> |
37 |
[% END %] |
38 |
|
39 |
[% IF ( save_successful ) %] |
40 |
<div class="btn-group"> |
41 |
<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> |
28 |
</div> |
42 |
</div> |
29 |
[% END %] |
43 |
[% END %] |
30 |
|
44 |
|
31 |
[% UNLESS ( errors ) # Unless there are errors saving a report %] |
45 |
[% UNLESS ( errors ) # Unless there are errors saving a report %] |
32 |
<div class="btn-group"> |
46 |
<div class="btn-group"> |
33 |
<a id="runreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Run%20this%20report"> |
47 |
<a id="runreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Run%20this%20report"> |
34 |
<i class="fa fa-play"></i> Run report |
48 |
<i class="fa fa-fw fa-play"></i> Run report |
35 |
</a> |
49 |
</a> |
36 |
</div> |
50 |
</div> |
37 |
[% END %] |
51 |
[% END %] |