Enabling AutoComplete on resident circ search form. Putting dependent YUI files into...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / supplier.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Supplier <!-- TMPL_VAR name="bookselname" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_UNLESS NAME="enter" --><!-- TMPL_INCLUDE NAME="yui-toolbars.inc" --><!-- /TMPL_UNLESS -->
5 <script type="text/javascript">
6 //<![CDATA[
7 function confirm_deletion() {
8     if (confirm("Confirm deletion of this supplier ?")) {
9         window.location="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&op=delete";
10     }
11 }
12 //]]>
13 </script>
14 </head>
15 <body>
16 <!-- TMPL_INCLUDE NAME="header.inc" -->
17 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
18
19 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <!--TMPL_IF Name="enter"--><!-- TMPL_IF name="id" --> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --></a> &rsaquo; Update: <!-- TMPL_VAR NAME="name" --><!-- TMPL_ELSE -->Add supplier<!-- /TMPL_IF --> <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="name" --><!-- /TMPL_IF --></div>
20
21 <div id="doc" class="yui-t7">
22    
23    <div id="bd">
24         <div id="yui-main">
25         <!--TMPL_IF Name="enter"-->
26             <!-- TMPL_IF name="id" -->
27         <h1>Update: <!-- TMPL_VAR NAME="name" --></h1>
28     <!-- TMPL_ELSE -->
29         <h1>Add supplier</h1>
30     <!-- /TMPL_IF -->
31     <!-- /TMPL_IF -->
32 <!-- TMPL_UNLESS NAME="enter" --><!-- TMPL_INCLUDE NAME="acquisitions-toolbar.inc" --><!-- /TMPL_UNLESS -->
33 <!--TMPL_IF Name="enter"-->
34     <form action="updatesupplier.pl" method="post">
35         <div class="yui-g">
36         <div class="yui-u first">
37         <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
38         <fieldset class="rows">
39             <legend>Company details</legend>
40             <ol><li><label for="company">Company Name</label>
41                 <input type="text" size="40" id="company" name="company" value="<!-- TMPL_VAR NAME="name" -->" /></li>
42             <li><label for="company_postal">Postal Address</label>
43                     <textarea id="company_postal" name="company_postal" cols="40" rows="3"><!-- TMPL_VAR NAME="postal" --></textarea></li>
44             <li><label for="physical">Physical Address</label>
45                 <textarea id="physical" name="physical" cols="40" rows="3"><!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></textarea></li>
46             <li><label for="company_phone">Phone</label>
47                 <input type="text" size="20" id="company_phone" name="company_phone" value="<!-- TMPL_VAR NAME="phone" -->" /></li>
48             <li><label for="company_fax">Fax</label>
49                 <input type="text" size="20" id="company_fax" name="company_fax" value="<!-- TMPL_VAR NAME="fax" -->" /></li>
50             <li><label for="website">Website</label>
51                 <input type="text" size="40" id="website" name="website" value="<!-- TMPL_VAR NAME="url" -->" /></li></ol>
52         </fieldset>
53                 </div>
54                 <div class="yui-u">
55         <fieldset class="rows">
56             <legend>Contact details</legend>
57            <ol> <li><label for="company_contact_name">Contact Name</label>
58                 <input type="text" size="40" id="company_contact_name" name="company_contact_name" value="<!-- TMPL_VAR NAME="contact" -->" /></li>
59             <li><label for="company_contact_position">Position</label>
60                 <input type="text" size="40" id="company_contact_position" name="company_contact_position" value="<!-- TMPL_VAR NAME="contpos" -->" /></li>
61             <li><label for="contact_phone">Phone</label>
62                 <input type="text" size="20" id="contact_phone" name="contact_phone" value="<!-- TMPL_VAR NAME="contphone" -->" /> </li>
63             <li><label for="contact_phone_2">Alternative phone</label>
64                 <input type="text" size="20" id="contact_phone_2" name="contact_phone_2" value="<!-- TMPL_VAR NAME="contaltphone" -->" /></li>
65             <li><label for="contact_fax">Fax</label>
66                 <input type="text" size="20" id="contact_fax" name="contact_fax" value="<!-- TMPL_VAR NAME="contfax" -->" /></li>
67             <li><label for="company_email">E-mail</label>
68                 <input type="text" size="40" id="company_email" name="company_email" value="<!-- TMPL_VAR NAME="contemail" -->" /></li>
69             <li><label for="contact_notes">Notes</label>
70                 <textarea id="contact_notes" name="contact_notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea></li></ol>
71         </fieldset>
72                 </div>
73         </div>
74                 <div class="yui-g">
75         <fieldset class="rows">
76             <legend>Ordering information</legend>
77             <ol class="radio"><li><label for="activestatus" class="radio">Supplier is:</label>
78                     <!-- TMPL_IF name="active" -->
79                         <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
80                         <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" />
81                     <!-- TMPL_ELSE -->
82                         <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" />
83                         <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
84                     <!-- /TMPL_IF --></li>
85                         </ol>
86                         <ol>
87             <li><label for="publishers_imprints">Preferred publishers</label>
88                 <textarea id="publishers_imprints" name="publishers_imprints" cols="40" rows="3"><!-- TMPL_VAR NAME="specialty" --></textarea></li>
89             <li><label for="list_currency">List Prices are</label>
90                     <select name="list_currency" id="list_currency">
91                     <!-- TMPL_LOOP NAME="loop_pricescurrency" -->
92                         <!-- TMPL_VAR NAME="currency" -->
93                     <!-- /TMPL_LOOP -->
94                     </select></li>
95             <li><label for="invoice_currency">Invoice Prices are</label>
96                     <select name="invoice_currency" id="invoice_currency">
97                     <!-- TMPL_LOOP NAME="loop_invoicecurrency" -->
98                         <!-- TMPL_VAR NAME="currency" -->
99                     <!-- /TMPL_LOOP -->
100                     </select></li>
101             <!-- TMPL_IF NAME="GST" --><li>GST Registered
102                                 <!-- TMPL_IF name="gstreg" -->
103                                         <input type="radio" name="gst" id="gstyes" value="1" checked="checked" /><label for="gstyes">Yes</label>
104                     <input type="radio" name="gst" id="gstno" value="0" /><label for="gstno">No</label>
105                                 <!-- TMPL_ELSE -->
106                     <input type="radio" name="gst" id="gstyes" value="1" /><label for="gstyes">Yes</label>
107                     <input type="radio" name="gst" id="gstno" value="0" checked="checked" /><label for="gstno">No</label>
108                                 <!-- /TMPL_IF --></li><!-- /TMPL_IF -->
109                         
110             <!-- TMPL_IF NAME="GST" --><li>Ordering prices
111                                 <!-- TMPL_IF name="listincgst" -->
112                                         <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" /><label for="list_gstyes">include GST</label>
113                     <input type="radio" id="list_gstno" name="list_gst" value="0" /><label for="list_gstno">don't include GST</label>
114                                 <!-- TMPL_ELSE -->
115                     <input type="radio" id="list_gstyes" name="list_gst" value="1" /><label for="list_gstyes">include GST</label>
116                     <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" /><label for="list_gstno">don't include GST</label>
117                                 <!-- /TMPL_IF --></li><!-- /TMPL_IF -->
118                         
119             <!-- TMPL_IF NAME="GST" --><li>Invoice prices
120                                 <!-- TMPL_IF name= "invoiceincgst" -->
121                     <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" /><label for="invoice_gstyes">include GST</label>
122                     <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" /><label for="invoice_gstno">don't include GST</label>
123                                         <!-- TMPL_ELSE -->
124                     <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1"><label for="invoice_gstyes">include GST</label>
125                     <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" /><label for="invoice_gstno">don't include GST</label>
126                                 <!-- /TMPL_IF --></li><!-- /TMPL_IF -->
127             <li><label for="discount">Discount</label>
128                 <input type="text" size="3" id="discount" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" /> %</li>
129             <li><label for="notes">Notes</label>
130                 <textarea cols="40" rows="4" id="notes" name="notes" ><!-- TMPL_VAR NAME="notes" --></textarea></li></ol>                       
131                         <!-- TMPL_UNLESS NAME="GST" -->
132                                 <input type="hidden" name="gst" value="0" />
133                                 <input type="hidden" name="list_gst" value="0" />
134                                 <input type="hidden"  name="invoice_gst" value="0" />
135                         <!-- /TMPL_UNLESS -->
136         </fieldset>
137         <fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="id" -->">Cancel</a></fieldset>
138                 </div>
139     </form>
140 <!--TMPL_ELSE-->
141     <h1><!-- TMPL_VAR NAME="name" --></h1>
142                 <div class="yui-g">
143         <div id="supplier-company-details" class="yui-u first">
144             <p><strong>Company Name: </strong>
145                 <!-- TMPL_VAR NAME="name" --></p>
146             <p><strong>Postal Address: </strong>
147                     <!-- TMPL_VAR NAME="postal" --></p>
148             <p><strong>Physical Address: </strong>
149                 <!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></p>
150             <p><strong>Phone: </strong>
151                 <!-- TMPL_VAR NAME="phone" --></p>
152             <p><strong>Fax: </strong>
153                 <!-- TMPL_VAR NAME="fax" --></p>
154            <!-- TMPL_IF NAME="url" --> <p><strong>Web site: </strong>
155                 <a href="<!-- TMPL_VAR NAME="url" -->"><!-- TMPL_VAR NAME="url" --></a></p><!-- /TMPL_IF -->
156         </div>
157         <div id="supplier-contact-details" class="yui-u">
158             <h3>Contact details</h3>
159             <p><strong>Contact name: </strong>
160                 <!-- TMPL_VAR NAME="contact" --></p>
161             <p><strong>Position: </strong>
162                 <!-- TMPL_VAR NAME="contpos" --></p>
163             <p><strong>Phone: </strong>
164                 <!-- TMPL_VAR NAME="contphone" --></p>
165             <p><strong>Alternative phone: </strong>
166                 <!-- TMPL_VAR NAME="contaltphone" --></p>
167             <p><strong>Fax: </strong>
168                 <!-- TMPL_VAR NAME="contfax" --></p>
169             <!-- TMPL_IF NAME="contemail" --><p><strong>E-mail: </strong>
170                 <a href="mailto:<!-- TMPL_VAR NAME="contemail" -->"><!-- TMPL_VAR NAME="contemail" --></a></p><!-- /TMPL_IF -->
171             <!-- TMPL_IF NAME="contnotes" --><p><strong>Notes: </strong>
172                 <!-- TMPL_VAR NAME="contnotes" --></p><!-- /TMPL_IF -->
173         
174         </div>
175                 </div>
176         <div id="supplier-ordering-information" class="yui-g">
177         <h3>Ordering information</h3>
178             <p><strong>Supplier is: </strong>
179                     <!-- TMPL_IF name="active" -->
180                         Active
181                     <!-- TMPL_ELSE -->
182                         Inactive
183                     <!-- /TMPL_IF --></p>
184             <p><strong>Publishers and Imprints: </strong>
185                 <!-- TMPL_VAR NAME="specialty" --></p>
186             <p><strong>List Prices are: </strong><!--TMPL_VAR Name="listprice"--></p>
187             <p><strong>Invoice Prices are: </strong><!--TMPL_VAR Name="invoiceprice"--></p>
188             <p><strong>GST Registered: </strong>
189                     <!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
190             <p><strong>List Item Price Includes GST: </strong>
191                     <!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
192             <p><strong>Invoice Item Price Includes GST: </strong>
193                     <!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
194             <p><strong>Discount: </strong>
195                 <!-- TMPL_VAR NAME="discount" --> %</p>
196             <!-- TMPL_IF NAME="notes" --><p><strong>Notes: </strong>
197                 <!-- TMPL_VAR NAME="notes" --></p><!-- /TMPL_IF -->
198         </div>
199
200 <!--/TMPL_IF-->
201
202 </div>
203 </div>
204 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->