Bug 10565: Add a "Patron List" feature for storing and manipulating collections of...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patron_lists / add-modify.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patron lists &rsaquo; New list</title>
3 [% 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>
21
22 <body>
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'cat-search.inc' %]
25 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="lists.pl">Patron lists</a> &rsaquo; Add / modify list</div>
26
27
28 <div class="yui-t7">
29     <div class="yui-main">
30         <h1>New patron list</h1>
31
32         <form method="post" onsubmit="return CheckForm()">
33             <fieldset class="rows">
34
35                 <legend>Create a new patron list</legend>
36
37                 <ol>
38                     <li>
39                         <label class="required" for="name">Name:</label>
40                         <input id="list-name" name="name" type="text" value="[% list.name %]" />
41                     </li>
42
43                     <li>
44                         <span class="label">Owner: </span>[% loggedinusername %]
45                     </li>
46                 </ol>
47
48             </fieldset>
49
50             <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
51             <input type="submit" class="btn" value="Save" />
52             <a href="lists.pl" class="cancel">Cancel</a>
53         </form>
54     </div>
55 </div>
56 [% INCLUDE 'intranet-bottom.inc' %]