+[% USE raw %]
+[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Tools › Quote uploader</title>
[% INCLUDE 'doc-head-close.inc' %]
- <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/uploader_[% KOHA_VERSION %].css" />
- <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/quotes_[% KOHA_VERSION %].css" />
- <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
+ [% Asset.css("css/uploader.css") | $raw %]
+ [% Asset.css("css/quotes.css") | $raw %]
</head>
<body id="tools_quotes" class="tools">
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/tools/quotes.pl">Quote editor</a> › Quote uploader</div>
-<div id="doc3" class="yui-t2">
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b">
+<div class="main container-fluid">
+ <div class="row">
+ <div class="col-sm-10 col-sm-push-2">
+ <main>
+
[% INCLUDE 'quotes-upload-toolbar.inc' %]
<h2>Quote uploader</h2>
<div id="instructions">
</table>
<fieldset id="footer" class="action" style="visibility: hidden;">
</fieldset>
- </div>
- </div>
- <div class="yui-b noprint">
- [% INCLUDE 'tools-menu.inc' %]
- </div>
-</div>
+
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
+
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% INCLUDE 'tools-menu.inc' %]
+ </aside>
+ </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+ </div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
- <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu_[% KOHA_VERSION %].js"></script>
+ [% Asset.js("js/tools-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
- <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.jeditable.mini_[% KOHA_VERSION %].js"></script>
- <script type="text/javascript">
+ [% Asset.js("lib/jquery/plugins/jquery.jeditable.mini.js") | $raw %]
+ <script>
var oTable; //DataTable object
$(document).ready(function() {
function fnErrorHandler(evt) {
switch(evt.target.error.code) {
case evt.target.error.NOT_FOUND_ERR:
- alert('File Not Found!');
+ alert(_("File Not Found!"));
break;
case evt.target.error.NOT_READABLE_ERR:
- alert('File is not readable');
+ alert(_("File is not readable"));
break;
case evt.target.error.ABORT_ERR:
break; // noop
default:
- alert('An error occurred reading this file.');
+ alert(_("An error occurred reading this file."));
};
}
"aaData" : aaData,
"aoColumns" : [
{
- "sTitle" : "Number",
+ "sTitle" : _("Number"),
"sWidth" : "2%",
},
{
- "sTitle" : "Source",
+ "sTitle" : _("Source"),
"sWidth" : "15%",
},
{
- "sTitle" : "Quote",
+ "sTitle" : _("Quote"),
"sWidth" : "83%",
},
],
reader.onerror = fnErrorHandler;
reader.onprogress = fnUpdateProgress;
reader.onabort = function(e) {
- alert('File read cancelled');
+ alert(_("File read cancelled"));
parent.location='quotes-upload.pl';
};
reader.onloadstart = function(e) {