Ray's fixes for the file manager
This commit is contained in:
parent
26c4d69e07
commit
2a41e90bc1
|
@ -0,0 +1,14 @@
|
||||||
|
body > section {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
#panel_l {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
#panel_r {
|
||||||
|
width: 18%;
|
||||||
|
padding-left: 2%;
|
||||||
|
}
|
||||||
|
.nav-pills {
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding: 20px 20px 0;
|
||||||
|
}
|
|
@ -1,31 +1,31 @@
|
||||||
<style>
|
<style>
|
||||||
/* File Upload */
|
/* File Upload */
|
||||||
#upload-panel {
|
#upload-panel {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
#upload-panel iframe {
|
#upload-panel iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
#fileupload {
|
#fileupload {
|
||||||
position: relative;
|
position: relative;
|
||||||
clear: both;
|
clear: both;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 40px 0 15px;
|
margin: 0 0 20px;
|
||||||
height: 254px;
|
height: 254px;
|
||||||
border: 1px solid #d4d4d4;
|
border: 1px solid #d4d4d4;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: #FDFDFD;
|
background-color: #FDFDFD;
|
||||||
/*-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, .15) inset;
|
/*-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, .15) inset;
|
||||||
box-shadow: 0px 0px 10px rgba(0, 0, 0, .15) inset;*/
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, .15) inset;*/
|
||||||
}
|
}
|
||||||
#fileupload table {
|
#fileupload table {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar .navbar {
|
#fileupload .fileupload-buttonbar .navbar {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar .navbar .add-photo {
|
#fileupload .fileupload-buttonbar .navbar .add-photo {
|
||||||
border: none;
|
border: none;
|
||||||
border-right: 1px solid #d4d4d4;
|
border-right: 1px solid #d4d4d4;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
@ -33,17 +33,17 @@
|
||||||
color: #777777;
|
color: #777777;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-shadow: 0 1px 0 #ffffff;
|
text-shadow: 0 1px 0 #ffffff;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar .navbar .add-photo:hover {
|
#fileupload .fileupload-buttonbar .navbar .add-photo:hover {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: #EDEDED;
|
background-color: #EDEDED;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar .navbar .fileinput-button {
|
#fileupload .fileupload-buttonbar .navbar .fileinput-button {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar .navbar .fileinput-button input {
|
#fileupload .fileupload-buttonbar .navbar .fileinput-button input {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -59,14 +59,14 @@
|
||||||
-o-transform: translate(-300px, 0) scale(4);
|
-o-transform: translate(-300px, 0) scale(4);
|
||||||
transform: translate(-300px, 0) scale(4);
|
transform: translate(-300px, 0) scale(4);
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar .navbar-inner {
|
#fileupload .fileupload-buttonbar .navbar-inner {
|
||||||
border-width: 0 0 1px;
|
border-width: 0 0 1px;
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fileupload .fileupload-progress .progress {
|
#fileupload .fileupload-progress .progress {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -75,11 +75,11 @@
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-progress .progress-success.progress-striped .bar {
|
#fileupload .fileupload-progress .progress-success.progress-striped .bar {
|
||||||
background-color: #0088CC;
|
background-color: #0088CC;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-progress .progress-extended {
|
#fileupload .fileupload-progress .progress-extended {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -91,12 +91,12 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: 'Varela Round', sans-serif;
|
font-family: 'Varela Round', sans-serif;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
#fileupload .fileupload-buttonbar {
|
#fileupload .fileupload-buttonbar {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone {
|
#fileupload #dropzone {
|
||||||
margin: 15px 10px 10px;
|
margin: 15px 10px 10px;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -104,15 +104,15 @@
|
||||||
font-family: 'Raleway';
|
font-family: 'Raleway';
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
color: #e4e4e4;
|
color: #e4e4e4;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone div[data-icons] {
|
#fileupload #dropzone div[data-icons] {
|
||||||
font-size: 4em;
|
font-size: 4em;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
padding-top: 30px;
|
padding-top: 30px;
|
||||||
text-shadow: 0px -1px 0px #ececec;
|
text-shadow: 0px -1px 0px #ececec;
|
||||||
color: #f5f5f5;
|
color: #f5f5f5;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone.drop {
|
#fileupload #dropzone.drop {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 37px;
|
top: 37px;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -123,69 +123,69 @@
|
||||||
color: #0088CC;
|
color: #0088CC;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone.fade {
|
#fileupload #dropzone.fade {
|
||||||
opacity: .3;
|
opacity: .3;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone.in {
|
#fileupload #dropzone.in {
|
||||||
opacity: .7;
|
opacity: .7;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
border-color: #faa732;
|
border-color: #faa732;
|
||||||
color: #faa732;
|
color: #faa732;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone.drop div[data-icons] {
|
#fileupload #dropzone.drop div[data-icons] {
|
||||||
text-shadow: 0px -1px 0px #0c5f80;
|
text-shadow: 0px -1px 0px #0c5f80;
|
||||||
color: #0088CC;
|
color: #0088CC;
|
||||||
}
|
}
|
||||||
#fileupload #dropzone.in div[data-icons] {
|
#fileupload #dropzone.in div[data-icons] {
|
||||||
text-shadow: 0px -1px 0px #a28a10;
|
text-shadow: 0px -1px 0px #a28a10;
|
||||||
color: #faa732;
|
color: #faa732;
|
||||||
}
|
}
|
||||||
#fileupload #file-list {
|
#fileupload #file-list {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: 209px;
|
height: 209px;
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .pane {
|
#fileupload #file-list .pane {
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .files {
|
#fileupload #file-list .files {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px 14px 10px 10px;
|
padding: 10px 14px 10px 10px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .files > li {
|
#fileupload #file-list .files > li {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .files > li:nth-child(even) {
|
#fileupload #file-list .files > li:nth-child(even) {
|
||||||
background-color: #e9e9e9;
|
background-color: #e9e9e9;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .files ul {
|
#fileupload #file-list .files ul {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .files ul li {
|
#fileupload #file-list .files ul li {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .files ul li.action-bnt {
|
#fileupload #file-list .files ul li.action-bnt {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .preview {
|
#fileupload #file-list .preview {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .name {
|
#fileupload #file-list .name {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .progress {
|
#fileupload #file-list .progress {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -5px;
|
left: -5px;
|
||||||
right: -5px;
|
right: -5px;
|
||||||
|
@ -195,41 +195,57 @@
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .size {
|
#fileupload #file-list .size {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
}
|
}
|
||||||
#fileupload #file-list .action-bnt {
|
#fileupload #file-list .action-bnt {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<ul class="nav nav-tabs module-nav">
|
<%= stylesheet_link_tag "lib/filemanager"%>
|
||||||
<li class="active">
|
<%= stylesheet_link_tag "lib/main-forms"%>
|
||||||
<a href="#filemanager" data-toggle="tab">File Manager</a>
|
<div class="form-horizontal main-forms">
|
||||||
</li>
|
<fieldset>
|
||||||
|
<ul class="nav nav-pills">
|
||||||
|
<li class="active"><a href="#filemanager" data-toggle="tab">File Manager</a></li>
|
||||||
<li><a href="#upload" data-toggle="tab">Upload</a></li>
|
<li><a href="#upload" data-toggle="tab">Upload</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-pane fade in active" id="filemanager">
|
<div class="tab-content">
|
||||||
<a href="<%= admin_module_tags_path(:module_app_id => @module_app_id.to_s) %>"> Tag Management </a>
|
<div class="tab-pane fade in active" id="filemanager">
|
||||||
<div id="panel_l" style="width:200px;float:left;margin:5px 5px 5px 5px;">
|
<div class="input-area clearfix">
|
||||||
|
<!-- <a href="<%= admin_module_tags_path(:module_app_id => @module_app_id.to_s) %>"> Tag Management </a> -->
|
||||||
|
<div id="panel_r" class="pull-right">
|
||||||
preview is here
|
preview is here
|
||||||
</div>
|
</div>
|
||||||
<div id="panel_r" class="tab-pane fade in active" style="width: 1200px;" >
|
<div id="panel_l" class="tab-pane fade in active pull-left">
|
||||||
<table id="asset_sort_list" class="table main-list">
|
<table id="asset_sort_list" class="table main-list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="span1"></th>
|
<th></th>
|
||||||
<th class="span4">Name</th>
|
<th>Name</th>
|
||||||
<th class="span1-2">Size</th>
|
<th>Size</th>
|
||||||
<th class="span1-2">Description</th>
|
<th>Description</th>
|
||||||
<th class="span2">Tags</th>
|
<th>Tags</th>
|
||||||
<th class="span1">Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tbody_assets" class="sort-holder">
|
<tbody id="tbody_assets" class="sort-holder">
|
||||||
<%= render :partial => 'asset', :collection => @assets %>
|
<%= render :partial => 'asset', :collection => @assets %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="pagination pagination-centered">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#">«</a></li>
|
||||||
|
<li><a href="#">1</a></li>
|
||||||
|
<li><a href="#">2</a></li>
|
||||||
|
<li><a href="#">3</a></li>
|
||||||
|
<li><a href="#">4</a></li>
|
||||||
|
<li><a href="#">5</a></li>
|
||||||
|
<li><a href="#">»</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-actions form-fixed pagination-right">
|
<div class="form-actions form-fixed pagination-right">
|
||||||
<button class="btn btn-primary" id="insert_btn" style="display:none;">Insert</button>
|
<button class="btn btn-primary" id="insert_btn" style="display:none;">Insert</button>
|
||||||
|
@ -238,8 +254,9 @@
|
||||||
<%= paginate @assets, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]}, :remote => true %>
|
<%= paginate @assets, :params => {:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]}, :remote => true %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="upload">
|
<div class="tab-pane fade" id="upload">
|
||||||
|
<div class="input-area">
|
||||||
<form action="<%= file_upload_admin_assets_path %>", id='fileupload'>
|
<form action="<%= file_upload_admin_assets_path %>", id='fileupload'>
|
||||||
<!-- Redirect browsers with JavaScript disabled to the origin page -->
|
<!-- Redirect browsers with JavaScript disabled to the origin page -->
|
||||||
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
||||||
|
@ -300,11 +317,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div id="editform" class="modal hide fade">
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="editform" class="modal hide fade"></div>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% content_for :page_specific_javascript do %>
|
<% content_for :page_specific_javascript do %>
|
||||||
|
@ -353,8 +370,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{% } %}
|
{% } %}
|
||||||
</script>
|
</script>
|
||||||
<!-- The template to display files available for download -->
|
<!-- The template to display files available for download -->
|
||||||
<script id="template-download" type="text/x-tmpl">
|
<script id="template-download" type="text/x-tmpl">
|
||||||
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
||||||
<li class="template-download fade">
|
<li class="template-download fade">
|
||||||
|
|
Loading…
Reference in New Issue