View | Details | Raw Unified | Return to bug 30400
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-24 / +24 lines)
Lines 130-158 Link Here
130
                            [% END # /IF CAN_user_acquisition_merge_invoices %]
130
                            [% END # /IF CAN_user_acquisition_merge_invoices %]
131
                        [% END # /BLOCK invoices_table %]
131
                        [% END # /BLOCK invoices_table %]
132
132
133
                        <div id="invoicestabs" class="toptabs" style="clear:both;">
133
                        <div id="invoicestabs" class="toptabs">
134
                            <ul class="ui-tabs-nav">
134
                            <ul class="nav nav-tabs" role="tablist">
135
                                <li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li>
135
                                <li role="presentation" class="active"><a href="#opened" aria-controls="opened" role="tab" data-toggle="tab">Open invoices ([% openedinvoices.size || 0 | html %])</a></li>
136
                                <li><a href="#closed">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li>
136
                                <li role="presentation"><a href="#closed" aria-controls="closed" role="tab" data-toggle="tab">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li>
137
                            </ul>
137
                            </ul>
138
                            <div id="opened">
138
                            <div class="tab-content">
139
                                [% IF openedinvoices %]
139
                                <div id="opened" role="tabpanel" class="tab-pane active">
140
                                    [% INCLUDE invoices_table invoices = openedinvoices %]
140
                                    [% IF openedinvoices %]
141
                                [% ELSE %]
141
                                        [% INCLUDE invoices_table invoices = openedinvoices %]
142
                                    <div class="dialog message">
142
                                    [% ELSE %]
143
                                        <p>Your search returned no open invoices.</p>
143
                                        <div class="dialog message">
144
                                    </div>
144
                                            <p>Your search returned no open invoices.</p>
145
                                [% END %]
145
                                        </div>
146
                            </div> <!-- /#opened -->
146
                                    [% END %]
147
                            <div id="closed">
147
                                </div> <!-- /#opened -->
148
                                [% IF closedinvoices %]
148
                                <div id="closed" role="tabpanel" class="tab-pane">
149
                                    [% INCLUDE invoices_table invoices = closedinvoices closed = 1 %]
149
                                    [% IF closedinvoices %]
150
                                [% ELSE %]
150
                                        [% INCLUDE invoices_table invoices = closedinvoices closed = 1 %]
151
                                    <div class="dialog message">
151
                                    [% ELSE %]
152
                                        <p>Your search returned no closed invoices.</p>
152
                                        <div class="dialog message">
153
                                    </div>
153
                                            <p>Your search returned no closed invoices.</p>
154
                                [% END %]
154
                                        </div>
155
                            </div> <!-- /#closed -->
155
                                    [% END %]
156
                                </div> <!-- /#closed -->
157
                            </div> <!-- /.tab-content -->
156
                        </div> <!-- /#invoicestabs -->
158
                        </div> <!-- /#invoicestabs -->
157
159
158
160
Lines 397-403 Link Here
397
    [% INCLUDE 'calendar.inc' %]
399
    [% INCLUDE 'calendar.inc' %]
398
    <script>
400
    <script>
399
        $(document).ready(function() {
401
        $(document).ready(function() {
400
            $('#invoicestabs').tabs();
401
            $(".delete_invoice").click(function(){
402
            $(".delete_invoice").click(function(){
402
                return confirmDelete(_("Are you sure you want to delete this invoice?"));
403
                return confirmDelete(_("Are you sure you want to delete this invoice?"));
403
            });
404
            });
404
- 

Return to bug 30400