2013-01-14 10:49:23 +00:00
|
|
|
<%= stylesheet_link_tag "admin/default_widget_setting" %>
|
|
|
|
|
2013-01-16 06:07:09 +00:00
|
|
|
<%= form_for @part, :url => admin_page_part_path(@part),:html=>{:class=>"clear form-horizontal edit_page_part"} do |f| %>
|
2012-02-16 04:18:27 +00:00
|
|
|
<% LIST[:page_part_kinds].each do |kind| %>
|
2013-01-23 10:51:18 +00:00
|
|
|
<%= label_tag '',:class=>'checkbox inline' do %>
|
2012-02-16 04:18:27 +00:00
|
|
|
<%= f.radio_button :kind, kind, :class => 'part_kind' %>
|
2012-09-24 00:36:29 +00:00
|
|
|
<%= t(kind, :scope => 'page_part_kinds') %>
|
2013-01-23 10:51:18 +00:00
|
|
|
<% end %>
|
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 %>
|
|
|
|
|
2013-01-16 06:07:09 +00:00
|
|
|
<div class="form-actions form-fixed pagination-right">
|
|
|
|
<%= f.submit t(:update_),:class=>"btn btn-primary" %>
|
|
|
|
<%= link_back("btn") %>
|
|
|
|
|
|
|
|
</div>
|
2012-12-28 02:12:17 +00:00
|
|
|
<% end %>
|
2013-04-03 09:49:59 +00:00
|
|
|
|
|
|
|
<%=javascript_include_tag "inc/update_cates_and_tags.js" %>
|
|
|
|
<%= javascript_include_tag "inc/page_widget_edit_interface.js" %>
|