Bug 14321: Integrate Upload.pm into Koha
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patron_lists / add-modify.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &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 id="patlist_add_modify" class="pat patlist">
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="/cgi-bin/koha/tools/tools-home.pl">Tools</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>
31             [% IF list.patron_list_id %]
32                 Modify patron list
33             [% ELSE %]
34                 New patron list
35             [% END %]
36         </h1>
37
38         <form method="post" onsubmit="return CheckForm()">
39             <fieldset class="rows">
40
41                 <legend>
42                     [% IF list.patron_list_id %]
43                     Modify patron list
44                     [% ELSE %]
45                     Create a new patron list
46                     [% END %]
47                 </legend>
48
49                 <ol>
50                     <li>
51                         <label class="required" for="name">Name:</label>
52                         <input id="list-name" name="name" type="text" value="[% list.name %]" />
53                     </li>
54
55                     <li>
56                         <span class="label">Owner: </span>[% loggedinusername %]
57                     </li>
58                 </ol>
59
60             </fieldset>
61
62             <input type="hidden" name="patron_list_id" value="[% list.patron_list_id %]" />
63             <input type="submit" class="btn" value="Save" />
64             <a href="lists.pl" class="cancel">Cancel</a>
65         </form>
66     </div>
67 </div>
68 [% INCLUDE 'intranet-bottom.inc' %]