Add Item, Page, Component, Link inheritanced models
This commit is contained in:
1 parent
cd21cadfe7
commit
e1440a79d8
38 files changed
+417
-175
No files matched your search
@@ -1,3 +1,6 @@
|
||||
<%= f.error_messages %>
|
||||
<%= f.hidden_field :parent_item_name %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name, "Name" %>
|
||||
<%= f.text_field :name, :class => 'text' %>
|
||||
|
||||
@@ -8,6 +8,4 @@
|
||||
<p>
|
||||
<%= f.submit 'Update' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', admin_snippets_path %>
|
||||
<% end %>
|
||||
@@ -1,18 +0,0 @@
|
||||
<h1>Listing snippets</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
</tr>
|
||||
|
||||
<% @snippets.each do |snippet| %>
|
||||
<tr>
|
||||
<td><%= snippet.name %></td>
|
||||
<td><%= link_to 'Edit', edit_admin_snippet_path(snippet) %></td>
|
||||
<td><%= link_to 'Destroy', admin_snippet_path(snippet), :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New snippets', new_admin_snippet_path, :class => 'button positive' %>
|
||||
@@ -8,6 +8,4 @@
|
||||
<p>
|
||||
<%= f.submit 'Create' %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Back', admin_snippets_path %>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user