Let page edit from can select layout
This commit is contained in:
1 parent
12de9d2514
commit
8da5323fd0
8 files changed
+24
-4
No files matched your search
@@ -13,7 +13,7 @@
|
||||
|
||||
<p>
|
||||
<%= f.label :layout_name, "Layout Name" %>
|
||||
<%= f.text_field :layout_name, :class => 'text' %>
|
||||
<%= f.select :layout_name, Layout.all.map{ |l| [l.description, l.name] } %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
<%= f.text_field :name, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :description, "Description" %>
|
||||
<%= f.text_field :description, :class => 'text' %>
|
||||
</p>
|
||||
|
||||
<p id="content_zh_tw_block">
|
||||
<%= f.label "content_zh_tw", "Content (zh_tw)" %>
|
||||
<%= f.text_area "content_zh_tw", :size => '100x30' %>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<% @layouts.each do |layout| %>
|
||||
<tr>
|
||||
<td><%= layout.name %></td>
|
||||
<td><%= layout.description %></td>
|
||||
<td><%= link_to t(:edit), edit_admin_layout_path(layout) %></td>
|
||||
<td><%= link_to t(:delete), admin_layout_path(layout), :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<p>
|
||||
<%= f.label :layout_name, "Layout Name" %>
|
||||
<%= f.text_field :layout_name, :class => 'text' %>
|
||||
<%= f.select :layout_name, Layout.all.map{ |l| [l.description, l.name] } %>
|
||||
</p>
|
||||
|
||||
<p id="content_zh_tw_block">
|
||||
|
||||
Reference in new issue
Block a user