<%= f.fields_for :title_translations do |f| %> <% @site_valid_locales.each do |locale| %>
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}",:class=>"control-label" %>
<%= f.text_field locale, :value => (@part.title_translations[locale] rescue nil),:size=>30 %>
<% end %> <% end %>
<%= f.select :module_app, options_from_collection_for_select(@module_apps, :id, :title, :selected => (@module_app.id rescue nil)), {:include_blank => true }, {:rel => admin_page_parts_path,:id=>"page_module_app_id"} %>
<%= f.select :widget_path, @module_app ? @module_app.widgets.collect{|k,v| [k.humanize, k]} : [], {}, { :selected => @part.widget_path, :rel => admin_page_parts_path } %>
<%= render :partial => 'widget_data_source_category' ,:locals=>{:object=>@part}%>
<%= render :partial => 'widget_data_source_tag' ,:locals=>{:object=>@part} %>
<%= render :partial => 'widget_setting' ,:locals=>{:f=>f,:object=>@part} %>