Bug 34862: (follow-up) Fix some misplaced messages and add missing
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patron_lists / add-modify.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% PROCESS 'i18n.inc' %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7     [% IF list.patron_list_id %]
8         [% tx("Modify patron list '{list_name}'", { list_name = list.name }) | html %]
9     [% ELSE %]
10         [% t("New patron list") | html %]
11     [% END %] &rsaquo;
12     [% t("Patron lists") | html %] &rsaquo;
13     [% t("Tools") | html %] &rsaquo;
14     [% t("Koha") | html %]
15 [% END %]</title>
16 [% INCLUDE 'doc-head-close.inc' %]
17 </head>
18
19 <body id="patlist_add_modify" class="pat patlist">
20 [% WRAPPER 'header.inc'  %]
21     [% INCLUDE 'cat-search.inc' %]
22 [% END %]
23
24     [% WRAPPER 'sub-header.inc' %]
25         [% WRAPPER breadcrumbs %]
26             [% WRAPPER breadcrumb_item %]
27                 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
28             [% END %]
29             [% WRAPPER breadcrumb_item %]
30                 <a href="lists.pl">Patron lists</a>
31             [% END %]
32             [% WRAPPER breadcrumb_item bc_active= 1 %]
33                 [% IF list.patron_list_id %]
34                     [% tx("Modify patron list '{list_name}'", { list_name = list.name }) | html %]
35                 [% ELSE %]
36                     <span>New patron list</span>
37                 [% END %]
38             [% END %]
39         [% END #/ WRAPPER breadcrumbs %]
40     [% END #/ WRAPPER sub-header.inc %]
41
42     <div class="container-fluid">
43         <div class="row">
44             <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
45                 [% INCLUDE 'messages.inc' %]
46         <h1>
47             [% IF list.patron_list_id %]
48                 [% tx("Modify patron list '{list_name}'", { list_name = list.name }) | html %]
49             [% ELSE %]
50                 <span>New patron list</span>
51             [% END %]
52         </h1>
53
54         <form method="post" action="/cgi-bin/koha/patron_lists/add-modify.pl" class="validated">
55             <fieldset class="rows">
56
57                 <legend class="sr-only">Patron list details</legend>
58
59                 <ol>
60                     <li>
61                         <label class="required" for="list-name">Name:</label>
62                         <input id="list-name" name="name" type="text" class="required" required="required" value="[% list.name | html %]" />
63                     </li>
64
65                     <li>
66                         <label for="list-shared">Shared:</label>
67                         [% IF list.shared %]
68                             <input id="list-shared" name="shared" type="checkbox" checked="checked" />
69                         [% ELSE %]
70                             <input id="list-shared" name="shared" type="checkbox" />
71                         [% END %]
72                     </li>
73
74                     <li>
75                         <span class="label">Owner: </span>[% logged_in_user.userid | html %]
76                     </li>
77                 </ol>
78
79             </fieldset>
80
81             <fieldset class="action">
82                 <input type="hidden" name="patron_list_id" value="[% list.patron_list_id | html %]" />
83                 <input type="submit" class="btn btn-primary" value="Save" />
84                 <a href="lists.pl" class="cancel">Cancel</a>
85             </fieldset>
86         </form>
87             </div>
88         </div>
89
90 [% MACRO jsinclude BLOCK %]
91     [% Asset.js("js/tools-menu.js") | $raw %]
92 [% END %]
93
94 [% INCLUDE 'intranet-bottom.inc' %]