Bug 10904: Limit patron update request management by branch
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / basketheader.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo;
3 [% IF ( add_form ) %]
4     [% IF ( basketno ) %]Edit basket '[% basketname %]'
5         [% ELSE %]Add a basket to [% booksellername %]
6     [% END %]
7 [% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
11 </head>
12 <body id="acq_basketheader" class="acq">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'acquisitions-search.inc' %]
15
16 <div id="breadcrumbs">
17     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
18     <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
19     <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo;
20     [% IF ( add_form ) %]
21         [% IF ( basketno ) %]Edit basket '[% basketname %]'
22         [% ELSE %]Add a basket to [% booksellername %]
23         [% END %]
24     [% END %]
25 </div>
26
27 <div id="doc" class="yui-t7">
28     <div id="bd">
29
30     <div id="yui-main">
31
32     [% IF ( add_form ) %]
33         [% IF ( basketno ) %]
34             <h1>Edit basket [% basketname %]</h1>
35         [% ELSE %]<h1>Add a basket to [% booksellername %]</h1>
36         [% END %]
37     <form name="Aform" action="[% script_name %]" method="post" class="validated">
38         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
39         <fieldset class="rows">
40             <ol>
41                 [% IF ( basketno ) %]
42                     <li>
43                         <input type="hidden" name="basketno" value="[% basketno %]" />
44                         <input type="hidden" name="is_an_edit" value="1" />
45                     </li>
46                 [% END %]
47                 <li>
48                     <label for="basketname" class="required">Basket name: </label> &nbsp;
49                         <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" required="required" class="required" />
50                         <span class="required">Required</span>
51                 </li>
52                  <li>
53                     <label for="billingplace">Billing place:</label>
54                     <select name="billingplace" id="billingplace">
55                         <option value="">--</option>
56                         [% FOREACH billingplace IN billingplaceloop %]
57                             [% IF ( billingplace.selected ) %]
58                                 <option value="[% billingplace.value %]" selected="selected">
59                             [% ELSE %]
60                                 <option value="[% billingplace.value %]">
61                             [% END %]
62                                 [% billingplace.branchname %]
63                             </option>
64                         [% END %]
65                     </select>
66                 </li>
67                 <li>
68                     <label for="deliveryplace">Delivery place:</label>
69                     <select name="deliveryplace" id="deliveryplace">
70                         <option value="">--</option>
71                         [% FOREACH deliveryplace IN deliveryplaceloop %]
72                             [% IF ( deliveryplace.selected ) %]
73                                 <option value="[% deliveryplace.value %]" selected="selected">
74                             [% ELSE %]
75                                 <option value="[% deliveryplace.value %]">
76                             [% END %]
77                                 [% deliveryplace.branchname %]
78                             </option>
79                         [% END %]
80                     </select>
81                 </li>
82                 <li>
83                     <label for="basketbooksellerid">Vendor: </label> &nbsp;
84                     <select name="basketbooksellerid" id="basketbooksellerid">
85                     [% FOREACH b IN booksellers %]
86                         [% IF booksellerid == b.id %]
87                            <option value="[% b.id %]" selected="selected">[% b.name %]</option>
88                         [% ELSE %]
89                            <option value="[% b.id %]">[% b.name %]</option>
90                         [% END %]
91                     [% END %]
92             </select>
93                 </li>
94                 <li>
95                     <label for="basketnote">Internal note: </label> &nbsp;
96                     <textarea name="basketnote" id="basketnote" rows="5" cols="40">[% basketnote %]</textarea>
97                 </li>
98                 <li>
99                     <label for="basketbooksellernote">Vendor note: </label> &nbsp;
100                     <textarea name="basketbooksellernote" id="basketbooksellernote" rows="5" cols="40">[% basketbooksellernote %]</textarea>
101                 </li>
102                 [% IF ( contractloop ) %]
103                     <li><label for="basketcontractnumber">Contract: </label>
104                         <select id="basketcontractnumber" name="basketcontractnumber">
105                             <option value=""></option>
106                             [% FOREACH contractloo IN contractloop %]
107                                 [% IF ( contractloo.selected ) %]
108                                     <option value="[% contractloo.contractnumber %]" selected="selected">[% contractloo.contractname %]</option>
109                                 [% ELSE %]
110                                      <option value="[% contractloo.contractnumber %]">[% contractloo.contractname %]</option>
111                                 [% END %]
112                             [% END %]
113                         </select>
114                     </li>
115                 [% END %]
116             </ol>
117         </fieldset>
118         <fieldset class="action">
119             <input type="hidden" name="op" value="add_validate" />
120             <input type="submit" value="Save" />
121             <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a>
122         </fieldset>
123     </form>
124     [% END %]
125 </div>
126 </div>
127
128 [% INCLUDE 'intranet-bottom.inc' %]