Skip to content
Snippets Groups Projects
Commit 39fbc775 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Bookmark action button, fix align footer

parent 1371911b
No related branches found
No related tags found
No related merge requests found
......@@ -504,6 +504,12 @@ header {
padding-top: 50px;
}
}
.center-footer{
margin-left: auto;
margin-right: auto;
background: green;
width: 980px;
}
.logo-footer{
width: 18%;
......
......@@ -230,6 +230,16 @@ $checked_icon: 'icons/checked.png';
margin-top: 5px;
}
}
.bookmark{
i{
padding-top: 3px;
color: #818080;
width: 20px;
height: 20px;
margin-bottom: 5px;
margin-top: 5px;
}
}
.download{
line-height: 35px;
......
......@@ -31,7 +31,7 @@ class InstitutionsController < ApplicationController
respond_to do |format|
if Institution.save @institution
format.html { redirect_to @institution, notice: 'Institution was successfully created.' }
format.html { redirect_to @institution, notice: t('activerecord.attributes.institution.create.notice.successfully_created') }
else
format.html { render :new }
end
......@@ -43,7 +43,7 @@ class InstitutionsController < ApplicationController
def update
respond_to do |format|
if Institution.update(institution_params)
format.html { redirect_to @learning_object, notice: 'Institution was successfully updated.' }
format.html { redirect_to @learning_object, notice: t('activerecord.attributes.institution.update.notice.successfully_updated') }
else
format.html { render :edit }
end
......@@ -56,7 +56,7 @@ class InstitutionsController < ApplicationController
Institution.destroy @institution
respond_to do |format|
format.html { redirect_to institutions_url, notice: 'Learning object was successfully destroyed.' }
format.html { redirect_to institutions_url, notice: t('activerecord.attributes.institution.destroy.notice.successfully_destroy') }
end
end
......
......@@ -64,7 +64,7 @@ class LearningObjectsController < ApplicationController
LearningObject.destroy @learning_object
respond_to do |format|
format.html { redirect_to learning_objects_url, notice: 'Learning object was successfully destroyed.' }
format.html { redirect_to learning_objects_url, notice: 'Objeto educacional excluído com sucesso.' }
end
end
......
......@@ -79,6 +79,11 @@
<%= image_tag "icons/btn_add.png", alt: "Adicionar à coleção" %>
</a>
</div>
<div class="action">
<%= link_to bookmark_add_path(id: @learning_object.id, type: @learning_object.class.to_s), class:"btn btn-primary bookmark", title: "Adicionar aos favoritos", method: :post, remote: true do %>
<i class="fa fa-bookmark"></i>
<%end%>
</div>
<div class="action">
<%= render 'complaints/complaints_button' %>
</div>
......
......@@ -2,7 +2,7 @@
<% if @carousel.errors.any? %>
<div class="ls-alert-danger">
<h2><%= pluralize(@carousel.errors.count, "erro") %> <%= "happened".pluralize(@carousel.errors.count) %>:</h2>
<h2><%= pluralize(@carousel.errors.count, "erro") %> <%= "ocorreu".pluralize(@carousel.errors.count) %>:</h2>
<ul>
<% @carousel.errors.full_messages.each do |message| %>
<li><%= message %></li>
......
......@@ -2,7 +2,7 @@
<% if @complaint_reason.errors.any? %>
<div class="ls-alert-danger">
<h2><%= pluralize(@complaint_reason.errors.count, "erro") %> <%= "happened".pluralize(@complaint_reason.errors.count) %>:</h2>
<h2><%= pluralize(@complaint_reason.errors.count, "erro") %> <%= "ocorreu".pluralize(@complaint_reason.errors.count) %>:</h2>
<ul>
<% @complaint_reason.errors.full_messages.each do |message| %>
<li><%= message %></li>
......
<%= form_for([:management, @mime_type]) do |f| %>
<% if @mime_type.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@mime_type.errors.count, "error") %> prohibited this management_mime_type from being saved:</h2>
<h2><%= pluralize(@mime_type.errors.count, "erro") %> impedem este mime_type de ser salvo:</h2>
<ul>
<% @mime_type.errors.full_messages.each do |message| %>
......
<%= form_for([:management ,@object_type]) do |f| %>
<% if @object_type.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@object_type.errors.count, "error") %> prohibited this management_object_type from being saved:</h2>
<h2><%= pluralize(@object_type.errors.count, "error") %> impedem este tipo de objeto de ser salvo:</h2>
<ul>
<% @object_type.errors.full_messages.each do |message| %>
......@@ -47,4 +47,4 @@
placeholder: "MimeTypes",
width: '100%'
});
</script>
\ No newline at end of file
</script>
......@@ -15,6 +15,7 @@
<div class="main">
<div class="container container-height">
<div class="row top-padding">
<div class="center-footer">
<div class="logo-footer col-md-2">
<%= link_to 'http://www.brasil.gov.br/' do %>
<%= image_tag 'logo_brasil.png',class:'logos-footer' %>
......@@ -40,6 +41,7 @@
<%= image_tag 'logo_c3.png', class:'logos-footer c3sl-size'%>
<% end %>
</div>
</div>
</div>
</div>
......
......@@ -28,6 +28,7 @@
<div class="main">
<div class="container container-height">
<div class="row top-padding">
<div class="center-footer">
<div class="logo-footer col-md-2">
<%= link_to 'http://www.brasil.gov.br/' do %>
<%= image_tag 'logo_brasil.png',class:'logos-footer' %>
......@@ -53,6 +54,7 @@
<%= image_tag 'logo_c3.png', class:'logos-footer c3sl-size'%>
<% end %>
</div>
</div>
</div>
</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