Lines 25-41
Link Here
|
25 |
"sPaginationType": "four_button" |
25 |
"sPaginationType": "four_button" |
26 |
})); |
26 |
})); |
27 |
|
27 |
|
28 |
[% UNLESS library %] |
28 |
$("#library_entry").validate({ |
29 |
$("#Aform").on("submit", function( event ) { |
29 |
rules: { |
30 |
if ( $("#branchcode").val().match(/\s/) ) { |
30 |
branchcode: { |
31 |
event.preventDefault(); |
31 |
required: true, |
32 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
32 |
letters_numbers: true |
33 |
return false; |
33 |
}, |
34 |
} else { |
34 |
branchname: "required" |
35 |
return true; |
35 |
} |
36 |
} |
36 |
}); |
37 |
}); |
|
|
38 |
[% END %] |
39 |
}); |
37 |
}); |
40 |
tinyMCE.init({ |
38 |
tinyMCE.init({ |
41 |
mode : "textareas", |
39 |
mode : "textareas", |
Lines 132-138
tinyMCE.init({
Link Here
|
132 |
|
130 |
|
133 |
[% IF op == 'add_form' %] |
131 |
[% IF op == 'add_form' %] |
134 |
<h3>[% IF library %]Modify library[% ELSE %]New library[% END %]</h3> |
132 |
<h3>[% IF library %]Modify library[% ELSE %]New library[% END %]</h3> |
135 |
<form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post"> |
133 |
<form action="/cgi-bin/koha/admin/branches.pl" id="library_entry" method="post"> |
136 |
<fieldset class="rows"> |
134 |
<fieldset class="rows"> |
137 |
<input type="hidden" name="op" value="add_validate" /> |
135 |
<input type="hidden" name="op" value="add_validate" /> |
138 |
[% IF library %] |
136 |
[% IF library %] |
Lines 271-277
tinyMCE.init({
Link Here
|
271 |
<td>[% library.branchip %]</td> |
269 |
<td>[% library.branchip %]</td> |
272 |
<td class="actions"> |
270 |
<td class="actions"> |
273 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a> |
271 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a> |
274 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=delete_confirm&branchcode=[% library.branchcode %]"><i class="fa fa-trash"></i> Delete</a> |
272 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
|
|
273 |
<input type="hidden" name="branchcode" value="[% library.branchcode %]" /> |
274 |
<input type="hidden" name="op" value="delete_confirm" /> |
275 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button> |
276 |
</form> |
275 |
</td> |
277 |
</td> |
276 |
</tr> |
278 |
</tr> |
277 |
[% END %] |
279 |
[% END %] |
Lines 302-308
tinyMCE.init({
Link Here
|
302 |
<td>[% category.codedescription |html %]</td> |
304 |
<td>[% category.codedescription |html %]</td> |
303 |
<td class="actions"> |
305 |
<td class="actions"> |
304 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a> |
306 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a> |
305 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a> |
307 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
|
|
308 |
<input type="hidden" name="categorycode" value="[% category.categorycode %]" /> |
309 |
<input type="hidden" name="op" value="delete_confirm_category" /> |
310 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button> |
311 |
</form> |
306 |
</td> |
312 |
</td> |
307 |
</tr> |
313 |
</tr> |
308 |
[% END %] |
314 |
[% END %] |