Wainui Witika-Park
1b4b52fd25
Modified breadcrumbs to be accessible, in particular for a screen-reader. Made the block of breadcrumbs be a <nav aria label="Breadcrumb" class="breadcrumb"> with an ordered list inside. The last breadcrumbs also has aria-current="page" to specify that it is the current page. To test: 1) Apply patch 2) Build scss file 3) Ensure each of the files in the modules folder and the modules/acqui folder has breadcrumbs that are in a <nav aria label="Breadcrumb" class="breadcrumb"> block 4) Ensure that there is an ordered list in the block of breadcrumbs 5) Ensure that the last breadcrumb has aria-current="page" 6) Ensure that the breadcrumbs on each page of the staff client belonging to these files look the same as before, but the '>' symbol is replaced with '/' and the last breadcrumb has bold text 7) Ensure that when the last breadcrumb is clicked it takes you to the page you are currently on Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
163 lines
5.2 KiB
Text
163 lines
5.2 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% USE KohaDates %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Acquisitions › EDIFACT messages</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style>
|
|
#EDI_modal { width : 80%; } @media (max-width: 767px) { #EDI_modal { margin: 0; width : auto; } }
|
|
</style>
|
|
</head>
|
|
|
|
<body id="acq_edifactmsgs" class="acq">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'acquisitions-search.inc' %]
|
|
<nav aria-label="Breadcrumb" class="breadcrumb">
|
|
<ol>
|
|
<li>
|
|
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
|
|
</li>
|
|
<li>
|
|
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" aria-current="page">EDIFACT messages</a>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
|
|
|
|
<h1>EDIFACT messages</h1>
|
|
<div id="acqui_edifactmsgs">
|
|
|
|
[% IF ( messages ) %]
|
|
<table id="edi_msgs">
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th class="title-string">Transferred</th>
|
|
<th>Status</th>
|
|
<th>Vendor</th>
|
|
<th>Details</th>
|
|
<th>Filename</th>
|
|
<th class="noExport">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH msg IN messages %]
|
|
<tr>
|
|
<td>[% msg.message_type | html %]</td>
|
|
<td><span title="[% msg.transfer_date | html %]">[% msg.transfer_date | $KohaDates %]</span></td>
|
|
<td>[% msg.status | html %]</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% msg.vendor_id | uri %]">
|
|
[% msg.vendor.name | html %]
|
|
</a>
|
|
</td>
|
|
<td>
|
|
[% IF msg.message_type == 'QUOTE' || msg.message_type == 'ORDERS' %]
|
|
[% IF msg.basketno %]
|
|
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% msg.basketno.basketno | uri %]">
|
|
Basket: [% msg.basketno.basketno | html %]
|
|
</a>
|
|
[% END %]
|
|
[% ELSE %]
|
|
<!-- Assuming invoices -->
|
|
<a href="/cgi-bin/koha/acqui/invoices.pl?message_id=[% msg.id | uri %]&op=do_search">
|
|
Invoices
|
|
</a>
|
|
[% END %]
|
|
</td>
|
|
<td>[% msg.filename | html %]</td>
|
|
|
|
<td class="actions">
|
|
<a class="btn btn-default btn-xs view_message" target="_blank" href="/cgi-bin/koha/acqui/edimsg.pl?id=[% msg.id | html %]"><i class="fa fa-search"></i> View message</a>
|
|
<a class="btn btn-default btn-xs delete_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&message_id=[% msg.id | html %]"><i class="fa fa-trash"></i> Delete</a>
|
|
[% IF msg.status == 'new' %]
|
|
<a class="btn btn-default btn-xs import_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=import&message_id=[% msg.id | html %]"><i class="fa fa-cog"></i> Import</a>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<!-- Modal to display EDIFACT messages -->
|
|
<div class="modal" id="EDI_modal" tabindex="-1" role="dialog" aria-labelledby="EDI_modal_label" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h3 id="EDI_modal_label">EDIFACT message</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
[% ELSE %]
|
|
<div class="dialog message">There are no EDIFACT messages.</div>
|
|
[% END %]
|
|
|
|
</div> <!-- /#acqui_edifactmsgs -->
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'acquisitions-menu.inc' %]
|
|
</aside>
|
|
</div>
|
|
</div> <!-- /.row -->
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/acquisitions-menu.js") | $raw %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#edi_msgs').dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
'aaSorting': [[1, "desc" ]],
|
|
'sPaginationType': "full",
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
|
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
|
|
]
|
|
}));
|
|
|
|
var EDIModal = $("#EDI_modal");
|
|
var EDIModalBody = $("#EDI_modal .modal-body");
|
|
|
|
$(".view_message").on("click", function(e){
|
|
e.preventDefault();
|
|
var page = $(this).attr("href");
|
|
EDIModalBody.load(page + " #edimsg");
|
|
EDIModal.modal("show");
|
|
});
|
|
EDIModal.on("click",".closebtn",function(e){
|
|
e.preventDefault();
|
|
EDIModal.modal("hide");
|
|
});
|
|
EDIModal.on("hidden.bs.modal", function(){
|
|
EDIModalBody.html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
|
|
});
|
|
$(".delete_msg").on("click",function(){
|
|
return confirm(_("Are you sure you want to delete this message?"));
|
|
});
|
|
});
|
|
</script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|