2013-01-10 10:00:58 +00:00
|
|
|
<div>
|
|
|
|
<%= f.fields_for :title_translations do |f| %>
|
|
|
|
<% @site_valid_locales.each do |locale| %>
|
|
|
|
<p>
|
|
|
|
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}" %>
|
|
|
|
<%= f.text_field locale, :value => (@part.title_translations[locale] rescue nil),:size=>30 %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2012-05-13 14:35:00 +00:00
|
|
|
|
2013-01-10 10:00:58 +00:00
|
|
|
<p id="module_app_list">
|
|
|
|
<label for="age_part[module_app]"><%= t "default_widget.select_module_app" %></label>
|
|
|
|
<%= f.select :module_app, options_from_collection_for_select(@module_apps, :id, :title, :selected => @module_app.id), {}, {:rel => admin_page_parts_path} %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p id="widget_list">
|
|
|
|
<label for="age_part[widget_path]"><%= t "default_widget.select_widget_path" %></label>
|
|
|
|
<%= f.select :widget_path, @module_app.widgets.collect{|k,v| [k.humanize, k]}, {}, { :selected => @part.widget_path, :rel => admin_page_parts_path } %>
|
|
|
|
</p>
|
2012-02-16 04:18:27 +00:00
|
|
|
|
2013-01-10 10:00:58 +00:00
|
|
|
<div id="widget_option">
|
|
|
|
<div id="widget_data_source_category" class="well">
|
|
|
|
<%= render :partial => 'widget_data_source_category' %>
|
|
|
|
</div>
|
|
|
|
<div id="widget_data_source_tag" class="well">
|
|
|
|
<%= render :partial => 'widget_data_source_tag' %>
|
|
|
|
</div>
|
2012-07-16 08:13:38 +00:00
|
|
|
|
2013-01-10 10:00:58 +00:00
|
|
|
|
|
|
|
</div>
|
2012-02-28 06:08:57 +00:00
|
|
|
|
2013-01-10 10:00:58 +00:00
|
|
|
<div id="widget_setting">
|
2013-01-14 10:49:23 +00:00
|
|
|
<%= render :partial => 'widget_setting' ,:locals=>{:f=>f} %>
|
2013-01-10 10:00:58 +00:00
|
|
|
</div>
|
|
|
|
<!-- <span id="widget_options">
|
2012-02-28 06:08:57 +00:00
|
|
|
|
2013-01-10 10:00:58 +00:00
|
|
|
</span> -->
|
2012-07-16 08:13:38 +00:00
|
|
|
|