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
@@ -0,0 +1,32 @@
|
||||
<%= f.error_messages %>
|
||||
<%= f.hidden_field :parent_item_name %>
|
||||
|
||||
<p>
|
||||
<%= f.label :name, "Name" %>
|
||||
<%= f.text_field :name, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :title, "Title en" %>
|
||||
<%= f.text_field :title_en, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :layout_name, "Layout Name" %>
|
||||
<%= f.text_field :layout_name, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :title, "Title zh_tw" %>
|
||||
<%= f.text_field :title_zh_tw, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :is_published, "Is Published" %>
|
||||
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :engine_name, "Choose Engine" %>
|
||||
<%= f.text_field :engine_name %>
|
||||
</p>
|
||||
@@ -0,0 +1,10 @@
|
||||
<h1>Editing pages</h1>
|
||||
|
||||
<% form_for @component, :url => admin_component_path(@component) do |f| %>
|
||||
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Update' %>
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -0,0 +1,11 @@
|
||||
<h1><%= t(:new_component, :scope => :admin) %></h1>
|
||||
|
||||
<% form_for @component, :url => admin_components_path do |f| %>
|
||||
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
|
||||
<p>
|
||||
<%= f.submit 'Create' %>
|
||||
</p>
|
||||
|
||||
<% end %>
|
||||
Reference in new issue
Block a user