Bug 20478: Have the cronjob script advance_notices.pl send digest messages per branch.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / quotes-upload.tt
index 3eb0ee5..dc5da4b 100644 (file)
@@ -1,10 +1,11 @@
+[% USE raw %]
+[% USE Asset %]
 [% SET footerjs = 1 %]
     [% INCLUDE 'doc-head-open.inc' %]
     <title>Koha &rsaquo; Tools &rsaquo; 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> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tools/quotes.pl">Quote editor</a> &rsaquo; 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) {