Skip to content
Snippets Groups Projects
Commit 84341df3 authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

fixing upload pages


Signed-off-by: default avatarman13 <man13@inf.ufpr.br>
parent dde4d3d2
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,16 @@
<div id="current_files" class="panel">
<% @learning_object.attachments.each do |attachment| %>
<div class="file-container">
<div class="fileName"><%= "#{attachment.name} (#{attachment.mime_type})" %></div>
<div class="deleteFile"><i class="fa fa-trash fa-1"></i></div>
</div>
<table class="file-container">
<tr>
<td>
<div class="deleteFile"><i class="fa fa-trash fa-1"></i></div>
</td>
<td>
<div class="fileName"><%= "#{attachment.name} (#{attachment.mime_type})" %></div>
</td>
</tr>
</table>
<% end %>
</div>
......
......@@ -29,10 +29,14 @@
<h3 class="head text-center">Envie uma foto de destaque para <strong><%= @learning_object.name %></strong></h3>
<%= form_for @learning_object, url: wizard_path, method: :put, html: { multipart: true } do |f| %>
<%= f.file_field :thumbnail %>
<%= f.file_field :thumbnail, required: true %>
<button type="submit" class="btn-submit btn btn-success btn-outline-rounded green">
Enviar <i style="margin-left:10px;" class="fa fa-paper-plane"></i></button>
Enviar <i style="margin-left:10px;" class="fa fa-paper-plane"></i>
</button>
<%= link_to next_wizard_path do %>
<button type="button" class="btn-submit btn btn-warning btn-outline-rounded yellow">Pular etapa</button>
<% end %>
<%= link_to :back do %>
<button type="button" class="btn-submit btn btn-danger btn-outline-rounded red">Voltar</button>
<% end %>
......
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