Lines 1-28
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Tools › Patron lists › New list</title> |
2 |
<title>Koha › Tools › Patron lists › |
|
|
3 |
[% IF list.patron_list_id %] |
4 |
Modify patron list |
5 |
[% ELSE %] |
6 |
New patron list |
7 |
[% END %] |
8 |
</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
|
|
|
5 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
7 |
|
8 |
function CheckForm() { |
9 |
if ( !$("#list-name").val() ) { |
10 |
alert( _("Name is a required field!") ); |
11 |
return false; |
12 |
} |
13 |
|
14 |
return true; |
15 |
} |
16 |
|
17 |
//]]> |
18 |
</script> |
19 |
|
20 |
</head> |
10 |
</head> |
21 |
|
11 |
|
22 |
<body id="patlist_add_modify" class="pat patlist"> |
12 |
<body id="patlist_add_modify" class="pat patlist"> |
23 |
[% INCLUDE 'header.inc' %] |
13 |
[% INCLUDE 'header.inc' %] |
24 |
[% INCLUDE 'cat-search.inc' %] |
14 |
[% INCLUDE 'cat-search.inc' %] |
25 |
<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> › Add / modify list</div> |
15 |
<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> › |
|
|
16 |
[% IF list.patron_list_id %] |
17 |
Modify patron list |
18 |
[% ELSE %] |
19 |
New patron list |
20 |
[% END %] |
21 |
</div> |
26 |
|
22 |
|
27 |
|
23 |
|
28 |
<div class="yui-t7"> |
24 |
<div class="yui-t7"> |
Lines 35-41
function CheckForm() {
Link Here
|
35 |
[% END %] |
31 |
[% END %] |
36 |
</h1> |
32 |
</h1> |
37 |
|
33 |
|
38 |
<form method="post" onsubmit="return CheckForm()"> |
34 |
<form method="post" action="/cgi-bin/koha/patron_lists/add-modify.pl" class="validated"> |
39 |
<fieldset class="rows"> |
35 |
<fieldset class="rows"> |
40 |
|
36 |
|
41 |
<legend> |
37 |
<legend> |
Lines 48-55
function CheckForm() {
Link Here
|
48 |
|
44 |
|
49 |
<ol> |
45 |
<ol> |
50 |
<li> |
46 |
<li> |
51 |
<label class="required" for="name">Name:</label> |
47 |
<label class="required" for="list-name">Name:</label> |
52 |
<input id="list-name" name="name" type="text" value="[% list.name %]" /> |
48 |
<input id="list-name" name="name" type="text" class="required" required="required" value="[% list.name %]" /> |
53 |
</li> |
49 |
</li> |
54 |
|
50 |
|
55 |
<li> |
51 |
<li> |
Lines 59-68
function CheckForm() {
Link Here
|
59 |
|
55 |
|
60 |
</fieldset> |
56 |
</fieldset> |
61 |
|
57 |
|
62 |
<input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> |
58 |
<fieldset class="action"> |
63 |
<input type="submit" class="btn" value="Save" /> |
59 |
<input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" /> |
64 |
<a href="lists.pl" class="cancel">Cancel</a> |
60 |
<input type="submit" value="Save" /> |
|
|
61 |
<a href="lists.pl" class="cancel">Cancel</a> |
62 |
</fieldset> |
65 |
</form> |
63 |
</form> |
66 |
</div> |
64 |
</div> |
67 |
</div> |
65 |
|
68 |
[% INCLUDE 'intranet-bottom.inc' %] |
66 |
[% INCLUDE 'intranet-bottom.inc' %] |