6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Acquisitions ›
9 [% IF ( basketno ) %]Edit basket '[% basketname | html %]'
10 [% ELSE %]Add a basket to [% booksellername | html %]
14 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="acq_basketheader" class="acq">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'acquisitions-search.inc' %]
21 <div id="breadcrumbs">
22 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
23 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
24 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a> ›
26 [% IF ( basketno ) %]Edit basket '[% basketname | html %]'
27 [% ELSE %]Add a basket to [% booksellername | html %]
32 <div class="main container-fluid">
34 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
38 <h1>Edit basket [% basketname | html %]</h1>
39 [% ELSE %]<h1>Add a basket to [% booksellername | html %]</h1>
41 <form name="Aform" action="[% script_name | html %]" method="post" class="validated">
42 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
43 <fieldset class="rows">
47 <input type="hidden" name="basketno" value="[% basketno | html %]" />
48 <input type="hidden" name="is_an_edit" value="1" />
52 <label for="basketname" class="required">Basket name: </label>
53 <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname | html %]" required="required" class="focus required" />
54 <span class="required">Required</span>
57 <label for="billingplace">Billing place: </label>
58 <select name="billingplace" id="billingplace">
59 <option value="">--</option>
60 [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
64 <label for="deliveryplace">Delivery place: </label>
65 <select name="deliveryplace" id="deliveryplace">
66 <option value="">--</option>
67 [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
71 <label for="basketbooksellerid">Vendor: </label>
72 <select name="basketbooksellerid" id="basketbooksellerid">
73 [% FOREACH b IN booksellers %]
74 [% IF booksellerid == b.id %]
75 <option value="[% b.id | html %]" selected="selected">[% b.name | html %]</option>
77 <option value="[% b.id | html %]">[% b.name | html %]</option>
83 <label for="basketnote">Internal note: </label>
84 <textarea name="basketnote" id="basketnote" rows="5" cols="40">[% basketnote |html %]</textarea>
87 <label for="basketbooksellernote">Vendor note: </label>
88 <textarea name="basketbooksellernote" id="basketbooksellernote" rows="5" cols="40">[% basketbooksellernote |html %]</textarea>
90 [% IF ( contractloop ) %]
91 <li><label for="basketcontractnumber">Contract: </label>
92 <select id="basketcontractnumber" name="basketcontractnumber">
93 <option value=""></option>
94 [% FOREACH contractloo IN contractloop %]
95 [% IF ( contractloo.selected ) %]
96 <option value="[% contractloo.contractnumber | html %]" selected="selected">[% contractloo.contractname | html %]</option>
98 <option value="[% contractloo.contractnumber | html %]">[% contractloo.contractname | html %]</option>
105 <label for="is_standing">Orders are standing:</label>
107 <input type="checkbox" id="is_standing" name="is_standing" checked="checked" />
109 <input type="checkbox" id="is_standing" name="is_standing"/>
111 <div class="hint">Standing orders do not close when received.</div>
114 <input type="hidden" name="create_items" value="[% create_items | html %]" />
117 <label for="create_items">Create items when:</label>
118 <select name="create_items" id="create_items">
119 [% SWITCH Koha.Preference('AcqCreateItem') %]
120 [% CASE 'receiving' %]<option value="">use default (receiving an order)</option>
121 [% CASE 'cataloguing' %]<option value="">use default (cataloging the record)</option>
122 [% CASE %]<option value="">use default (placing an order)</option>
124 <option value="ordering">placing an order</option>
125 <option value="receiving">receiving an order</option>
126 <option value="cataloguing">cataloging the record</option>
133 [% IF available_additional_fields %]
134 [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %]
137 <fieldset class="action">
138 <input type="hidden" name="op" value="add_validate" />
139 <input type="submit" value="Save" />
140 [% IF ( basketno ) %]
141 <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Cancel</a>
143 <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">Cancel</a>
151 [% MACRO jsinclude BLOCK %]
152 [% Asset.js("js/acquisitions-menu.js") | $raw %]
153 [% Asset.js("js/acq.js") | $raw %]
156 [% INCLUDE 'intranet-bottom.inc' %]