Ray's fixes for the file manager

This commit is contained in:
saurabhbhatia 2013-12-10 17:40:13 +08:00
parent 26c4d69e07
commit 2a41e90bc1
2 changed files with 380 additions and 349 deletions

View File

@ -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;
}

View File

@ -11,7 +11,7 @@
position: relative;
clear: both;
overflow: hidden;
margin: 40px 0 15px;
margin: 0 0 20px;
height: 254px;
border: 1px solid #d4d4d4;
border-radius: 4px;
@ -203,33 +203,49 @@
text-align: right;
}
</style>
<ul class="nav nav-tabs module-nav">
<li class="active">
<a href="#filemanager" data-toggle="tab">File Manager</a>
</li>
<%= stylesheet_link_tag "lib/filemanager"%>
<%= stylesheet_link_tag "lib/main-forms"%>
<div class="form-horizontal main-forms">
<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>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="filemanager">
<a href="<%= admin_module_tags_path(:module_app_id => @module_app_id.to_s) %>"> Tag Management </a>
<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
</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">
<thead>
<tr>
<th class="span1"></th>
<th class="span4">Name</th>
<th class="span1-2">Size</th>
<th class="span1-2">Description</th>
<th class="span2">Tags</th>
<th class="span1">Action</th>
<th></th>
<th>Name</th>
<th>Size</th>
<th>Description</th>
<th>Tags</th>
<th>Action</th>
</tr>
</thead>
<tbody id="tbody_assets" class="sort-holder">
<%= render :partial => 'asset', :collection => @assets %>
</tbody>
</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 class="form-actions form-fixed pagination-right">
<button class="btn btn-primary" id="insert_btn" style="display:none;">Insert</button>
@ -240,6 +256,7 @@
</div>
</div>
<div class="tab-pane fade" id="upload">
<div class="input-area">
<form action="<%= file_upload_admin_assets_path %>", id='fileupload'>
<!-- Redirect browsers with JavaScript disabled to the origin page -->
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
@ -301,10 +318,10 @@
</div>
</form>
</div>
<div id="editform" class="modal hide fade">
</div>
</div>
<div id="editform" class="modal hide fade"></div>
</fieldset>
</div>
<% content_for :page_specific_javascript do %>