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 149-155 function delete_contact() { Link Here
149
                    [% INCLUDE edit_contact %]
151
                    [% INCLUDE edit_contact %]
150
                </fieldset>
152
                </fieldset>
151
            [% END %]
153
            [% END %]
152
            <button id="add-contact" class="btn"><i class="icon-plus"></i>Add contact</button>
154
            <button id="add-contact" class="btn"><i class="icon-plus"></i> Add another contact</button>
153
        </fieldset>
155
        </fieldset>
154
    </div>
156
    </div>
155
        <div class="yui-g">
157
        <div class="yui-g">
Lines 259-299 function delete_contact() { Link Here
259
                [% IF ( accountnumber ) %]
261
                [% IF ( accountnumber ) %]
260
                    <p><span class="label">Account number: </span>[% accountnumber %]</p>
262
                    <p><span class="label">Account number: </span>[% accountnumber %]</p>
261
                [% END %]
263
                [% END %]
264
265
            <div id="supplier-ordering-information">
266
            <h2>Ordering information</h2>
267
                <p><strong>Vendor is: </strong>
268
                        [% IF ( active ) %]
269
                            Active
270
                        [% ELSE %]
271
                            Inactive
272
                        [% END %]</p>
273
                <p><strong>List prices are: </strong>[% listprice %]</p>
274
                <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
275
                [% IF ( gstrate ) %]<p><strong>Tax number registered: </strong>
276
                        [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
277
                <p><strong>List item price includes tax: </strong>
278
                        [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
279
                <p><strong>Invoice item price includes tax: </strong>
280
                        [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
281
                <p><strong>Discount: </strong>
282
                    [% discount | format("%.1f") %] %</p>
283
                <p><strong>Tax rate: </strong>
284
                    [% 0 + gstrate * 100 | format("%.1f") %] %</p>
285
                [% IF deliverytime.defined %]
286
                    <p><strong>Delivery time: </strong>
287
                        [% deliverytime %] days</p>
288
                [% END %]
289
                [% IF ( notes ) %]<p><strong>Notes: </strong>
290
                    [% notes %]</p>[% END %]
262
            </div>
291
            </div>
263
            [% FOREACH contact IN contacts %]
292
            </div>
264
                <div class="supplier-contact-details yui-u">
293
265
                    <h2>Contact details</h2>
294
            <div class="supplier-contact-details yui-u">
295
                <h2>Contact</h2>
296
                [% FOREACH contact IN contacts %]
266
                    [% INCLUDE show_contact %]
297
                    [% INCLUDE show_contact %]
267
                </div>
298
                [% END %]
268
            [% END %]
299
            </div>
269
        </div>
300
270
        <div id="supplier-ordering-information" class="yui-g">
271
        <h3>Ordering information</h3>
272
            <p><strong>Vendor is: </strong>
273
                    [% IF ( active ) %]
274
                        Active
275
                    [% ELSE %]
276
                        Inactive
277
                    [% END %]</p>
278
            <p><strong>List prices are: </strong>[% listprice %]</p>
279
            <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
280
            [% IF ( gstrate ) %]<p><strong>Tax number registered: </strong>
281
                    [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
282
            <p><strong>List item price includes tax: </strong>
283
                    [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
284
            <p><strong>Invoice item price includes tax: </strong>
285
                    [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
286
            <p><strong>Discount: </strong>
287
                [% discount | format("%.1f") %] %</p>
288
            <p><strong>Tax rate: </strong>
289
                [% 0 + gstrate * 100 | format("%.1f") %] %</p>
290
            [% IF deliverytime.defined %]
291
                <p><strong>Delivery time: </strong>
292
                    [% deliverytime %] days</p>
293
            [% END %]
294
            [% IF ( notes ) %]<p><strong>Notes: </strong>
295
                [% notes %]</p>[% END %]
296
        </div>
301
        </div>
302
297
        [% IF ( contracts ) %]
303
        [% IF ( contracts ) %]
298
            <div id="supplier-contracts" class="yui-g">
304
            <div id="supplier-contracts" class="yui-g">
299
                <h2>Contract(s)</h2>
305
                <h2>Contract(s)</h2>
300
- 

Return to bug 10402