Add form fields to set the colours and the sections for the banner

Add migrations to store the information in the database
This commit is contained in:
iagirre
2018-01-09 17:30:11 +01:00
committed by Angel Perez
parent 3e4d095e6f
commit 6d6da8affc
11 changed files with 106 additions and 12 deletions

View File

@@ -37,11 +37,11 @@
</tr>
<tr>
<td colspan="3">
<div class="<%= banner.style %>">
<div class="<%= banner.style %>" style="background-color:<%= banner.background_color %>">
<div class="<%= banner.image %>">
<%= link_to banner.target_url do %>
<h2><%= banner.title %></h2>
<h3><%= banner.description %></h3>
<h2 style="color:<%= banner.font_color %>"><%= banner.title %></h2>
<h3 style="color:<%= banner.font_color %>"><%= banner.description %></h3>
<% end %>
</div>
</div>
@@ -51,4 +51,4 @@
</table>
<% end %>
<%= paginate @banners %>
<%= paginate @banners %>