This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/page_parts/_module_widget.html.erb

39 lines
1.2 KiB
Plaintext
Raw Normal View History

<div>
<%= f.fields_for :title, @part.title do |f| %>
<% @site_valid_locales.each do |locale| %>
<p>
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
<%= f.text_field locale %>
</p>
<% end %>
<% end %>
</div>
<span id='module_app_list'>
<%= f.select :module_app, options_from_collection_for_select(@module_apps, :id, :title, :selected => @module_app.id), {}, {:rel => admin_page_parts_path} %>
</span>
<span id='widget_list'>
<%= f.select :widget_path, @module_app.widgets.collect{|widget| [widget.humanize, widget]}, :selected => @part.widget_path %>
2012-07-16 08:13:38 +00:00
<%#= f.select :widget_path, @module_app.widgets.collect{|k,v| k}, :selected => @part.widget_path %>
</span>
<span id='widget_style_list'>
<%= @module_app.widget_indexs.collect { |k,v| v } %>
<%= f.select :widget_style, @module_app.widget_styles.each, :selected => @part.widget_style, :include_blank => 'None' %>
2012-02-28 06:08:57 +00:00
</span>
:
2012-02-28 06:08:57 +00:00
<span id="widget_category">
2012-02-28 14:00:05 +00:00
<%= render 'widget_categories' %>
</span>
2012-05-09 16:27:12 +00:00
<%= t :or_lower %>
<span id="widget_tag">
<%= render 'widget_tags' %>
2012-07-16 08:13:38 +00:00
</span>
<div id="widget_data_count">
<%= f.label :widget_data_count %>
<%= f.text_field :widget_data_count %>
</div>