12cb095bac
This series will add a DataTable's based upload/editor with which to upload csv files containing quotes to be used by the QOTD feature. The file should be formatted thusly: "source","text-of-quote" "source","text-of-quote" ... Note: This work serves as a good example of potential improvements in all other "editor" and file upload areas of Koha. This patch is a squash of the following work: --Adding code to parse CSV file contents and push it into a DataTable --Adding in jEditable to enable table editing --Adding ajax to post data back to the server to be saved --Fixing edit and adding delete functionality --Adding some missing css as well as server feedback on save --Fixing a bug which limited the number of quotes which could be uploaded --Also fixing a minor bug with fnCSVToArray and doing some style cleanup. --Adding sanity checks to verify file type and size --Implements YUI button widget/toolbar --Improved handling of hiding uploader UI --Adds row selectability --Adds multi-delete capability --Adds YUI button/toolbar widget --Fixing capitalization in quote uploader --Implements improvments suggested by jcamins and oleonard Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Mason James <mtj@kohaaloha.com>
49 lines
979 B
CSS
49 lines
979 B
CSS
#progress_bar {
|
|
margin: 10px 0;
|
|
padding: 3px;
|
|
border: 1px solid #000;
|
|
font-size: 14px;
|
|
clear: both;
|
|
opacity: 0;
|
|
-moz-transition: opacity 1s linear;
|
|
-o-transition: opacity 1s linear;
|
|
-webkit-transition: opacity 1s linear;
|
|
}
|
|
#progress_bar.loading {
|
|
opacity: 1.0;
|
|
}
|
|
#progress_bar .percent {
|
|
color: #E6F0F2;
|
|
background-color: #004D99;
|
|
height: auto;
|
|
width: 0;
|
|
}
|
|
#server_response {
|
|
background-color: white;
|
|
background-image: url("../../img/x_alt_16x16.png");
|
|
background-repeat: no-repeat;
|
|
background-origin: padding-box;
|
|
background-position: right top;
|
|
border: 1px solid #DDDDDD;
|
|
color: #999999;
|
|
font-size: 14px;
|
|
height: 30px;
|
|
left: 50%;
|
|
margin-left: -125px;
|
|
margin-top: -15px;
|
|
padding: 14px 0 2px;
|
|
position: fixed;
|
|
text-align: center;
|
|
top: 50%;
|
|
width: 250px;
|
|
}
|
|
|
|
#file_uploader {
|
|
position: relative;
|
|
top: -24px;
|
|
}
|
|
|
|
#file_upload {
|
|
position: relative;
|
|
top: -1px;
|
|
}
|