View | Details | Raw Unified | Return to bug 10402
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-36 / +41 lines)
Lines 16-26 Link Here
16
            <input type="text" size="40" id="contact_email[% contact.id %]" name="contact_email" value="[% contact.email %]" /></li>
16
            <input type="text" size="40" id="contact_email[% contact.id %]" name="contact_email" value="[% contact.email %]" /></li>
17
        <li><label for="contact_notes[% contact.id %]">Notes: </label>
17
        <li><label for="contact_notes[% contact.id %]">Notes: </label>
18
            <textarea id="contact_notes[% contact.id %]" name="contact_notes" cols="40" rows="4">[% contnotes %]</textarea></li>
18
            <textarea id="contact_notes[% contact.id %]" name="contact_notes" cols="40" rows="4">[% contnotes %]</textarea></li>
19
        [% IF contact.id %]<li><button class="btn" class="delete-contact"><i class="icon-remove"></i>Delete contact</li>[% END %]
19
        [% IF contact.id %]<li><button class="btn" class="delete-contact"><i class="icon-remove"></i> Delete contact</li>[% END %]
20
    </ol>
20
    </ol>
21
[% END %]
21
[% END %]
22
22
[% BLOCK show_contact %]
23
[% BLOCK show_contact %]
23
    <p><span class="label">Contact name: </span>[% contact.name %]</p>
24
    <h3>[% contact.name %]</h3>
24
    <p><span class="label">Position: </span>[% contact.position %]</p>
25
    <p><span class="label">Position: </span>[% contact.position %]</p>
25
    <p><span class="label">Phone: </span>[% contact.phone %]</p>
26
    <p><span class="label">Phone: </span>[% contact.phone %]</p>
26
    <p><span class="label">Alternative phone: </span>[% contact.altphone %]</p>
27
    <p><span class="label">Alternative phone: </span>[% contact.altphone %]</p>
Lines 32-37 Link Here
32
        <p><span class="label">Notes: </span>[% contact.notes %]</p>
33
        <p><span class="label">Notes: </span>[% contact.notes %]</p>
33
    [% END %]
34
    [% END %]
34
[% END %]
35
[% END %]
36
35
[% INCLUDE 'doc-head-open.inc' %]
37
[% INCLUDE 'doc-head-open.inc' %]
36
<title>Koha &rsaquo; Vendor [% bookselname %]</title>
38
<title>Koha &rsaquo; Vendor [% bookselname %]</title>
37
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
39
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
Lines 132-138 function delete_contact() { Link Here
132
                    [% INCLUDE edit_contact %]
134
                    [% INCLUDE edit_contact %]
133
                </fieldset>
135
                </fieldset>
134
            [% END %]
136
            [% END %]
135
            <button id="add-contact" class="btn"><i class="icon-plus"></i>Add contact</button>
137
            <button id="add-contact" class="btn"><i class="icon-plus"></i> Add another contact</button>
136
        </fieldset>
138
        </fieldset>
137
    </div>
139
    </div>
138
        <div class="yui-g">
140
        <div class="yui-g">
Lines 242-282 function delete_contact() { Link Here
242
                [% IF ( accountnumber ) %]
244
                [% IF ( accountnumber ) %]
243
                    <p><span class="label">Account number: </span>[% accountnumber %]</p>
245
                    <p><span class="label">Account number: </span>[% accountnumber %]</p>
244
                [% END %]
246
                [% END %]
247
248
            <div id="supplier-ordering-information">
249
            <h2>Ordering information</h2>
250
                <p><strong>Vendor is: </strong>
251
                        [% IF ( active ) %]
252
                            Active
253
                        [% ELSE %]
254
                            Inactive
255
                        [% END %]</p>
256
                <p><strong>List prices are: </strong>[% listprice %]</p>
257
                <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
258
                [% IF ( gstrate ) %]<p><strong>Tax number registered: </strong>
259
                        [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
260
                <p><strong>List item price includes tax: </strong>
261
                        [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
262
                <p><strong>Invoice item price includes tax: </strong>
263
                        [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
264
                <p><strong>Discount: </strong>
265
                    [% discount | format("%.1f") %] %</p>
266
                <p><strong>Tax rate: </strong>
267
                    [% 0 + gstrate * 100 | format("%.1f") %] %</p>
268
                [% IF deliverytime.defined %]
269
                    <p><strong>Delivery time: </strong>
270
                        [% deliverytime %] days</p>
271
                [% END %]
272
                [% IF ( notes ) %]<p><strong>Notes: </strong>
273
                    [% notes %]</p>[% END %]
245
            </div>
274
            </div>
246
            [% FOREACH contact IN contacts %]
275
            </div>
247
                <div class="supplier-contact-details yui-u">
276
248
                    <h2>Contact details</h2>
277
            <div class="supplier-contact-details yui-u">
278
                <h2>Contact</h2>
279
                [% FOREACH contact IN contacts %]
249
                    [% INCLUDE show_contact %]
280
                    [% INCLUDE show_contact %]
250
                </div>
281
                [% END %]
251
            [% END %]
282
            </div>
252
        </div>
283
253
        <div id="supplier-ordering-information" class="yui-g">
254
        <h3>Ordering information</h3>
255
            <p><strong>Vendor is: </strong>
256
                    [% IF ( active ) %]
257
                        Active
258
                    [% ELSE %]
259
                        Inactive
260
                    [% END %]</p>
261
            <p><strong>List prices are: </strong>[% listprice %]</p>
262
            <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
263
            [% IF ( gstrate ) %]<p><strong>Tax number registered: </strong>
264
                    [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
265
            <p><strong>List item price includes tax: </strong>
266
                    [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
267
            <p><strong>Invoice item price includes tax: </strong>
268
                    [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
269
            <p><strong>Discount: </strong>
270
                [% discount | format("%.1f") %] %</p>
271
            <p><strong>Tax rate: </strong>
272
                [% 0 + gstrate * 100 | format("%.1f") %] %</p>
273
            [% IF deliverytime.defined %]
274
                <p><strong>Delivery time: </strong>
275
                    [% deliverytime %] days</p>
276
            [% END %]
277
            [% IF ( notes ) %]<p><strong>Notes: </strong>
278
                [% notes %]</p>[% END %]
279
        </div>
284
        </div>
285
280
        [% IF ( contracts ) %]
286
        [% IF ( contracts ) %]
281
            <div id="supplier-contracts" class="yui-g">
287
            <div id="supplier-contracts" class="yui-g">
282
                <h2>Contract(s)</h2>
288
                <h2>Contract(s)</h2>
283
- 

Return to bug 10402