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

adding feedback messages for user

parent 26924e8d
No related branches found
No related tags found
No related merge requests found
......@@ -39,15 +39,14 @@ class LearningObjectsController < ApplicationController
respond_to do |format|
if publisher.create_draft @draft
# go to file submission page
format.html { redirect_to upload_learning_object_path(id: @draft.id), notice: 'Learning object was successfully created.' }
format.html { redirect_to upload_learning_object_path(id: @draft.id), notice: 'Seu objeto foi criado! Para que ele seja publicado é necessário enviar o arquivo.' }
else
format.html { redirect_to new_learning_object_path, notice: 'Was not possible to create a learning object.' }
format.html { redirect_to new_learning_object_path, notice: 'Não foi possível criar o objeto.' }
end
end
end
def upload
end
# PATCH/PUT /learning_objects/1
......
<div class="row">
<div class="small-12 columns">
<fieldset>
<legend>Enviar video</legend>
<legend>Enviar arquivo do objeto educacional</legend>
<div class="small-12 columns">
<div class="file">
<a href="#" id="browseButton" class="expand button">Selecionar o vídeo</a>
<a href="#" id="browseButton" class="expand button">Selecionar o arquivo</a>
</div>
<div class="controls" style="display: none">
<a href="#" id="continueButton" class="success radius small button">Continuar</a>
......@@ -15,12 +15,9 @@
<span class="meter text-right" style="width: 0%; font-weight: bold;"></span>
</div>
<div class="row">
<label id="alertSuccess" class="text-center" style="display: none">Vídeo enviado com sucesso!</label>
<div class="links" style="display: none">
<hr/>
<%= link_to "Voltar", :back, {class: "success radius expand button"} %>
</div>
<label id="alertSuccess" class="text-center" style="display: none">
Seu arquivo foi enviado e está sendo processado, em alguns minutos ele será publicado!
</label>
</div>
</fieldset>
</div>
......
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