Skip to content
Snippets Groups Projects
Commit 2d80f2d9 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

show existent attachments

parent 08881721
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,17 @@
</div>
<br>
<div id="existentsAttachments" class="panel">
<% @learning_object.attachments.each do |attachment| %>
<dl>
<dt><%= image_tag attachment.thumbnail.url(:small) %></dt>
<dd>
<button class="btn btn-primary"><i class="fa fa-star"></i>&nbspDefinir como principal</button>
<button class="btn btn-danger"><i class="fa fa-trash"></i>&nbspApagar</button>
</dd>
</dl>
<% end %>
</div>
<div id="results" class="panel"></div>
<div class="large-12 columns">
......@@ -45,6 +56,18 @@
#uploadThumbnail { display: none; }
#existentsAttachments {
float: left;
width: 100%;
}
#existentsAttachments dl { float: left;
width: 100%;
height: 50px; }
#existentsAttachments dl dd, dt { float: left; }
#existentsAttachments dl dt { margin-right: 10px; }
.drop-zone > #selectFiles{
padding-top: 10px;
font-family: 'Roboto-Ultra-Bold', sans-serif;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment