<%= f.fields_for :sub_parts do |sub| %> <%#= t("page_part_kinds.public_r_tag") %> <%#= sub.radio_button :kind, "public_r_tag", class: "hide" %> <% end %>
<%= t(:select_one_function) %>
<% I18n.available_locales.each_with_index do |locale, i| %>
<%= f.fields_for :sub_parts do |sub| %> <%= sub.fields_for :content_translations do |f| %> <%= f.text_area locale, class: "ckeditor input-block-level", value: (@part.content_translations[locale] rescue nil) %> <% end %> <% end %>
<% end %>
<%= f.label :module_app_id, t(:module), class: "control-label muted" %>
<%= f.fields_for :sub_parts do |sub| %> <%= sub.select(:module, @modules.map{|m| [m.title,m.key]},{:include_blank => true}, "class" => "input-xlarge change module_name") %> <% end %>
<%= f.label :widget_data_count, t(:widget_data_count), class: "control-label muted" %>
<%#= f.select :widget_data_count, options_for_select(@data_count, @part.widget_data_count), {}, class: "input-mini", id: "page_count" %>
<%= f.submit t(:update_), class: "btn btn-primary" %>