Bug 12150 - Use more javascript string formatting in intranet for translated strings.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / budgets-admin-toolbar.inc
1 <div id="toolbar" class="btn-toolbar">
2     [% IF ( budget_period_id ) %]
3         <div class="btn-group">
4             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New <span class="caret"></span></button>
5                 <ul class="dropdown-menu">
6                     <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">New budget</a></li>
7                     [% IF ( budget_period_locked || !CAN_user_acquisition_budget_add_del ) %]
8                         <li class="disabled">
9                     [% ELSE %]
10                         <li>
11                     [% END %]
12                     <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_period_id=[% budget_period_id %]">New fund for [% budget_period_description %]</a></li>
13                 </ul>
14         </div>
15
16         <div class="btn-group">
17             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Edit <span class="caret"></span></button>
18                 <ul class="dropdown-menu">
19                     <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form&amp;budget_period_id=[% budget_period_id %]">Edit budget [% budget_period_description %]</a></li>
20                     <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=duplicate_form&amp;budget_period_id=[% budget_period_id %]">Duplicate budget [% budget_period_description %]</a></li>
21                 </ul>
22         </div>
23
24         <div class="btn-group">
25             <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Planning <span class="caret"></span></button>
26                 <ul class="dropdown-menu">
27                     [% IF ( CAN_user_acquisition_planning_manage ) %]
28                     <li>
29                     [% ELSE %]
30                     <li class="disabled">
31                     [% END %]
32                     <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]&amp;authcat=MONTHS">Plan by months</a></li>
33                     [% IF ( CAN_user_acquisition_planning_manage ) %]
34                     <li>
35                     [% ELSE %]
36                     <li class="disabled">
37                     [% END %]
38                     <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]&amp;authcat=BRANCHES">Plan by libraries</a></li>
39                     [% IF ( CAN_user_acquisition_planning_manage ) %]
40                     <li>
41                     [% ELSE %]
42                     <li class="disabled">
43                     [% END %]
44                     <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]&amp;authcat=ITEMTYPES">Plan by item types</a></li>
45                     [% FOREACH auth_cats_loo IN auth_cats_loop %]
46                         [% IF ( CAN_user_acquisition_planning_manage ) %]
47                         <li>
48                         [% ELSE %]
49                         <li class="disabled">
50                         [% END %]
51                         <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]&amp;authcat=[% auth_cats_loo.authcat %]">Plan by [% auth_cats_loo.authcat %]</a>
52                         </li>
53                     [% END %]
54                 </ul>
55         </div>
56
57     [% ELSE %]
58         <div class="btn-group"><a class="btn btn-small" id="newrootbudget" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form"><i class="icon-plus"></i> New budget</a></div>
59     [% END %]
60
61 </div>