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="[% themelang %]/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 $(document).ready(function() {
13 $('#patrons_to_add_fieldset').hide();
15 $('#patron-list-table').dataTable($.extend(true, {}, dataTablesDefaults, {
17 null,null,null,null,null,null,null,{ "sType": "title-string" },null
20 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
22 "sPaginationType": "four_button"
26 patron_container: $("#patrons_to_add"),
27 input_autocomplete: $("#find_patron"),
28 patron_input_name: 'patrons_to_add'
31 var checkBoxes = $("input[type='checkbox']","#patron-list-table");
33 $("#CheckAll").click(function(e){
35 checkBoxes.each(function(){
36 $(this).prop("checked",1);
39 $("#CheckNone").click(function(e){
41 checkBoxes.each(function(){
42 $(this).prop("checked",0);
46 $("#remove_patrons").submit(function(){
47 var checkedItems = $("input:checked");
48 if ($(checkedItems).size() == 0) {
49 alert(_("You must select one or more patrons to remove"));
52 $(checkedItems).parents('tr').addClass("warn");
53 if( confirm(_("Are you sure you want to remove the selected patrons?")) ) {
56 $(checkedItems).parents('tr').removeClass("warn");
68 [% INCLUDE 'header.inc' %]
69 [% INCLUDE 'cat-search.inc' %]
70 <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>
73 <div class="yui-main">
74 <h1>[% list.name %]</h1>
76 <form action="list.pl" id="add_patrons" method="post">
78 <legend>Add patrons</legend>
80 <label for="find_patron">Patron search: </label>
81 <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" />
82 <div id="find_patron_container"></div>
84 <fieldset id="patrons_to_add_fieldset">
85 <legend>Patrons to be added</legend>
86 <div id="patrons_to_add"></div>
88 <fieldset class="action">
89 <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
90 <input type="submit" value="Add patrons" />
91 <a href="lists.pl" class="cancel">Cancel</a>
98 <form action="list.pl" id="remove_patrons" method="post">
100 <div id="searchheader">
101 <span class="checkall"><a id="CheckAll" href="#">Select all</a></span> |
102 <span class="clearall"><a id="CheckNone" href="#">Clear all</a></span> |
103 <div class="btn-group">
104 <button class="btn btn-mini list-remove" type="submit"><i class="icon-remove-sign"></i> Remove selected</button>
108 <table id="patron-list-table">
124 [% FOREACH p IN list.patron_list_patrons %]
126 <td><input type="checkbox" name="patrons_to_remove" value="[% p.patron_list_patron_id %]" /></td>
128 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.borrowernumber.borrowernumber %]">
129 [% p.borrowernumber.cardnumber %]
132 <td>[% p.borrowernumber.firstname %]</td>
133 <td>[% p.borrowernumber.surname %]</td>
135 [% p.borrowernumber.address %]
136 [% p.borrowernumber.address2 %]
137 [% p.borrowernumber.city %]
138 [% p.borrowernumber.state %]
139 [% p.borrowernumber.country %]
141 <td>[% p.borrowernumber.categorycode.description %] ([% p.borrowernumber.categorycode.categorycode %])</td>
142 <td>[% p.borrowernumber.branchcode.branchname %]</td>
143 <td><span title="[% p.borrowernumber.dateexpiry %]">[% p.borrowernumber.dateexpiry | $KohaDates %]</span></td>
144 <td>[% p.borrowernumber.borrowernotes %]</td>
150 <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
151 <input type="submit" value="Remove selected patrons" />
155 [% INCLUDE 'intranet-bottom.inc' %]