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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-4 / +12 lines)
Lines 874-887 Link Here
874
                                    [% IF ( patron.return_claims.count ) %]
874
                                    [% IF ( patron.return_claims.count ) %]
875
                                        <a href="#return-claims" id="return-claims-tab">
875
                                        <a href="#return-claims" id="return-claims-tab">
876
                                            Claim(s)
876
                                            Claim(s)
877
                                            <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
877
                                            [% IF patron.return_claims.resolved.count == 0 %]
878
                                            <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
878
                                                <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
879
                                            [% ELSE %]
880
                                                <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
881
                                            [% END %]
882
                                            [% IF patron.return_claims.unresolved.count == 0 %]
883
                                                <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
884
                                            [% ELSE %]
885
                                                <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
886
                                            [% END %]
879
                                        </a>
887
                                        </a>
880
                                    [% ELSE %]
888
                                    [% ELSE %]
881
                                        <a href="#return-claims" id="return-claims-tab">
889
                                        <a href="#return-claims" id="return-claims-tab">
882
                                            Claim(s)
890
                                            Claim(s)
883
                                            <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">0</span>
891
                                            <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
884
                                            <span title="Unresolved claims" class="label label-success" id="return-claims-count-unresolved">0</span>
892
                                            <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
885
                                        </a>
893
                                        </a>
886
                                    [% END %]
894
                                    [% END %]
887
                                </li>
895
                                </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-4 / +13 lines)
Lines 764-777 Link Here
764
                                    [% IF ( patron.return_claims.count ) %]
764
                                    [% IF ( patron.return_claims.count ) %]
765
                                        <a href="#return-claims" id="return-claims-tab">
765
                                        <a href="#return-claims" id="return-claims-tab">
766
                                            Claim(s)
766
                                            Claim(s)
767
                                            <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
767
                                            [% IF patron.return_claims.resolved.count == 0 %]
768
                                            <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
768
                                                <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
769
                                            [% ELSE %]
770
                                                <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">[% patron.return_claims.resolved.count | html %]</span>
771
                                            [% END %]
772
                                            [% IF patron.return_claims.unresolved.count == 0 %]
773
                                                <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
774
                                            [% ELSE %]
775
                                                <span title="Unresolved claims" class="label label-warning" id="return-claims-count-unresolved">[% patron.return_claims.unresolved.count | html %]</span>
776
                                            [% END %]
777
769
                                        </a>
778
                                        </a>
770
                                    [% ELSE %]
779
                                    [% ELSE %]
771
                                        <a href="#return-claims" id="return-claims-tab">
780
                                        <a href="#return-claims" id="return-claims-tab">
772
                                            Claim(s)
781
                                            Claim(s)
773
                                            <span title="Resolved claims" class="label label-success" id="return-claims-count-resolved">0</span>
782
                                            <span title="Resolved claims" class="label label-default" id="return-claims-count-resolved">0</span>
774
                                            <span title="Unresolved claims" class="label label-success" id="return-claims-count-unresolved">0</span>
783
                                            <span title="Unresolved claims" class="label label-default" id="return-claims-count-unresolved">0</span>
775
                                        </a>
784
                                        </a>
776
                                    [% END %]
785
                                    [% END %]
777
                                </li>
786
                                </li>
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-3 / +18 lines)
Lines 985-992 $(document).ready(function() { Link Here
985
                        let resolved = json.resolved;
985
                        let resolved = json.resolved;
986
                        let unresolved = json.unresolved;
986
                        let unresolved = json.unresolved;
987
987
988
                        $('#return-claims-count-resolved').text(resolved);
988
                        if ( resolved > 0 ) {
989
                        $('#return-claims-count-unresolved').text(unresolved);
989
                            $('#return-claims-count-resolved').text(resolved)
990
                                                              .removeClass('label-default')
991
                                                              .addClass('label-success');
992
                        } else {
993
                            $('#return-claims-count-resolved').text(resolved)
994
                                                              .removeClass('label-success')
995
                                                              .addClass('label-default');
996
                        }
997
                        if ( unresolved > 0 ) {
998
                            $('#return-claims-count-unresolved').text(unresolved)
999
                                                                .removeClass('label-default')
1000
                                                                .addClass('label-warning');
1001
                        } else {
1002
                            $('#return-claims-count-unresolved').text(unresolved)
1003
                                                                .removeClass('label-warning')
1004
                                                                .addClass('label-default');
1005
                        }
990
1006
991
                        fnCallback(json)
1007
                        fnCallback(json)
992
                    } );
1008
                    } );
993
- 

Return to bug 25430