Skip to content

Commit

Permalink
Update pages/app/views/refinery/admin/pages/_form_advanced_options.ht…
Browse files Browse the repository at this point in the history
…ml.erb
  • Loading branch information
xyz authored and ugisozols committed Apr 10, 2012
1 parent 7f98772 commit 5a2d757
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
<%= f.label :layout_template, t('.layout_template') %>
<%= refinery_help_tag t('.layout_template_help') %>
</span>
<%= f.select(:layout_template, @valid_layout_templates) %>
<% if @page.parent_id? %>
<%= f.select(:layout_template, @valid_layout_templates, {:selected => @page.parent.layout_template}) %>
<% else %>
<%= f.select(:layout_template, @valid_layout_templates) %>
<% end %>
</div>
<% end %>
<% if Refinery::Pages.use_view_templates %>
Expand All @@ -36,7 +40,11 @@
<%= f.label :view_template, t('.view_template') %>
<%= refinery_help_tag t('.view_template_help') %>
</span>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}) %>
<% if @page.parent_id? %>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}, {:selected => @page.parent.view_template } %>
<% else %>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}) %>
<% end %>
</div>
<% end %>

Expand Down

0 comments on commit 5a2d757

Please sign in to comment.