Bug 35206: Adjust style of add button on curbside pickups administration
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / addbybiblionumber.tt
1 [% USE raw %]
2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5     [% t("Add to list") | html %] &rsaquo;
6     [% t("Lists") | html %] &rsaquo;
7     [% t("Koha") | html %]
8 [% END %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11
12 <body id="lists_addbybiblionumber" class="lists">
13     <div class="container-fluid">
14
15 [% UNLESS (authorized) %]
16     <div class="dialog alert">
17         <h1>Error adding to list</h1>
18         [% IF (errcode==1) %]<p>Could not create a new list. Please check the name.</p>[% END %]
19         [% IF (errcode==2) %]<p>Sorry, you do not have permission to add items to this list.</p>[% END %]
20         <button class="btn btn-default close_window focus">Close window</button>
21     </div>
22 [% ELSE %]
23
24                 [% IF ( multiple ) %]
25             <h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
26                 [% ELSE %]
27                         <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
28                 [% END %]
29         <ul>
30             [% FOREACH biblio IN biblios %]
31             <li> <span class="title">[% biblio.title | html %]</span>
32                 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %] </span>[% END %]
33             </li>
34             [% END %]
35                 </ul>
36
37         <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
38                         [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
39             <input type="hidden" name="confirmed" value="1" />
40             [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />[% END %]
41
42 [% UNLESS ( shelfnumber ) %]
43
44 [% UNLESS ( newshelf ) %]
45     [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %]
46      <fieldset class="rows">
47     <legend>Select an existing list</legend>
48     <ol>
49         <li>
50             <label>Choose list</label>
51             <select name="shelfnumber" id="shelfnumber">
52                 [% IF private_shelves.count %]
53                     <optgroup label="Private lists">
54                         [% FOREACH private_shelf IN private_shelves %]
55                             <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
56                         [% END %]
57                     </optgroup>
58                 [% END %]
59                 [% IF private_shelves_shared_with_me.count %]
60                     <optgroup label="Private lists shared with me">
61                         [% FOREACH private_shelf IN private_shelves_shared_with_me %]
62                             <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
63                         [% END %]
64                     </optgroup>
65                 [% END %]
66                 [% IF public_shelves.count %]
67                     <optgroup label="Public lists">
68                         [% FOREACH public_shelf IN public_shelves %]
69                             <option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option>
70                         [% END %]
71                     </optgroup>
72                 [% END %]
73             </select>
74         </li>
75     </ol>
76     [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
77     [% UNLESS ( biblionumbers ) %]
78       <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
79     [% ELSE %]
80       <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]" />
81     [% END %]
82     </fieldset>
83
84     <p>... or...</p>
85 [% END %]
86 [% END %]
87
88     <fieldset class="rows"><legend>Add to a new list:</legend>
89     <ol><li>
90         <label for="newvirtualshelf">
91         List name:
92         </label>
93         [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
94         [% UNLESS ( biblionumbers ) %]
95               <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
96         [% ELSE %]
97               <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers | html %]" />
98         [% END %]
99         <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
100         <input type="hidden" name="confirmed" value="1" />
101     </li>
102     <li>
103         <label for="category">Category:</label>
104         <select name="public" id="public">
105         <option value="0">Private</option>
106         <option value="1">Public</option>
107         </select>
108     </li></ol>
109     </fieldset>
110
111
112 [% END %]
113
114         <input type="hidden" name="sortfield" value="title" />
115         <nav class="navbar navbar-default navbar-fixed-bottom">
116             <div class="container-fluid">
117                 <fieldset class="action">
118                     <input type="submit" class="btn btn-primary" value="Save" />
119                     <button class="btn btn-default close_window">Cancel</button>
120                 </fieldset>
121             </div>
122         </nav>
123     </form>
124 [% END %]
125
126 [% SET popup_window = 1 %]
127 [% INCLUDE 'intranet-bottom.inc' %]