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

(-)a/acqui/invoice.pl (-1 / +1 lines)
Lines 185-191 $template->param( Link Here
185
    invoiceid        => $details->{'invoiceid'},
185
    invoiceid        => $details->{'invoiceid'},
186
    invoicenumber    => $details->{'invoicenumber'},
186
    invoicenumber    => $details->{'invoicenumber'},
187
    suppliername     => $details->{'suppliername'},
187
    suppliername     => $details->{'suppliername'},
188
    supplierid       => $details->{'booksellerid'},
188
    booksellerid       => $details->{'booksellerid'},
189
    datereceived     => $details->{'datereceived'},
189
    datereceived     => $details->{'datereceived'},
190
    shipmentdate     => $details->{'shipmentdate'},
190
    shipmentdate     => $details->{'shipmentdate'},
191
    billingdate      => $details->{'billingdate'},
191
    billingdate      => $details->{'billingdate'},
(-)a/acqui/invoices.pl (-1 / +1 lines)
Lines 110-116 foreach (@suppliers) { Link Here
110
    }
110
    }
111
    my %row = (
111
    my %row = (
112
        suppliername => $_->{'name'},
112
        suppliername => $_->{'name'},
113
        supplierid   => $_->{'id'},
113
        booksellerid   => $_->{'id'},
114
        selected     => $selected,
114
        selected     => $selected,
115
    );
115
    );
116
    push @suppliers_loop, \%row;
116
    push @suppliers_loop, \%row;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc (-33 / +12 lines)
Lines 9-46 Link Here
9
9
10
    // YUI Toolbar Functions
10
    // YUI Toolbar Functions
11
11
12
    function yuiToolbar() {   
12
    function yuiToolbar() {
13
    
14
        new YAHOO.widget.Button("newperiod");
15
        new YAHOO.widget.Button("newbudget");
16
        new YAHOO.widget.Button("newsupplier");
17
        new YAHOO.widget.Button("newbasket");
18
        new YAHOO.widget.Button("editsupplier");
13
        new YAHOO.widget.Button("editsupplier");
19
        new YAHOO.widget.Button("deletesupplier");
14
        new YAHOO.widget.Button("deletesupplier");
20
        new YAHOO.widget.Button("receive");
15
        new YAHOO.widget.Button("receive");
21
        new YAHOO.widget.Button("newcontract");
16
        [% UNLESS ( booksellerid ) %]new YAHOO.widget.Button("newvendor");[% END %]
22
        new YAHOO.widget.Button("editcontracts");
23
17
24
        var manageorders = [
18
        var newmenu = [
25
            [% IF ( CAN_user_acquisition_order_manage ) %]
19
            [% IF ( CAN_user_acquisition_order_manage ) %]
26
              [% IF (active) %]
20
                { text: _("Basket"), url: "/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% booksellerid %]&op=add_form"},
27
                { text: _("New basket"), url: "/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% booksellerid %]&op=add_form"},
28
              [% END %]
29
                { text: _("Baskets"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]"},
30
                { text: _("Basket groups"), url: "/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]"},
31
            [% END %]
32
            { text: _("Receive shipments"), url: "/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]" },
33
            [% IF ( basketno ) %]
34
                { text: _("Uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&owner=1"}
35
            [% ELSE %]
36
                { text: _("Uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1"}
37
            [% END %]
21
            [% END %]
22
            [% IF ( CAN_user_acquisition_contracts_manage ) %]{ text: _("Contract"), url: "/cgi-bin/koha/admin/aqcontract.pl?op=add_form&booksellerid=[% booksellerid %]"},[% END %]
23
            { text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?op=enter"}
38
        ]
24
        ]
39
        [% IF ( booksellerid ) %]
25
        new YAHOO.widget.Button({type: "menu", label: _("New"), name: "newmenu", menu: newmenu, container: "newmenuc"});
40
            [% IF ( basketcount ) %]
41
                new YAHOO.widget.Button({type: "menu", label: _("Manage orders"), name: "manageorders", menu: manageorders, container: "toolbar-list"});
42
            [% END %]
43
        [% END %]
44
    }
26
    }
45
27
46
    //]]>
28
    //]]>
Lines 48-65 Link Here
48
    <ul id="toolbar-list" class="toolbar">
30
    <ul id="toolbar-list" class="toolbar">
49
        [% IF ( booksellerid ) %]
31
        [% IF ( booksellerid ) %]
50
            [% IF ( CAN_user_acquisition_vendors_manage ) %]
32
            [% IF ( CAN_user_acquisition_vendors_manage ) %]
51
                <li><a id="editsupplier" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&amp;op=enter">Edit</a></li>
33
                <li id="newmenuc"></li>
34
                <li><a id="editsupplier" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&amp;op=enter">Edit vendor</a></li>
52
                [% UNLESS ( basketcount OR subscriptioncount ) %]
35
                [% UNLESS ( basketcount OR subscriptioncount ) %]
53
                    <li><a id="deletesupplier" href="javascript:confirm_deletion()">Delete</a></li>
36
                    <li><a id="deletesupplier" href="javascript:confirm_deletion()">Delete vendor</a></li>
54
                [% END %]
55
                <li><a id="newcontract" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;booksellerid=[% booksellerid %]">New contract</a></li>
56
                <li><a id="editcontracts" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a></li>
57
                [% IF (active && !basketcount) %]
58
                    <li><a id="newbasket" href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% booksellerid %]&amp;op=add_form">New basket</a></li>
59
                [% END %]
37
                [% END %]
60
            [% END %]
38
            [% END %]
39
                [% IF ( CAN_user_acquisition_order_receive && basketcount ) %]<li><a id="receive" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Receive shipments</a></li>[% END %]
61
        [% ELSE %]
40
        [% ELSE %]
62
            <li><a id="newbudget" href="/cgi-bin/koha/acqui/supplier.pl?op=enter">New vendor</a></li>
41
            <li><a id="newvendor" href="/cgi-bin/koha/acqui/supplier.pl?op=enter">New vendor</a></li>
63
        [% END %]
42
        [% END %]
64
    </ul>
43
    </ul>
65
</div>
44
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/vendor-menu.inc (+15 lines)
Line 0 Link Here
1
[% IF ( booksellerid ) %]
2
<div id="menu">
3
    <ul>
4
        [% IF ( CAN_user_acquisition_order_manage ) %]<li><a href="/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]">Baskets</a></li>[% END %]
5
        [% IF ( CAN_user_acquisition_group_manage ) %]<li><a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket groups</a></li>[% END %]
6
        [% IF ( CAN_user_acquisition_contracts_manage ) %]<li><a href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid %]">Contracts</a></li>[% END %]
7
        <li><a href="/cgi-bin/koha/acqui/invoices.pl?supplier=[% booksellerid %]&amp;op=do_search">Invoices</a></li>
8
        [% IF ( CAN_user_acquisition_order_manage ) %][% IF ( basketno ) %]
9
        <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;owner=1">Uncertain prices</a></li>
10
        [% ELSE %]
11
        <li><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&amp;owner=1">Uncertain prices</a></li>
12
        [% END %] [% END %]
13
    </ul>
14
</div>
15
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt (-69 / +9 lines)
Lines 1-8 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo;
2
<title>Koha &rsaquo; Acquisitions &rsaquo;
3
[% IF ( add_form ) %]
3
[% IF ( add_form ) %]
4
    [% IF ( basketno ) %]Edit basket '[% basketname %]'
4
    [% IF ( basketno ) %]Edit basket '[% basketname %]'
5
        [% ELSE %]add a basket to [% booksellername %]
5
        [% ELSE %]Add a basket to [% booksellername %]
6
    [% END %]
6
    [% END %]
7
[% END %]
7
[% END %]
8
</title>
8
</title>
Lines 28-88 function Check(ff) { Link Here
28
}
28
}
29
//]]>
29
//]]>
30
</script>
30
</script>
31
<style type="text/css">
32
33
div.workarea { padding:10px; float:left }
34
35
ul.draglist { 
36
    position: relative;
37
    width: 200px; 
38
    height:240px;
39
    background: #f7f7f7;
40
    border: 1px solid gray;
41
    list-style: none;
42
    margin:0;
43
    padding:0;
44
}
45
46
ul.draglist li {
47
    margin: 1px;
48
    cursor: move;
49
    zoom: 1;
50
}
51
52
ul.draglist_alt { 
53
    position: relative;
54
    width: 200px; 
55
    list-style: none;
56
    margin:0;
57
    padding:0;
58
    /*
59
       The bottom padding provides the cushion that makes the empty 
60
       list targetable.  Alternatively, we could leave the padding 
61
       off by default, adding it when we detect that the list is empty.
62
    */
63
    padding-bottom:20px;
64
}
65
66
ul.draglist_alt li {
67
    margin: 1px;
68
    cursor: move; 
69
}
70
71
72
li.list1 {
73
    background-color: #D1E6EC;
74
    border:1px solid #7EA6B2;
75
}
76
77
li.list2 {
78
    background-color: #D8D4E2;
79
    border:1px solid #6B4C86;
80
}
81
82
#user_actions { float: right; }
83
84
</style>
85
86
</head>
31
</head>
87
<body id="acq_basketheader" class="acq">
32
<body id="acq_basketheader" class="acq">
88
[% INCLUDE 'header.inc' %]
33
[% INCLUDE 'header.inc' %]
Lines 94-111 li.list2 { Link Here
94
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo;
39
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo;
95
    [% IF ( add_form ) %]
40
    [% IF ( add_form ) %]
96
        [% IF ( basketno ) %]Edit basket '[% basketname %]'
41
        [% IF ( basketno ) %]Edit basket '[% basketname %]'
97
        [% ELSE %]add a basket to [% booksellername %]
42
        [% ELSE %]Add a basket to [% booksellername %]
98
        [% END %]
43
        [% END %]
99
    [% END %]
44
    [% END %]
100
</div>
45
</div>
101
46
102
<div id="doc3" class="yui-t2">
47
<div id="doc" class="yui-t7">
103
    <div id="bd">
48
    <div id="bd">
104
    
49
105
    <div id="yui-main">
50
    <div id="yui-main">
106
    
51
107
    <div class="yui-b">
108
    
109
    [% IF ( add_form ) %]
52
    [% IF ( add_form ) %]
110
        [% IF ( basketno ) %]
53
        [% IF ( basketno ) %]
111
            <h1>Edit basket [% basketname %]</h1>
54
            <h1>Edit basket [% basketname %]</h1>
Lines 126-132 li.list2 { Link Here
126
                        <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" />
69
                        <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" />
127
                </li>
70
                </li>
128
                 <li>
71
                 <li>
129
                    <label for="billingplace">Billing Place:</label>
72
                    <label for="billingplace">Billing place:</label>
130
                    <select name="billingplace" id="billingplace">
73
                    <select name="billingplace" id="billingplace">
131
                        <option value="">--</option>
74
                        <option value="">--</option>
132
                        [% FOREACH billingplace IN billingplaceloop %]
75
                        [% FOREACH billingplace IN billingplaceloop %]
Lines 141-147 li.list2 { Link Here
141
                    </select>
84
                    </select>
142
                </li>
85
                </li>
143
                <li>
86
                <li>
144
                    <label for="deliveryplace">Delivery  Place:</label>
87
                    <label for="deliveryplace">Delivery place:</label>
145
                    <select name="deliveryplace" id="deliveryplace">
88
                    <select name="deliveryplace" id="deliveryplace">
146
                        <option value="">--</option>
89
                        <option value="">--</option>
147
                        [% FOREACH deliveryplace IN deliveryplaceloop %]
90
                        [% FOREACH deliveryplace IN deliveryplaceloop %]
Lines 194-207 li.list2 { Link Here
194
        <fieldset class="action">
137
        <fieldset class="action">
195
            <input type="hidden" name="op" value="add_validate" />
138
            <input type="hidden" name="op" value="add_validate" />
196
            <input type="button" value="Save" onclick="Check(this.form);" />
139
            <input type="button" value="Save" onclick="Check(this.form);" />
140
            <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a>
197
        </fieldset>
141
        </fieldset>
198
    </form>
142
    </form>
199
    [% END %]
143
    [% END %]
200
</div>
144
</div>
201
</div>
145
</div>
202
<div class="yui-b">
203
    [% INCLUDE 'acquisitions-menu.inc' %]
204
</div>
205
</div>
206
146
207
[% INCLUDE 'intranet-bottom.inc' %]
147
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt (-1 / +1 lines)
Lines 40-46 Link Here
40
      [% END %]
40
      [% END %]
41
      <h1>Invoice: [% invoicenumber %]</h1>
41
      <h1>Invoice: [% invoicenumber %]</h1>
42
42
43
      <p>Supplier: [% suppliername %]</p>
43
      <p>Supplier: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
44
      <form action="" method="post">
44
      <form action="" method="post">
45
        <fieldset>
45
        <fieldset>
46
          <label for="shipmentdate">Shipment date:</label>
46
          <label for="shipmentdate">Shipment date:</label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-6 / +6 lines)
Lines 54-61 $(document).ready(function() { Link Here
54
            <tbody>
54
            <tbody>
55
              [% FOREACH result IN results_loop %]
55
              [% FOREACH result IN results_loop %]
56
                <tr>
56
                <tr>
57
                  <td>[% result.invoicenumber %]</td>
57
                  <td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% result.invoiceid %]">[% result.invoicenumber %]</a></td>
58
                  <td>[% result.suppliername %]</td>
58
                  <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% result.booksellerid %]">[% result.suppliername %]</a></td>
59
                  <td>
59
                  <td>
60
                    [% IF (result.billingdate) %]
60
                    [% IF (result.billingdate) %]
61
                      [% result.billingdate | $KohaDates %]
61
                      [% result.billingdate | $KohaDates %]
Lines 73-81 $(document).ready(function() { Link Here
73
                  <td>
73
                  <td>
74
                    <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% result.invoiceid %]">Details</a> /
74
                    <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% result.invoiceid %]">Details</a> /
75
                    [% IF ( result.closedate ) %]
75
                    [% IF ( result.closedate ) %]
76
                      <a href="invoice.pl?op=reopen&invoiceid=[% result.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% supplier %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Reopen</a>
76
                      <a href="invoice.pl?op=reopen&amp;invoiceid=[% result.invoiceid %]&amp;referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% supplier %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Reopen</a>
77
                    [% ELSE %]
77
                    [% ELSE %]
78
                      <a href="invoice.pl?op=close&invoiceid=[% result.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% supplier %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Close</a>
78
                      <a href="invoice.pl?op=close&amp;invoiceid=[% result.invoiceid %]&amp;referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% supplier %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Close</a>
79
                    [% END %]
79
                    [% END %]
80
                  </td>
80
                  </td>
81
                </tr>
81
                </tr>
Lines 149-157 $(document).ready(function() { Link Here
149
              <option value="">All</option>
149
              <option value="">All</option>
150
              [% FOREACH supplier IN suppliers_loop %]
150
              [% FOREACH supplier IN suppliers_loop %]
151
                [% IF ( supplier.selected ) %]
151
                [% IF ( supplier.selected ) %]
152
                  <option selected="selected" value="[% supplier.supplierid %]">[% supplier.suppliername %]</option>
152
                  <option selected="selected" value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
153
                [% ELSE %]
153
                [% ELSE %]
154
                  <option value="[% supplier.supplierid %]">[% supplier.suppliername %]</option>
154
                  <option value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
155
                [% END %]
155
                [% END %]
156
              [% END %]
156
              [% END %]
157
            </select>
157
            </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-1 / +6 lines)
Lines 47-56 if (f.company.value == "") { Link Here
47
47
48
<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; [% IF ( enter ) %][% IF ( booksellerid ) %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; Update: [% name %][% ELSE %]Add vendor[% END %] [% ELSE %][% name %][% END %]</div>
48
<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; [% IF ( enter ) %][% IF ( booksellerid ) %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; Update: [% name %][% ELSE %]Add vendor[% END %] [% ELSE %][% name %][% END %]</div>
49
49
50
<div id="doc" class="yui-t7">
50
<div id="doc3" class="yui-t2">
51
51
52
<div id="bd">
52
<div id="bd">
53
    <div id="yui-main">
53
    <div id="yui-main">
54
    <div class="yui-b">
54
    [% IF ( enter ) %]
55
    [% IF ( enter ) %]
55
        [% IF ( booksellerid ) %]
56
        [% IF ( booksellerid ) %]
56
        <h1>Update: [% name %]</h1>
57
        <h1>Update: [% name %]</h1>
Lines 280-283 if (f.company.value == "") { Link Here
280
281
281
</div>
282
</div>
282
</div>
283
</div>
284
<div class="yui-b">
285
[% INCLUDE 'vendor-menu.inc' %]
286
</div>
287
</div>
283
[% INCLUDE 'intranet-bottom.inc' %]
288
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt (-7 / +17 lines)
Lines 1-5 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Orders with uncertain prices for Vendor [% booksellername %]</title>
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Orders with uncertain prices for vendor [% booksellername %]</title>
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
Lines 30-44 function check(form) { Link Here
30
[% INCLUDE 'header.inc' %]
30
[% INCLUDE 'header.inc' %]
31
[% INCLUDE 'acquisitions-search.inc' %]
31
[% INCLUDE 'acquisitions-search.inc' %]
32
32
33
<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;<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; Uncertain prices for vendor: [% booksellername %]</div>
33
<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; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; Uncertain prices for vendor [% booksellername %]</div>
34
34
35
<div id="doc" class="yui-t7">
35
<div id="doc3" class="yui-t2">
36
   <div id="bd">
36
37
        <div id="yui-main">
37
    <div id="bd">
38
    <div id="yui-main">
39
    <div class="yui-b">
40
41
[% INCLUDE 'acquisitions-toolbar.inc' %]
38
        [% IF ( validate ) %]
42
        [% IF ( validate ) %]
39
            <META HTTP-EQUIV=Refresh CONTENT="0; url=[% scriptname %]?booksellerid=[% booksellerid %]">
43
            <META HTTP-EQUIV=Refresh CONTENT="0; url=[% scriptname %]?booksellerid=[% booksellerid %]">
40
        [% ELSE %]
44
        [% ELSE %]
41
        <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&amp;op=enter">(edit)</a></h1>
45
        <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
42
        <h2>Contact information</h2>
46
        <h2>Contact information</h2>
43
        <p><strong>Address: </strong>
47
        <p><strong>Address: </strong>
44
            [% booksellerpostal %]
48
            [% booksellerpostal %]
Lines 129-133 function check(form) { Link Here
129
	<fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset>
133
	<fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset>
130
	</form>
134
	</form>
131
	[% END %]
135
	[% END %]
136
137
</div>
138
</div>
139
<div class="yui-b">
140
[% INCLUDE 'vendor-menu.inc' %]
141
</div>
132
</div>
142
</div>
133
</div>[% INCLUDE 'intranet-bottom.inc' %]
143
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt (-22 / +12 lines)
Lines 83-91 function Check(ff) { Link Here
83
    [% IF ( else ) %]Contracts[% END %]
83
    [% IF ( else ) %]Contracts[% END %]
84
</div>
84
</div>
85
85
86
<div id="doc" class="yui-t7">
86
<div id="doc3" class="yui-t2">
87
87
    <div id="bd">
88
    <div id="bd">
88
        <div id="yui-main">
89
    <div id="yui-main">
90
    <div class="yui-b">
91
92
[% INCLUDE 'acquisitions-toolbar.inc' %]
89
                [% IF ( add_form ) %]
93
                [% IF ( add_form ) %]
90
                    <form name="Aform" action="[% script_name %]" method="post">
94
                    <form name="Aform" action="[% script_name %]" method="post">
91
                        <input type="hidden" name="op" value="add_validate" />
95
                        <input type="hidden" name="op" value="add_validate" />
Lines 161-183 function Check(ff) { Link Here
161
                </form>
165
                </form>
162
            [% END %]
166
            [% END %]
163
            [% IF ( else ) %]
167
            [% IF ( else ) %]
164
                <div id="toolbar">
165
                    <script type="text/javascript">
166
                        //<![CDATA[
167
                        // prepare DOM for YUI Toolbar
168
                        $(document).ready(function() {
169
                        yuiToolbar();
170
                        });
171
                        // YUI Toolbar Functions
172
                        function yuiToolbar() {
173
                        new YAHOO.widget.Button("newcontract");
174
                        }
175
                        //]]>
176
                    </script>
177
                    <ul class="toolbar">
178
                        <li><a id="newcontract" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;booksellerid=[% booksellerid %]">New contract</a></li>
179
                    </ul>
180
                </div>
181
                <h2>Contract(s) of [% booksellername %]</h2>
168
                <h2>Contract(s) of [% booksellername %]</h2>
182
                [% IF ( loop ) %]
169
                [% IF ( loop ) %]
183
                    <table>
170
                    <table>
Lines 202-210 function Check(ff) { Link Here
202
                    [% END %]
189
                    [% END %]
203
                </table>
190
                </table>
204
                [% ELSE %]
191
                [% ELSE %]
205
                <div class="dialog message">There are no contracts with this vendor.</div>
192
                <div class="dialog message">There are no contracts with this vendor. <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;booksellerid=[% booksellerid %]">Add a contract</a>.</div>
206
                [% END %]
193
                [% END %]
207
            [% END %]
194
            [% END %]
208
        </div>
195
</div>
196
</div>
197
<div class="yui-b">
198
[% INCLUDE 'vendor-menu.inc' %]
199
</div>
209
</div>
200
</div>
210
[% INCLUDE 'intranet-bottom.inc' %]
201
[% INCLUDE 'intranet-bottom.inc' %]
211
- 

Return to bug 8913