Modifications to enable YUI-Grids layout structure. Unfinished.
[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_INCLUDE NAME="header.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
6
7 <div id="doc3" class="yui-t2">
8    
9    <div id="bd">
10         <div id="yui-main">
11         <div class="yui-b"><div class="yui-g">
12         
13 <!--TMPL_IF Name="enter"-->
14     <form action="updatesupplier.pl" method="post">
15     
16     <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
17     
18     <!-- TMPL_IF name="id" -->
19         <h1>Update: <!-- TMPL_VAR NAME="name" --></h1>
20     <!-- TMPL_ELSE -->
21         <h1>Add supplier</h1>
22     <!-- /TMPL_IF -->
23         <fieldset>
24             <legend>Company details</legend>
25             <p>
26                 <label>Company Name</label>
27                 <input type="text" size="40" name="company" value="<!-- TMPL_VAR NAME="name" -->" />
28             </p>
29             <p>
30                 <label>Postal Address</label>
31                     <textarea name="company_postal" cols="40" rows="3"><!-- TMPL_VAR NAME="postal" --></textarea>
32             </p>
33             <p>
34                 <label>Physical Address</label>
35                 <textarea name="physical" cols="40" rows="3"><!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></textarea>
36             </p>
37             <p>
38                 <label>Phone</label>
39                 <input type="text" size="20" name="company_phone" value="<!-- TMPL_VAR NAME="phone" -->" />
40             </p>
41             <p>
42                 <label>Fax</label>
43                 <input type="text" size="20" name="company_fax" value="<!-- TMPL_VAR NAME="fax" -->" />
44             </p>
45             <p>
46                 <label>Website</label>
47                 <input type="text" size="40" name="website" value="<!-- TMPL_VAR NAME="url" -->" />
48             </p>
49         </fieldset>
50         <fieldset>
51             <legend>Contact details</legend>
52             <p>
53                 <label>Contact Name</label>
54                 <input type="text" size="40" name="company_contact_name" value="<!-- TMPL_VAR NAME="contact" -->" />
55             </p>
56             <p>
57                 <label>Position</label>
58                 <input type="text" size="40" name="company_contact_position" value="<!-- TMPL_VAR NAME="contpos" -->" />
59             </p>
60             <p>
61                 <label>Phone</label>
62                 <input type="text" size="20" name="contact_phone" value="<!-- TMPL_VAR NAME="contphone" -->" /> 
63             </p>
64             <p>
65                 <label>Alternative phone</label>
66                 <input type="text" size="20" name="contact_phone_2" value="<!-- TMPL_VAR NAME="contaltphone" -->" />
67             </p>
68             <p>
69                 <label>Fax</label>
70                 <input type="text" size="20" name="contact_fax" value="<!-- TMPL_VAR NAME="contfax" -->" />
71             </p>
72             <p>
73                 <label>E-mail</label>
74                 <input type="text" size="40" name="company_email" value="<!-- TMPL_VAR NAME="contemail" -->" />
75             </p>
76             <p>
77                 <label>Notes</label>
78                 <textarea name="contact_notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea>
79             </p>
80         </fieldset>
81         <fieldset>
82             <legend>Ordering information</legend>
83             <p>
84                 <label>Supplier is</label>
85                     <!-- TMPL_IF name="active" -->
86                         <input type="radio" name="status" value="1" checked="checked" />Active
87                         <input type="radio" name="status" value="0" />Inactive</td>
88                     <!-- TMPL_ELSE -->
89                         <input type="radio" name="status" value="1" />Active
90                         <input type="radio" name="status" value="0" checked="checked" />Inactive</td>
91                     <!-- /TMPL_IF -->
92             </p>
93             <p>
94                 <label>Preferred publishers</label>
95                 <textarea name="publishers_imprints" cols="40" rows="3"><!-- TMPL_VAR NAME="specialty" --></textarea>
96             </p>
97             <p>
98                 <label>List Prices are</label>
99                     <select name="list_currency" size="1">
100                     <!-- TMPL_LOOP NAME="loop_pricescurrency" -->
101                         <!-- TMPL_VAR NAME="currency" -->
102                     <!-- /TMPL_LOOP -->
103                     </select>
104             </p>
105             <p>
106                 <label>Invoice Prices are</label>
107                     <select name="invoice_currency" size="1">
108                     <!-- TMPL_LOOP NAME="loop_invoicecurrency" -->
109                         <!-- TMPL_VAR NAME="currency" -->
110                     <!-- /TMPL_LOOP -->
111                     </select>
112             </p>
113             <!-- TMPL_IF NAME="GST" --><p>
114                 <label>GST Registered</label>
115                                 <!-- TMPL_IF name="gstreg" -->
116                                         <input type="radio" name="gst" value="1" checked="checked" />Yes
117                     <input type="radio" name="gst" value="0" />No
118                                 <!-- TMPL_ELSE -->
119                     <input type="radio" name="gst" value="1" />Yes
120                     <input type="radio" name="gst" value="0" checked="checked" />No
121                                 <!-- /TMPL_IF -->
122             </p><!-- TMPL_ELSE --><input type="hidden" name="gst" value="0" /><!-- /TMPL_IF -->
123                         
124             <!-- TMPL_IF NAME="GST" --><p>
125                 <label>Ordering prices</label>
126                                 <!-- TMPL_IF name="listincgst" -->
127                                 <input type="radio" name="list_gst" value="1" checked="checked" />include GST
128                     <input type="radio" name="list_gst" value="0" />don't include GST
129                                 <!-- TMPL_ELSE -->
130                     <input type="radio" name="list_gst" value="1" />include GST
131                     <input type="radio" name="list_gst" value="0" checked="checked" />don't include GST
132                                 <!-- /TMPL_IF -->
133             </p><!-- TMPL_ELSE --><input type="hidden" name="list_gst" value="0" /><!-- /TMPL_IF -->
134                         
135             <!-- TMPL_IF NAME="GST" --><p>
136                 <label>Invoice prices</label>
137                                 <!-- TMPL_IF name= "invoiceincgst" -->
138                     <input type="radio" name="invoice_gst" value="1" checked="checked" />include GST
139                     <input type="radio" name="invoice_gst" value="0" />don't include GST
140                                         <!-- TMPL_ELSE -->
141                     <input type="radio" name="invoice_gst" value="1">include GST
142                     <input type="radio" name="invoice_gst" value="0" checked="checked" />don't include GST
143                                 <!-- /TMPL_IF -->
144             </p><!-- TMPL_ELSE --><input type="hidden" name="invoice_gst" value="0" /><!-- /TMPL_IF -->
145             <p>
146                 <label>Discount</label>
147                 <input type="text" size="3" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" /> %
148             </p>
149             <p>
150                 <label>Notes</label>
151                 <textarea cols="40" rows="4" name="notes" ><!-- TMPL_VAR NAME="notes" --></textarea>
152             </p>
153         </fieldset>
154         <p><input type="submit" value="Save" /></p>
155     </form>
156 <!--TMPL_ELSE-->
157     <h1>Information for : <!-- TMPL_VAR NAME="name" --></h1>
158     <div id="action">
159 <ul>
160         <li>        <a href="supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&amp;op=enter">Edit Supplier</a></li>
161         <li>        <a href="booksellers.pl?supplier=<!--TMPL_VAR Name="id"-->">Manage Orders</a></li>
162         <li>        <a href="parcels.pl?supplierid=<!--TMPL_VAR Name="id"-->">Receive Parcel</a></li>
163 </ul>
164         </div>
165         <fieldset>
166             <legend>Company details</legend>
167             <p>
168                 <label>Company Name</label>
169                 <!-- TMPL_VAR NAME="name" -->&nbsp;
170             </p>
171             <p>
172                 <label>Postal Address</label>
173                     <!-- TMPL_VAR NAME="postal" -->&nbsp;
174             </p>
175             <p>
176                 <label>Physical Address</label>
177                 <!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" -->&nbsp;
178             </p>
179             <p>
180                 <label>Phone</label>
181                 <!-- TMPL_VAR NAME="phone" -->&nbsp;
182             </p>
183             <p>
184                 <label>Fax</label>
185                 <!-- TMPL_VAR NAME="fax" -->&nbsp;
186             </p>
187             <p>
188                 <label>Website</label>
189                 <!-- TMPL_VAR NAME="url" -->&nbsp;
190             </p>
191         </fieldset>
192         <fieldset>
193             <legend>Contact details</legend>
194             <p>
195                 <label>Contact name</label>
196                 <!-- TMPL_VAR NAME="contact" -->&nbsp;
197             </p>
198             <p>
199                 <label>Position</label>
200                 <!-- TMPL_VAR NAME="contpos" -->&nbsp;
201             </p>
202             <p>
203                 <label>Phone</label>
204                 <!-- TMPL_VAR NAME="contphone" -->&nbsp;
205             </p>
206             <p>
207                 <label>Alternative phone</label>
208                 <!-- TMPL_VAR NAME="contaltphone" -->&nbsp;
209             </p>
210             <p>
211                 <label>Fax</label>
212                 <!-- TMPL_VAR NAME="contfax" -->&nbsp;
213             </p>
214             <p>
215                 <label>E-mail</label>
216                 <!-- TMPL_VAR NAME="contemail" -->&nbsp;
217             </p>
218             <p>
219                 <label>Notes</label>
220                 <!-- TMPL_VAR NAME="contnotes" -->&nbsp;
221             </p>
222         
223         </fieldset>
224         <fieldset>
225         <legend>Ordering informations</legend>
226             <p>
227                 <label>Supplier is</label>
228                     <!-- TMPL_IF name="active" -->
229                         Active
230                     <!-- TMPL_ELSE -->
231                         Inactive
232                     <!-- /TMPL_IF -->
233             </p>
234             <p>
235                 <label>Publishers and Imprints</label>
236                 <!-- TMPL_VAR NAME="specialty" -->&nbsp;
237             </p>
238             <p>
239                 <label>List Prices are</label><!--TMPL_VAR Name="listprice"-->&nbsp;
240             </p>
241             <p>
242                 <label>Invoice Prices are</label><!--TMPL_VAR Name="invoiceprice"-->&nbsp;
243             </p>
244             <p>
245                 <label>GST Registered</label>
246                     <!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
247             </p>
248             <p>
249                 <label>List Item Price Includes GST</label>
250                     <!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
251             </p>
252             <p>
253                 <label>Invoice Item Price Includes GST</label>
254                     <!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
255             </p>
256             <p>
257                 <label>Discount</label>
258                 <!-- TMPL_VAR NAME="discount" --> %&nbsp;
259             </p>
260             <p>
261                 <label>Notes</label>
262                 <!-- TMPL_VAR NAME="notes" -->&nbsp;
263             </p>
264         </fieldset>
265
266 <!--/TMPL_IF-->
267 <script>
268 function confirm_deletion() {
269     if (confirm("Confirm deletion of this supplier ?")) {
270         window.location="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&op=delete";
271     }
272 }
273 </script>
274 </div>
275 </div>
276 </div>
277
278 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
279 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->