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:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user