Lines 12-21
Link Here
|
12 |
#add_patrons_by_search { |
12 |
#add_patrons_by_search { |
13 |
display: none; |
13 |
display: none; |
14 |
} |
14 |
} |
15 |
#patron_barcodes_line { |
15 |
#patron_ids_line { |
16 |
display: none; |
16 |
display: none; |
17 |
} |
17 |
} |
18 |
#patron_barcodes_submit { |
18 |
#patron_ids_submit { |
19 |
display: none; |
19 |
display: none; |
20 |
} |
20 |
} |
21 |
#searchheader { |
21 |
#searchheader { |
Lines 58-67
Link Here
|
58 |
<h1>[% list.name | html %]</h1> |
58 |
<h1>[% list.name | html %]</h1> |
59 |
|
59 |
|
60 |
[% IF ( not_found.size > 0 ) %] |
60 |
[% IF ( not_found.size > 0 ) %] |
61 |
<div class="dialog alert"><p>Warning, the following cardnumbers were not found:</p></div> |
61 |
<div class="dialog alert"><p>Warning, the following [% id_column | html %] were not found:</p></div> |
62 |
<table style="margin:auto;"> |
62 |
<table style="margin:auto;"> |
63 |
<thead> |
63 |
<thead> |
64 |
<tr><th>Cardnumbers not found</th></tr> |
64 |
<tr><th>[% id_column | html FILTER ucfirst %] not found</th></tr> |
65 |
</thead> |
65 |
</thead> |
66 |
<tbody> |
66 |
<tbody> |
67 |
[% FOREACH nf IN not_found %] |
67 |
[% FOREACH nf IN not_found %] |
Lines 72-81
Link Here
|
72 |
[% END %] |
72 |
[% END %] |
73 |
|
73 |
|
74 |
[% IF ( existed.size > 0 ) %] |
74 |
[% IF ( existed.size > 0 ) %] |
75 |
<div class="dialog alert"><p>Warning, the following cardnumbers were already in this list:</p></div> |
75 |
<div class="dialog alert"><p>Warning, the following [% id_column | html %] were already in this list:</p></div> |
76 |
<table style="margin:auto;"> |
76 |
<table style="margin:auto;"> |
77 |
<thead> |
77 |
<thead> |
78 |
<tr><th>Cardnumbers already in list</th></tr> |
78 |
<tr><th>[% id_column | html FILTER ucfirst %] already in list</th></tr> |
79 |
</thead> |
79 |
</thead> |
80 |
<tbody> |
80 |
<tbody> |
81 |
[% FOREACH ed IN existed %] |
81 |
[% FOREACH ed IN existed %] |
Lines 96-111
Link Here
|
96 |
<li id="add_patrons_by_search"><a href="#"> |
96 |
<li id="add_patrons_by_search"><a href="#"> |
97 |
<span class="label"> </span> |
97 |
<span class="label"> </span> |
98 |
<i class="fa fa-plus"></i> Search for patrons</a></li> |
98 |
<i class="fa fa-plus"></i> Search for patrons</a></li> |
99 |
<li id="add_patrons_by_barcode"><a href="#"> |
99 |
<li id="add_patrons_by_id"><a href="#"> |
100 |
<span class="label"> </span> |
100 |
<span class="label"> </span> |
101 |
<i class="fa fa-plus"></i> Enter multiple card numbers</a></li> |
101 |
<i class="fa fa-plus"></i> Add multiple patrons</a></li> |
102 |
<li id="patron_barcodes_line"> |
102 |
<li id="patron_ids_line"> |
103 |
<label for="patrons_by_barcode">Card number list (one barcode per line):</label> |
103 |
<fieldset class="rows"> |
104 |
<textarea id="patrons_by_barcode" name="patrons_by_barcode" id="" cols="30" rows="10"></textarea> |
104 |
<legend>Choose type of ID to enter</legend> |
|
|
105 |
<span class="radio"> |
106 |
<label for "cardnumbers"> |
107 |
<input id="add_by_cardnumbers" type="radio" name="id_column" value="cardnumbers" checked="checked"> |
108 |
<span class="add_by_cardnumbers">Cardnumbers</span> |
109 |
</label> |
110 |
<label for "borrowernumbers"> |
111 |
<input id="add_by_borrwernumbers" type="radio" name="id_column" value="borrowernumbers"> |
112 |
<span class="add_by_borrowernumbers">Borrowernumbers</span> |
113 |
</label> |
114 |
</span> |
115 |
</fieldset> |
116 |
<label for="patrons_by_id">List (one barcode per line):</label> |
117 |
<textarea id="patrons_by_id" name="patrons_by_id" id="" cols="30" rows="10"></textarea> |
105 |
</li> |
118 |
</li> |
106 |
</ol> |
119 |
</ol> |
107 |
</fieldset> |
120 |
</fieldset> |
108 |
<fieldset id="patron_barcodes_submit" class="action"> |
121 |
<fieldset id="patron_ids_submit" class="action"> |
109 |
<input type="submit" value="Submit" /> |
122 |
<input type="submit" value="Submit" /> |
110 |
</fieldset> |
123 |
</fieldset> |
111 |
|
124 |
|
Lines 247-260
Link Here
|
247 |
} |
260 |
} |
248 |
}); |
261 |
}); |
249 |
|
262 |
|
250 |
$("#add_patrons_by_barcode a").on("click", function(){ |
263 |
$("#add_patrons_by_id a").on("click", function(){ |
251 |
$("#add_patrons_by_barcode, #patron_search_line").hide(); |
264 |
$("#add_patrons_by_id, #patron_search_line").hide(); |
252 |
$("#add_patrons_by_search, #patron_barcodes_line, #patron_barcodes_submit").show(); |
265 |
$("#add_patrons_by_search, #patron_ids_line, #patron_ids_submit").show(); |
253 |
}); |
266 |
}); |
254 |
|
267 |
|
255 |
$("#add_patrons_by_search a").on("click", function(){ |
268 |
$("#add_patrons_by_search a").on("click", function(){ |
256 |
$("#add_patrons_by_barcode, #patron_search_line").show(); |
269 |
$("#add_patrons_by_id, #patron_search_line").show(); |
257 |
$("#add_patrons_by_search, #patron_barcodes_line, #patron_barcodes_submit").hide(); |
270 |
$("#add_patrons_by_search, #patron_ids_line, #patron_ids_submit").hide(); |
258 |
}); |
271 |
}); |
259 |
|
272 |
|
260 |
$('.merge-patrons').on('click', function() { |
273 |
$('.merge-patrons').on('click', function() { |