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