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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-2 / +3 lines)
Lines 1703-1717 dd { Link Here
1703
}
1703
}
1704
1704
1705
.patronimage {
1705
.patronimage {
1706
    border: 1px solid #EEE;
1706
    display: block;
1707
    display: block;
1707
    max-width: 160px;
1708
    max-width: 160px;
1709
    margin: auto;
1708
    opacity: 1;
1710
    opacity: 1;
1709
    transition: .2s ease;
1711
    transition: .2s ease;
1710
1712
1711
    .empty {
1713
    &.empty {
1712
        background: transparent url( "../img/patron-blank.min.svg" ) center 5px no-repeat;
1714
        background: transparent url( "../img/patron-blank.min.svg" ) center 5px no-repeat;
1713
        height: 125px;
1715
        height: 125px;
1714
        margin: .3em 0 .3em .3em;
1715
        padding: 0;
1716
        padding: 0;
1716
        width: 80%;
1717
        width: 80%;
1717
    }
1718
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc (-1 / +14 lines)
Lines 2-8 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE Categories %]
3
[% USE Categories %]
4
4
5
<script type="text/javascript">
5
<script>
6
    var advsearch = "[% advsearch | html %]";
6
    var advsearch = "[% advsearch | html %]";
7
    var destination = "[% destination | html %]";
7
    var destination = "[% destination | html %]";
8
8
Lines 20-23 Link Here
20
            number_of_adult_categories = [% number_of_adult_categories | html %]
20
            number_of_adult_categories = [% number_of_adult_categories | html %]
21
        [% END %]
21
        [% END %]
22
    [% END %]
22
    [% END %]
23
24
    [% IF ( patron.image ) %]
25
        $("body").on("click", "#delpicture", function(){
26
             return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
27
        });
28
        $('#manage-patron-image').find("input[value*=Upload]").click(function(){
29
            if($("#uploadfile").val() == ""){
30
                alert(_("Please choose a file to upload"));
31
                return false;
32
            }
33
            return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
34
        });
35
    [% END %]
23
</script>
36
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-15 / +2 lines)
Lines 269-277 Link Here
269
                                        [% END %]
269
                                        [% END %]
270
                                        <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
270
                                        <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
271
                                            [% IF ( patron.image ) %]
271
                                            [% IF ( patron.image ) %]
272
                                                <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.</div>
272
                                                <div class="hint">To update the image for [% patron.title %] [% patron.firstname | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.</div>
273
                                            [% ELSE %]
273
                                            [% ELSE %]
274
                                                <div class="hint">[% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title | html %] [% patron.surname | html %], enter the name of an image file to upload.</div>
274
                                                <div class="hint">[% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title | html %] [% patron.firstname | html %] [% patron.surname | html %], enter the name of an image file to upload.</div>
275
                                            [% END %]
275
                                            [% END %]
276
                                            <p>Only PNG, GIF, JPEG, XPM formats are supported.</p>
276
                                            <p>Only PNG, GIF, JPEG, XPM formats are supported.</p>
277
                                            <label for="uploadfile">Select the file to upload: </label>
277
                                            <label for="uploadfile">Select the file to upload: </label>
Lines 857-874 Link Here
857
                ],
857
                ],
858
                "bPaginate": false
858
                "bPaginate": false
859
            }));
859
            }));
860
            [% IF ( patron.image ) %]
861
                $('#delpicture').click(function(){
862
                     return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
863
                });
864
                $('#manage-patron-image').find("input[value*=Upload]").click(function(){
865
                    if($("#uploadfile").val() == ""){
866
                        alert(_("Please choose a file to upload"));
867
                        return false;
868
                    }
869
                    return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
870
                });
871
            [% END %]
872
860
873
            $("#suspend_until").datepicker({
861
            $("#suspend_until").datepicker({
874
                onClose: function(dateText, inst) {
862
                onClose: function(dateText, inst) {
875
- 

Return to bug 20809