Add widget cards to homepage
This commit is contained in:
11
app/views/admin/widget/cards/_form.html.erb
Normal file
11
app/views/admin/widget/cards/_form.html.erb
Normal 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 %>
|
||||
2
app/views/admin/widget/cards/edit.html.erb
Normal file
2
app/views/admin/widget/cards/edit.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
Edit
|
||||
<%= render "form" %>
|
||||
2
app/views/admin/widget/cards/new.html.erb
Normal file
2
app/views/admin/widget/cards/new.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
New
|
||||
<%= render "form" %>
|
||||
Reference in New Issue
Block a user