This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-02-16 04:18:27 +00:00
|
|
|
<%= form_for @part, :url => admin_page_part_path(@part) do |f| %>
|
|
|
|
|
|
|
|
<% LIST[:page_part_kinds].each do |kind| %>
|
|
|
|
<%= f.radio_button :kind, kind, :class => 'part_kind' %>
|
2012-09-24 00:36:29 +00:00
|
|
|
<%= t(kind, :scope => 'page_part_kinds') %>
|
2012-02-16 04:18:27 +00:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% LIST[:page_part_kinds].each do |kind| %>
|
|
|
|
<div id='<%= "part_#{kind}" %>' class='part_kind_partial' style="display:<%= kind.eql?(@part.kind) ? 'block' : 'none' %>">
|
|
|
|
<%= render :partial => kind, :locals => {:f => f} %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<p>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.submit t(:update_) %> <%= link_back %>
|
2012-02-16 04:18:27 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|