2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Patron lists › [% list.name %] › Add patrons</title>
4 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
9 <script type="text/javascript" src="[% interface %]/js/autocomplete/patrons.js"></script>
10 <script type="text/javascript">
12 var MSG_REMOVE_PATRON = _("Remove");
13 $(document).ready(function() {
14 $('#patrons_to_add_fieldset').hide();
16 $('#patron-list-table').dataTable($.extend(true, {}, dataTablesDefaults, {
17 "order": [[ 3, "asc" ]],
19 null,null,null,null,null,null,null,{ "sType": "title-string" },null
22 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
24 "sPaginationType": "four_button"
28 patron_container: $("#patrons_to_add"),
29 input_autocomplete: $("#find_patron"),
30 patron_input_name: 'patrons_to_add'
33 var checkBoxes = $("input[type='checkbox']","#patron-list-table");
35 $("#CheckAll").click(function(e){
37 checkBoxes.each(function(){
38 $(this).prop("checked",1);
41 $("#CheckNone").click(function(e){
43 checkBoxes.each(function(){
44 $(this).prop("checked",0);
48 $("#remove_patrons").submit(function(){
49 var checkedItems = $("input:checked");
50 if ($(checkedItems).size() == 0) {
51 alert(_("You must select one or more patrons to remove"));
54 $(checkedItems).parents('tr').addClass("warn");
55 if( confirm(_("Are you sure you want to remove the selected patrons?")) ) {
58 $(checkedItems).parents('tr').removeClass("warn");
69 <body id="patlist_list" class="pat patlist">
70 [% INCLUDE 'header.inc' %]
71 [% INCLUDE 'cat-search.inc' %]
72 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="lists.pl">Patron lists</a> › <a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% list.id %]">[% list.name %]</a> › Add patrons</div>
74 <div id="doc3" class="yui-t2">
78 <h1>[% list.name %]</h1>
80 <form action="list.pl" id="add_patrons" method="post">
82 <legend>Add patrons</legend>
84 <label for="find_patron">Patron search: </label>
85 <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" />
86 <div id="find_patron_container"></div>
88 <fieldset id="patrons_to_add_fieldset">
89 <legend>Patrons to be added</legend>
90 <div id="patrons_to_add"></div>
92 <fieldset class="action">
93 <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
94 <input type="submit" value="Add patrons" />
95 <a href="lists.pl" class="cancel">Cancel</a>
102 <form action="list.pl" id="remove_patrons" method="post">
104 <div id="searchheader">
105 <span class="checkall"><a id="CheckAll" href="#">Select all</a></span> |
106 <span class="clearall"><a id="CheckNone" href="#">Clear all</a></span> |
107 <div class="btn-group">
108 <button class="btn btn-mini list-remove" type="submit"><i class="fa fa-times-circle"></i> Remove selected</button>
112 <table id="patron-list-table">
128 [% FOREACH p IN list.patron_list_patrons %]
130 <td><input type="checkbox" name="patrons_to_remove" value="[% p.patron_list_patron_id %]" /></td>
132 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.borrowernumber.borrowernumber %]">
133 [% p.borrowernumber.cardnumber %]
136 <td>[% p.borrowernumber.firstname %]</td>
137 <td>[% p.borrowernumber.surname %]</td>
139 [% p.borrowernumber.address %]
140 [% p.borrowernumber.address2 %]
141 [% p.borrowernumber.city %]
142 [% p.borrowernumber.state %]
143 [% p.borrowernumber.country %]
145 <td>[% p.borrowernumber.categorycode.description %] ([% p.borrowernumber.categorycode.categorycode %])</td>
146 <td>[% p.borrowernumber.branchcode.branchname %]</td>
147 <td><span title="[% p.borrowernumber.dateexpiry %]">[% p.borrowernumber.dateexpiry | $KohaDates %]</span></td>
148 <td>[% p.borrowernumber.borrowernotes %]</td>
154 <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
155 <input type="submit" value="Remove selected patrons" />
160 <div class="yui-b noprint">
161 [% INCLUDE 'tools-menu.inc' %]
164 [% INCLUDE 'intranet-bottom.inc' %]