2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › EDIFACT messages</title>
4 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
8 $(document).ready(function() {
9 $('#edi_msgs').dataTable($.extend(true, {}, dataTablesDefaults, {
10 'aaSorting': [[1, "desc" ]],
11 'sPaginationType': "four_button",
13 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
14 { "sType": "title-string", "aTargets" : [ "title-string" ] }
18 var EDIModal = $("#EDI_modal");
19 var EDIModalBody = $("#EDI_modal .modal-body");
21 $(".view_message").on("click", function(e){
23 var page = $(this).attr("href");
24 EDIModalBody.load(page + " #edimsg");
25 EDIModal.modal("show");
27 EDIModal.on("click",".closebtn",function(e){
29 EDIModal.modal("hide");
31 EDIModal.on("hidden", function(){
32 EDIModalBody.html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
34 $(".delete_msg").on("click",function(){
35 return confirm(_("Are you sure you want to delete this message?"));
39 <style type="text/css">
40 #EDI_modal { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #EDI_modal { margin: 0; width : auto; } }
43 <body id="acq_edifactmsgs" class="acq">
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'acquisitions-search.inc' %]
46 <div id="breadcrumbs">
47 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
48 › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
49 › <a href="/cgi-bin/koha/acqui/edifactmsgs.pl">EDIFACT messages</a>
52 <div id="doc3" class="yui-t2">
59 <h1>EDIFACT messages</h1>
60 <div id="acqui_edifactmsgs">
67 <th class="title-string">Transferred</th>
76 [% FOREACH msg IN messages %]
78 <td>[% msg.message_type %]</td>
79 <td><span title="[% msg.transfer_date %]">[% msg.transfer_date | $KohaDates %]</span></td>
80 <td>[% msg.status %]</td>
82 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% msg.vendor_id %]">
87 [% IF msg.message_type == 'QUOTE' || msg.message_type == 'ORDERS' %]
89 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% msg.basketno.basketno %]">
90 Basket: [% msg.basketno.basketno %]
94 <!-- Assuming invoices -->
95 <a href="/cgi-bin/koha/acqui/invoices.pl?message_id=[% msg.id %]">
100 <td>[% msg.filename %]</td>
103 <a class="btn btn-mini view_message" target="_blank" href="/cgi-bin/koha/acqui/edimsg.pl?id=[% msg.id %]"><i class="fa fa-search"></i> View message</a>
104 <a class="btn btn-mini delete_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&message_id=[% msg.id %]"><i class="fa fa-trash"></i> Delete</a>
112 <!-- Modal to display EDIFACT messages -->
113 <div class="modal hide" id="EDI_modal" tabindex="-1" role="dialog" aria-labelledby="EDI_modal_label" aria-hidden="true">
114 <div class="modal-header">
115 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
116 <h3 id="EDI_modal_label">EDIFACT message</h3>
118 <div class="modal-body">
119 <div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div>
121 <div class="modal-footer">
122 <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
128 <div class="dialog message">There are no EDIFACT messages.</div>
135 [% INCLUDE 'acquisitions-menu.inc' %]
138 [% INCLUDE 'intranet-bottom.inc' %]