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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt (-10 / +17 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE Branches %]
2
[% USE Branches %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Import patrons [% IF ( uploadborrowers ) %]&rsaquo; Results[% END %]</title>
5
<title>Koha &rsaquo; Tools &rsaquo; Import patrons [% IF ( uploadborrowers ) %]&rsaquo; Results[% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
Lines 9-28 Link Here
9
    .line_error { width: 100%; }
10
    .line_error { width: 100%; }
10
    code { background-color: yellow; }
11
    code { background-color: yellow; }
11
</style>
12
</style>
12
<script type="text/javascript">
13
//<![CDATA[
14
    $(document).ready(function() {
15
        [%# Make date fields have the datepicker %]
16
        $("#dateenrolled").addClass('datepicker');
17
        $("#dateexpiry").addClass('datepicker');
18
        $("#dateofbirth").addClass('datepicker');
19
    });
20
</script>
21
</head>
13
</head>
14
22
<body id="tools_import_borrowers" class="tools">
15
<body id="tools_import_borrowers" class="tools">
23
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
24
[% INCLUDE 'patron-search.inc' %]
17
[% INCLUDE 'patron-search.inc' %]
25
[% INCLUDE 'calendar.inc' %]
26
18
27
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a>[% IF ( uploadborrowers ) %] &rsaquo; Results[% END %]</div>
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a>[% IF ( uploadborrowers ) %] &rsaquo; Results[% END %]</div>
28
20
Lines 245-248 Alternatively, you can supply dates in ISO format. Link Here
245
[% INCLUDE 'tools-menu.inc' %]
237
[% INCLUDE 'tools-menu.inc' %]
246
  </div>
238
  </div>
247
 </div>
239
 </div>
240
241
[% MACRO jsinclude BLOCK %]
242
    [% INCLUDE 'calendar.inc' %]
243
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
244
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu.js"></script>
245
    <script type="text/javascript">
246
        $(document).ready(function() {
247
            [%# Make date fields have the datepicker %]
248
            $("#dateenrolled").addClass('datepicker');
249
            $("#dateexpiry").addClass('datepicker');
250
            $("#dateofbirth").addClass('datepicker');
251
        });
252
    </script>
253
[% END %]
254
248
[% INCLUDE 'intranet-bottom.inc' %]
255
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt (-22 / +29 lines)
Lines 1-28 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Tools &rsaquo; Upload patron images</title>
3
<title>Koha &rsaquo; Tools &rsaquo; Upload patron images</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript">
5
 $(document).ready(function() {
6
	$("#zipfile").click(function(){
7
		$("#cardnum").hide();
8
	});
9
	$("#image").click(function(){
10
		$("#cardnum").show();
11
	});
12
    $( "#upload_form" ).validate({
13
        rules: {
14
            cardnumber: {
15
                required: {
16
                    depends: function(element) {
17
                        return $("#image").is(":checked");
18
                    }
19
                }
20
            }
21
        }
22
    });
23
});
24
</script>
25
</head>
5
</head>
6
26
<body id="tools_picture-upload" class="tools">
7
<body id="tools_picture-upload" class="tools">
27
8
28
[% INCLUDE 'header.inc' %]
9
[% INCLUDE 'header.inc' %]
Lines 157-160 Link Here
157
    [% INCLUDE 'tools-menu.inc' %]
138
    [% INCLUDE 'tools-menu.inc' %]
158
</div>
139
</div>
159
</div>
140
</div>
141
142
[% MACRO jsinclude BLOCK %]
143
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
144
    <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu.js"></script>
145
    <script type="text/javascript">
146
        $(document).ready(function() {
147
            $("#zipfile").click(function(){
148
                $("#cardnum").hide();
149
            });
150
            $("#image").click(function(){
151
                $("#cardnum").show();
152
            });
153
            $( "#upload_form" ).validate({
154
                rules: {
155
                    cardnumber: {
156
                        required: {
157
                            depends: function(element) {
158
                                return $("#image").is(":checked");
159
                            }
160
                        }
161
                    }
162
                }
163
            });
164
        });
165
    </script>
166
[% END %]
167
160
[% INCLUDE 'intranet-bottom.inc' %]
168
[% INCLUDE 'intranet-bottom.inc' %]
161
- 

Return to bug 19682