Bug 27846: (follow-up) Add id back to breadcrumbs container
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basketheader.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Branches %]
4 [% USE Koha %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha &rsaquo; Acquisitions &rsaquo;
8 [% IF ( add_form ) %]
9     [% IF ( basketno ) %]Edit basket '[% basketname | html %]'
10         [% ELSE %]Add a basket to [% booksellername | html %]
11     [% END %]
12 [% END %]
13 </title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 </head>
16
17 <body id="acq_basketheader" class="acq">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'acquisitions-search.inc' %]
20
21 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
22     <ol>
23         <li>
24             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25         </li>
26         <li>
27             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
28         </li>
29         <li>
30             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
31         </li>
32         [% IF ( add_form ) %]
33             [% IF ( basketno ) %]
34                 <li>
35                     <a href="#" aria-current="page">
36                         Edit basket '[% basketname | html %]'
37                     </a>
38                 </li>
39             [% ELSE %]
40                 <li>
41                     <a href="#" aria-current="page">
42                         Add a basket to [% booksellername | html %]
43                     </a>
44                 </li>
45             [% END %]
46         [% END %]
47     </ol>
48 </nav>
49
50 <div class="main container-fluid">
51     <div class="row">
52         <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
53
54     [% IF ( add_form ) %]
55         [% IF ( basketno ) %]
56             <h1>Edit basket [% basketname | html %]</h1>
57         [% ELSE %]<h1>Add a basket to [% booksellername | html %]</h1>
58         [% END %]
59     <form name="Aform" action="[% script_name | html %]" method="post" class="validated">
60         <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
61         <fieldset class="rows">
62             <ol>
63                 [% IF ( basketno ) %]
64                     <li>
65                         <input type="hidden" name="basketno" value="[% basketno | html %]" />
66                         <input type="hidden" name="is_an_edit" value="1" />
67                     </li>
68                 [% END %]
69                 <li>
70                     <label for="basketname" class="required">Basket name: </label>
71                     <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname | html %]" required="required" class="focus required" />
72                     <span class="required">Required</span>
73                 </li>
74                 <li>
75                     <label for="billingplace">Billing place: </label>
76                     <select name="billingplace" id="billingplace">
77                         <option value="">--</option>
78                         [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
79                     </select>
80                 </li>
81                 <li>
82                     <label for="deliveryplace">Delivery place: </label>
83                     <select name="deliveryplace" id="deliveryplace">
84                         <option value="">--</option>
85                         [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
86                     </select>
87                 </li>
88                 <li>
89                     <label for="basketbooksellerid">Vendor: </label>
90                     <select name="basketbooksellerid" id="basketbooksellerid">
91                     [% FOREACH b IN booksellers %]
92                         [% IF booksellerid == b.id %]
93                            <option value="[% b.id | html %]" selected="selected">[% b.name | html %]</option>
94                         [% ELSE %]
95                            <option value="[% b.id | html %]">[% b.name | html %]</option>
96                         [% END %]
97                     [% END %]
98             </select>
99                 </li>
100                 <li>
101                     <label for="basketnote">Internal note: </label>
102                     <textarea name="basketnote" id="basketnote" rows="5" cols="40">[% basketnote |html %]</textarea>
103                 </li>
104                 <li>
105                     <label for="basketbooksellernote">Vendor note: </label>
106                     <textarea name="basketbooksellernote" id="basketbooksellernote" rows="5" cols="40">[% basketbooksellernote |html %]</textarea>
107                 </li>
108                 [% IF ( contractloop ) %]
109                     <li><label for="basketcontractnumber">Contract: </label>
110                         <select id="basketcontractnumber" name="basketcontractnumber">
111                             <option value=""></option>
112                             [% FOREACH contractloo IN contractloop %]
113                                 [% IF ( contractloo.selected ) %]
114                                     <option value="[% contractloo.contractnumber | html %]" selected="selected">[% contractloo.contractname | html %]</option>
115                                 [% ELSE %]
116                                      <option value="[% contractloo.contractnumber | html %]">[% contractloo.contractname | html %]</option>
117                                 [% END %]
118                             [% END %]
119                         </select>
120                     </li>
121                 [% END %]
122                 <li>
123                     <label for="is_standing">Orders are standing:</label>
124                     [% IF is_standing %]
125                         <input type="checkbox" id="is_standing" name="is_standing" checked="checked" />
126                     [% ELSE %]
127                         <input type="checkbox" id="is_standing" name="is_standing"/>
128                     [% END %]
129                     <div class="hint">Standing orders do not close when received.</div>
130                 </li>
131                 [% IF basketno %]
132                     <input type="hidden" name="create_items" value="[% create_items | html %]" />
133                 [% ELSE %]
134                  <li>
135                     <label for="create_items">Create items when:</label>
136                     <select name="create_items" id="create_items">
137                         [% SWITCH Koha.Preference('AcqCreateItem') %]
138                             [% CASE 'receiving' %]<option value="">use default (receiving an order)</option>
139                             [% CASE 'cataloguing' %]<option value="">use default (cataloging the record)</option>
140                             [% CASE %]<option value="">use default (placing an order)</option>
141                         [% END %]
142                         <option value="ordering">placing an order</option>
143                         <option value="receiving">receiving an order</option>
144                         <option value="cataloguing">cataloging the record</option>
145                     </select>
146                 </li>
147                 [% END %]
148             </ol>
149         </fieldset>
150
151         [% IF available_additional_fields %]
152             [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %]
153         [% END %]
154
155         <fieldset class="action">
156             <input type="hidden" name="op" value="add_validate" />
157             <input type="submit" value="Save" />
158             [% IF ( basketno ) %]
159                 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
160             [% ELSE %]
161                 <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">Cancel</a>
162             [% END %]
163         </fieldset>
164     </form>
165     [% END %]
166 </div>
167 </div>
168
169 [% MACRO jsinclude BLOCK %]
170     [% Asset.js("js/acquisitions-menu.js") | $raw %]
171     [% Asset.js("js/acq.js") | $raw %]
172 [% END %]
173
174 [% INCLUDE 'intranet-bottom.inc' %]