Lines 12-24
function confirm_deletion() {
Link Here
|
12 |
window.location="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&op=delete"; |
12 |
window.location="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&op=delete"; |
13 |
} |
13 |
} |
14 |
} |
14 |
} |
15 |
function check(f) { |
|
|
16 |
if (f.company.value == "") { |
17 |
alert(_("You must specify a name for this vendor.")); |
18 |
return false; |
19 |
} |
20 |
f.submit(); |
21 |
} |
22 |
|
15 |
|
23 |
$(document).ready(function() { |
16 |
$(document).ready(function() { |
24 |
[% IF (dateformat == 'metric') %] |
17 |
[% IF (dateformat == 'metric') %] |
Lines 60-72
if (f.company.value == "") {
Link Here
|
60 |
[% END %] |
53 |
[% END %] |
61 |
[% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %] |
54 |
[% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %] |
62 |
[% IF ( enter ) %] |
55 |
[% IF ( enter ) %] |
63 |
<form action="updatesupplier.pl" name="updatesupplier" method="post"> |
56 |
<form action="updatesupplier.pl" name="updatesupplier" class="validated" method="post"> |
64 |
<div class="yui-g"> |
57 |
<div class="yui-g"> |
65 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
58 |
<input type="hidden" name="booksellerid" value="[% booksellerid %]" /> |
66 |
<fieldset class="rows"> |
59 |
<fieldset class="rows"> |
67 |
<legend>Company details</legend> |
60 |
<legend>Company details</legend> |
68 |
<ol><li><label for="company" class="required">Name: * </label> |
61 |
<ol><li><label for="company" class="required">Name:</label> |
69 |
<input type="text" size="40" id="company" name="company" value="[% name %]" class="focus" /></li> |
62 |
<input type="text" size="40" id="company" name="company" value="[% name %]" required="required" class="required" /><span class="required">Required</span></li> |
70 |
<li><label for="company_postal">Postal address: </label> |
63 |
<li><label for="company_postal">Postal address: </label> |
71 |
<textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal %]</textarea></li> |
64 |
<textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal %]</textarea></li> |
72 |
<li><label for="physical">Physical address: </label> |
65 |
<li><label for="physical">Physical address: </label> |
Lines 114-120
if (f.company.value == "") {
Link Here
|
114 |
<li><label for="list_currency">List prices are: </label> |
107 |
<li><label for="list_currency">List prices are: </label> |
115 |
<select name="list_currency" id="list_currency"> |
108 |
<select name="list_currency" id="list_currency"> |
116 |
[% FOREACH loop_currenc IN loop_currency %] |
109 |
[% FOREACH loop_currenc IN loop_currency %] |
117 |
[% IF ( loop_currenc.listprice ) %]<option value="[% loop_currenc.currency %]" selected="1">[% loop_currenc.currency %]</option> |
110 |
[% IF ( loop_currenc.listprice ) %]<option value="[% loop_currenc.currency %]" selected="selected">[% loop_currenc.currency %]</option> |
118 |
[% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %] |
111 |
[% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %] |
119 |
[% END %] |
112 |
[% END %] |
120 |
</select> |
113 |
</select> |
Lines 122-128
if (f.company.value == "") {
Link Here
|
122 |
<li><label for="invoice_currency">Invoice prices are: </label> |
115 |
<li><label for="invoice_currency">Invoice prices are: </label> |
123 |
<select name="invoice_currency" id="invoice_currency"> |
116 |
<select name="invoice_currency" id="invoice_currency"> |
124 |
[% FOREACH loop_currenc IN loop_currency %] |
117 |
[% FOREACH loop_currenc IN loop_currency %] |
125 |
[% IF ( loop_currenc.invoiceprice ) %]<option value="[% loop_currenc.currency %]" selected="1">[% loop_currenc.currency %]</option> |
118 |
[% IF ( loop_currenc.invoiceprice ) %]<option value="[% loop_currenc.currency %]" selected="selected">[% loop_currenc.currency %]</option> |
126 |
[% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %] |
119 |
[% ELSE %]<option value="[% loop_currenc.currency %]">[% loop_currenc.currency %]</option>[% END %] |
127 |
[% END %] |
120 |
[% END %] |
128 |
</select> |
121 |
</select> |
Lines 159-165
if (f.company.value == "") {
Link Here
|
159 |
[% IF gst_values %] |
152 |
[% IF gst_values %] |
160 |
<ol> |
153 |
<ol> |
161 |
<li> |
154 |
<li> |
162 |
<label for="gst">Tax rate: </label> |
155 |
<label for="gstrate">Tax rate: </label> |
163 |
<select name="gstrate" id="gstrate"> |
156 |
<select name="gstrate" id="gstrate"> |
164 |
[% FOREACH gst IN gst_values %] |
157 |
[% FOREACH gst IN gst_values %] |
165 |
[% IF ( gstrate == gst.option ) %] |
158 |
[% IF ( gstrate == gst.option ) %] |
Lines 184-190
if (f.company.value == "") {
Link Here
|
184 |
<li><label for="notes">Notes: </label> |
177 |
<li><label for="notes">Notes: </label> |
185 |
<textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol> |
178 |
<textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol> |
186 |
</fieldset> |
179 |
</fieldset> |
187 |
<fieldset class="action"><input type="button" value="Save" onclick="check(this.form);" /> [% IF ( booksellerid ) %] |
180 |
<fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %] |
188 |
<a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl"> |
181 |
<a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl"> |
189 |
[% END %]Cancel</a></fieldset> |
182 |
[% END %]Cancel</a></fieldset> |
190 |
</div> |
183 |
</div> |
191 |
- |
|
|