Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patron_lists / add-modify.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Tools &rsaquo; Patron lists &rsaquo;
6     [% IF list.patron_list_id %]
7         Modify patron list
8     [% ELSE %]
9         New patron list
10     [% END %]
11 </title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 </head>
14
15 <body id="patlist_add_modify" class="pat patlist">
16 [% INCLUDE 'header.inc' %]
17 [% INCLUDE 'cat-search.inc' %]
18 <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;
19     [% IF list.patron_list_id %]
20         Modify patron list
21     [% ELSE %]
22         New patron list
23     [% END %]
24 </div>
25
26
27     <div class="container-fluid">
28         <div class="row">
29             <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
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" action="/cgi-bin/koha/patron_lists/add-modify.pl" class="validated">
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="list-name">Name:</label>
52                         <input id="list-name" name="name" type="text" class="required" required="required" value="[% list.name | html %]" />
53                     </li>
54
55                     <li>
56                         <label for="list-shared">Shared:</label>
57                         [% IF list.shared %]
58                             <input id="list-shared" name="shared" type="checkbox" checked="checked" />
59                         [% ELSE %]
60                             <input id="list-shared" name="shared" type="checkbox" />
61                         [% END %]
62                     </li>
63
64                     <li>
65                         <span class="label">Owner: </span>[% loggedinusername | html %]
66                     </li>
67                 </ol>
68
69             </fieldset>
70
71             <fieldset class="action">
72                 <input type="hidden" name="patron_list_id" value="[% list.patron_list_id | html %]" />
73                 <input type="submit" value="Save" />
74                 <a href="lists.pl" class="cancel">Cancel</a>
75             </fieldset>
76         </form>
77             </div>
78         </div>
79
80 [% MACRO jsinclude BLOCK %]
81     [% Asset.js("js/tools-menu.js") | $raw %]
82 [% END %]
83
84 [% INCLUDE 'intranet-bottom.inc' %]