X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Faqbudgetperiods.tt;h=244f92fe6f1cd52daa61c4f623d2cf56e91cd71b;hb=e901ae15de6717f8594bd80ecfb0c5e8a23b8af5;hp=deb54428df366cc1f2faebead67cb140ec2d4572;hpb=108e901043f0766f8c103f3826b5af1cdb6daaa4;p=koha_fer diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt index deb54428df..244f92fe6f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt @@ -1,8 +1,12 @@ +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] + [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] + +[% INCLUDE 'datatables-strings.inc' %] + - @@ -164,13 +188,13 @@ <li> <label class="required" for="from">Start date</label> - <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate %]" class="datepickerfrom" /> + <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" /> <div class="hint">[% INCLUDE 'date-format.inc' %]</div> </li> <li> <label class="required" for="to">End date</label> - <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate %]" class="datepickerto" /> + <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" /> <div class="hint">[% INCLUDE 'date-format.inc' %]</div> </li> @@ -203,13 +227,13 @@ <ol> <li> <label class="required" for="from">Start date</label> - <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate %]" class="datepickerfrom" /> + <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" /> <div class="hint">[% INCLUDE 'date-format.inc' %]</div> </li> <li> <label class="required" for="to">End date</label> - <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate %]" class="datepickerto" /> + <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" /> <div class="hint">[% INCLUDE 'date-format.inc' %]</div> </li> @@ -290,48 +314,95 @@ [% END %] <!-- DEFAULT display budget periods list --> [% IF ( else ) %] - <h2>Budgets administration</h2> - - [% INCLUDE 'budgets-active-currency.inc' %] - - <table id="periodsh"> - <thead> - <tr> - <th>Budget name</th> - <th>Start date</th> - <th>End date</th> - <th>Active</th> - <th>Locked</th> - <th>Total</th> - <th>Actions</th> - </tr> - </thead> - <tbody> - [% FOREACH period_loo IN period_loop %] - [% IF ( loop.odd ) %] - <tr> - [% ELSE %] - <tr class="highlight"> - [% END %] - <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td> - <td>[% period_loo.budget_period_startdate %]</td> - <td>[% period_loo.budget_period_enddate %]</td> - <td>[% IF ( period_loo.budget_period_active ) %]<span style="color:green;">Active</span> [% ELSE %][% END %] </td> - <td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> - <td align='right'>[% period_loo.budget_period_total %]</td> - <td> - <a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> - <a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> - <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> - </td> - </tr> - [% END %] - [% UNLESS ( period_loop ) %] - <tr><td colspan="7">No budget</td></tr> - [% END %] - </tbody> - </table> - <div class="pages">[% pagination_bar %]</div> + <h2>Budgets administration</h2> + + [% INCLUDE 'budgets-active-currency.inc' %] + + <div id="budgetsTabs" class="toptabs"> + <ul> + <li><a href="#active">Active budgets</a></li> + <li><a href="#inactive">Inactive budgets</a></li> + </ul> + + <div id="active"> + [% IF ( period_active_loop ) %] + <table id="activeperiodst"> + <thead> + <tr> + <th>Budget name</th> + <th>Start date</th> + <th>End date</th> + <th>Locked</th> + <th>Total</th> + <th>Actions</th> + </tr> + </thead> + <tbody> + [% FOREACH period_active IN period_active_loop %] + <tr> + <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id %]" title="View funds for [% period_active.budget_period_description %]">[% period_active.budget_period_description %]</a></td> + <td>[% period_active.budget_period_startdate | $KohaDates %]</td> + <td>[% period_active.budget_period_enddate | $KohaDates %]</td> + <td> + [% IF ( period_active.budget_period_locked ) %] + <span style="color:green;">Locked</span>  + [% END %] + </td> + <td align='right'>[% period_active.budget_period_total %]</td> + <td> + <a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> + <a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> + <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add fund</a> + </td> + </tr> + [% END %] + </tbody> + </table> + [% ELSE %] + No active budgets + [% END %] + <div class="paginationBar">[% active_pagination_bar %]</div> + </div> + <div id="inactive"> + [% IF ( period_inactive_loop ) %] + <table id="inactiveperiodst"> + <thead> + <tr> + <th>Budget name</th> + <th>Start date</th> + <th>End date</th> + <th>Locked</th> + <th>Total</th> + <th>Actions</th> + </tr> + </thead> + <tbody> + [% FOREACH period_loo IN period_inactive_loop %] + [% IF ( loop.odd ) %] + <tr> + [% ELSE %] + <tr class="highlight"> + [% END %] + <td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td> + <td>[% period_loo.budget_period_startdate | $KohaDates %]</td> + <td>[% period_loo.budget_period_enddate | $KohaDates %]</td> + <td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> + <td align='right'>[% period_loo.budget_period_total %]</td> + <td> + <a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> + <a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> + <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> + </td> + </tr> + [% END %] + </tbody> + </table> + [% ELSE %] + No inactive budgets + [% END %] + <div class="pages">[% inactive_pagination_bar %]</div> + </div> + </div> [% END %]