|
Lines 6-12
Link Here
|
| 6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
| 7 |
[% INCLUDE 'calendar.inc' %] |
7 |
[% INCLUDE 'calendar.inc' %] |
| 8 |
<script type="text/javascript"> |
8 |
<script type="text/javascript"> |
| 9 |
// <![CDATA[ |
9 |
$(document).ready(function(){ |
|
|
10 |
$("#delete_patrons_form").on("submit",function(){ |
| 11 |
return checkForm( this ); |
| 12 |
}); |
| 13 |
}); |
| 10 |
/** |
14 |
/** |
| 11 |
* checkForm(form) |
15 |
* checkForm(form) |
| 12 |
* This function check the form is correctly filled. |
16 |
* This function check the form is correctly filled. |
|
Lines 20-26
Link Here
|
| 20 |
} |
24 |
} |
| 21 |
if((form.checkbox[1].checked)){ |
25 |
if((form.checkbox[1].checked)){ |
| 22 |
if(!(form.date2.value)){ |
26 |
if(!(form.date2.value)){ |
| 23 |
alert(_("please enter a date!")); |
27 |
alert(_("Please enter a date!")); |
| 24 |
return false; |
28 |
return false; |
| 25 |
} |
29 |
} |
| 26 |
} |
30 |
} |
|
Lines 30-51
Link Here
|
| 30 |
} |
34 |
} |
| 31 |
return true; |
35 |
return true; |
| 32 |
} |
36 |
} |
| 33 |
|
|
|
| 34 |
/** |
| 35 |
* checkForm2(form) |
| 36 |
* This function check the form2 is correctly filled. |
| 37 |
*/ |
| 38 |
function checkForm2(form) { |
| 39 |
return true; |
| 40 |
} |
| 41 |
|
| 42 |
$(document).ready(function() { |
| 43 |
$('#selectlibrary').find("input:submit").hide(); |
| 44 |
$('#branch').change(function() { |
| 45 |
$('#selectlibrary').submit(); |
| 46 |
}); |
| 47 |
}); |
| 48 |
// ]]> |
| 49 |
</script> |
37 |
</script> |
| 50 |
|
38 |
|
| 51 |
</head> |
39 |
</head> |
|
Lines 90-96
Link Here
|
| 90 |
<p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p> |
78 |
<p>This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.</p> |
| 91 |
</div> |
79 |
</div> |
| 92 |
<div id="step1"> |
80 |
<div id="step1"> |
| 93 |
<form name="f1" onsubmit="return checkForm(this);" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
81 |
<form name="f1" id="delete_patrons_form" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
| 94 |
<fieldset> |
82 |
<fieldset> |
| 95 |
<legend>Delete patrons</legend> |
83 |
<legend>Delete patrons</legend> |
| 96 |
<h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3> |
84 |
<h3><input id="checkborrower" type="checkbox" name="checkbox" value="borrower" /><label for="checkborrower"> Verify you want to delete patrons</label></h3> |
|
Lines 167-173
Link Here
|
| 167 |
[% IF step == 2 %] |
155 |
[% IF step == 2 %] |
| 168 |
<!-- STEP 2 START --> |
156 |
<!-- STEP 2 START --> |
| 169 |
<div id="step2"> |
157 |
<div id="step2"> |
| 170 |
<form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post" onsubmit="return checkForm2(this);"> |
158 |
<form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" method="post"> |
| 171 |
<fieldset> |
159 |
<fieldset> |
| 172 |
<legend>Warnings</legend> |
160 |
<legend>Warnings</legend> |
| 173 |
<ul> |
161 |
<ul> |