Add widget cards to homepage

This commit is contained in:
rgarcia
2018-05-22 19:56:40 +02:00
committed by decabeza
parent 85c08da7a6
commit 664e77305c
21 changed files with 412 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
<%= form_for [:admin, @card] do |f| %>
<%= f.text_field :title %>
<%= f.text_area :description %>
<%= f.text_field :link_text %>
<%= f.text_field :link_url %>
<%= f.hidden_field :header, value: @card.header? %>
<div class="images small-12 column">
<%= render 'images/nested_image', imageable: @card, f: f %>
</div>
<%= f.submit %>
<% end %>

View File

@@ -0,0 +1,2 @@
Edit
<%= render "form" %>

View File

@@ -0,0 +1,2 @@
New
<%= render "form" %>