Lines 3-10
Link Here
|
3 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Koha › Tools › Patron lists › [% list.name %] › Add patrons</title> |
4 |
<title>Koha › Tools › Patron lists › [% list.name %] › Add patrons</title> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
|
|
|
7 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
6 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
|
|
7 |
<style type="text/css"> |
8 |
#add_patrons_by_search { |
9 |
display: none; |
10 |
} |
11 |
#patron_barcodes_line { |
12 |
display: none; |
13 |
} |
14 |
#patron_barcodes_submit { |
15 |
display: none; |
16 |
} |
17 |
#searchheader { |
18 |
margin-top: 1em; |
19 |
} |
20 |
</style> |
8 |
</head> |
21 |
</head> |
9 |
|
22 |
|
10 |
<body id="patlist_list" class="pat patlist"> |
23 |
<body id="patlist_list" class="pat patlist"> |
Lines 18-42
Link Here
|
18 |
<div class="yui-b"> |
31 |
<div class="yui-b"> |
19 |
<h1>[% list.name |html %]</h1> |
32 |
<h1>[% list.name |html %]</h1> |
20 |
|
33 |
|
21 |
<form action="list.pl" id="add_patrons" method="post"> |
34 |
<form action="list.pl" id="add_patrons" method="post" class="clearfix"> |
22 |
<fieldset> |
35 |
<fieldset class="rows"> |
23 |
<legend>Add patrons</legend> |
36 |
<legend>Add patrons</legend> |
|
|
37 |
<ol> |
38 |
<li id="patron_search_line"> |
39 |
<label for="find_patron">Patron search: </label> |
40 |
<input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" /> |
41 |
</li> |
42 |
<li id="add_patrons_by_search"><a href="#"> |
43 |
<span class="label"> </span> |
44 |
<i class="fa fa-plus"></i> Search for patrons</a></li> |
45 |
<li id="add_patrons_by_barcode"><a href="#"> |
46 |
<span class="label"> </span> |
47 |
<i class="fa fa-plus"></i> Enter multiple card numbers</a></li> |
48 |
<li id="patron_barcodes_line"> |
49 |
<label for="patrons_by_barcode">Card number list (one barcode per line):</label> |
50 |
<textarea id="patrons_by_barcode" name="patrons_by_barcode" id="" cols="30" rows="10"></textarea> |
51 |
</li> |
52 |
</ol> |
53 |
</fieldset> |
54 |
<fieldset id="patron_barcodes_submit" class="action"> |
55 |
<input type="submit" value="Submit" /> |
56 |
</fieldset> |
24 |
|
57 |
|
25 |
<label for="find_patron">Patron search: </label> |
58 |
<div class="clearfix"></div> |
26 |
<input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" /> |
|
|
27 |
<div id="find_patron_container"></div> |
28 |
|
59 |
|
29 |
<fieldset id="patrons_to_add_fieldset"> |
60 |
<fieldset id="patrons_to_add_fieldset"> |
30 |
<legend>Patrons to be added</legend> |
61 |
<legend>Patrons to be added</legend> |
31 |
<div id="patrons_to_add"></div> |
62 |
<div id="patrons_to_add"></div> |
32 |
|
63 |
|
33 |
<fieldset class="action"> |
64 |
<fieldset class="action"> |
34 |
<input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> |
65 |
<input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> |
35 |
<input type="submit" value="Add patrons" /> |
66 |
<input type="submit" value="Add patrons" /> |
36 |
<a href="lists.pl" class="cancel">Cancel</a> |
67 |
<a href="lists.pl" class="cancel">Cancel</a> |
37 |
</fieldset> |
|
|
38 |
</fieldset> |
68 |
</fieldset> |
39 |
|
|
|
40 |
</fieldset> |
69 |
</fieldset> |
41 |
</form> |
70 |
</form> |
42 |
|
71 |
|
Lines 159-164
Link Here
|
159 |
return false; |
188 |
return false; |
160 |
} |
189 |
} |
161 |
}); |
190 |
}); |
|
|
191 |
|
192 |
$("#add_patrons_by_barcode a").on("click", function(){ |
193 |
$("#add_patrons_by_barcode, #patron_search_line").hide(); |
194 |
$("#add_patrons_by_search, #patron_barcodes_line, #patron_barcodes_submit").show(); |
195 |
}); |
196 |
|
197 |
$("#add_patrons_by_search a").on("click", function(){ |
198 |
$("#add_patrons_by_barcode, #patron_search_line").show(); |
199 |
$("#add_patrons_by_search, #patron_barcodes_line, #patron_barcodes_submit").hide(); |
200 |
}); |
162 |
}); |
201 |
}); |
163 |
</script> |
202 |
</script> |
164 |
[% END %] |
203 |
[% END %] |