Bug 7736: Support Ordering via Edifact EDI messages
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / edifactmsgs.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 $(document).ready(function() {
8     $('#edi_msgs').dataTable($.extend(true, {}, dataTablesDefaults, {
9         'aaSorting': [[1, "desc" ]],
10         'sPaginationType': "four_button"
11         }));
12 });
13 </script>
14
15 </head>
16 <body id="acq_edifactmsgs" class="acq">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'acquisitions-search.inc' %]
19 <div id="breadcrumbs">
20 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21 &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
22 &rsaquo; <a href="/cgi-bin/koha/acqui/edifactmsgs.pl">Edifact Messages</a>
23 </div>
24
25 <div id="doc3" class="yui-t2">
26
27 <div id="bd">
28     <div id="yui-main">
29     <div class="yui-b">
30
31
32 <h1>Edifact Messages</h1>
33 <div id="acqui_edifactmsgs">
34
35
36 <table id="edi_msgs">
37 <thead>
38 <th>Type</th>
39 <th>Transferred</th>
40 <th>Status</th>
41 <th>Vendor</th>
42 <th>Details</th>
43 <th>Filename</th>
44 <th> </th>
45 <th>Action</th>
46 </thead>
47 <tbody>
48 [% FOREACH msg IN messages %]
49 <tr>
50 <td>[% msg.message_type %]</td>
51 <td>[% msg.transfer_date %]</td>
52 <td>[% msg.status %]</td>
53 <td>
54 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% msg.vendor_id %]"</a>
55 [% msg.vendor.name %]
56 </td>
57 <td>
58 [% IF msg.message_type == 'QUOTE' || msg.message_type == 'ORDERS' %]
59     [% IF msg.basketno %]
60     <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% msg.basketno.basketno %]">
61     Basket: [% msg.basketno.basketno %]
62     </a>
63     [% END %]
64 [% ELSE %]
65 <!-- Assuming invoices -->
66      <a href="/cgi-bin/koha/acqui/invoices.pl?message_id=[% msg.id %]">
67       Invoices
68      </a>
69 [% END %]
70 </td>
71 </td>
72 <td>[% msg.filename %]</td>
73 <td><a class="popup" target="_blank" title="View Message" href="/cgi-bin/koha/acqui/edimsg.pl?id=[% msg.id %]"</a>View Message</td>
74 <td>
75 <a href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&amp;message_id=[% msg.id %]">Delete</a>
76 </td>
77 </tr>
78 [% END %]
79
80 </tbody>
81 </table>
82
83 </div>
84 </div>
85 </div>
86 <div class="yui-b">
87 [% INCLUDE 'acquisitions-menu.inc' %]
88 </div>
89 </div>
90 [% INCLUDE 'intranet-bottom.inc' %]