<%= stylesheet_link_tag "admin/default_widget_setting" %> <%= form_for @part, :url => admin_page_part_path(@part),:html=>{:class=>"clear form-horizontal edit_page_part"} do |f| %> <% LIST[:page_part_kinds].each do |kind| %> <%= label_tag '',:class=>'checkbox inline' do %> <%= f.radio_button :kind, kind, :class => 'part_kind' %> <%= t(kind, :scope => 'page_part_kinds') %> <% end %> <% 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 %> <div class="form-actions form-fixed pagination-right"> <%= f.submit t(:update_),:class=>"btn btn-primary" %> <%= link_back("btn") %> </div> <% end %> <%=javascript_include_tag "inc/update_cates_and_tags.js" %> <%= javascript_include_tag "inc/page_widget_edit_interface.js" %>