2013-01-16 06:07:09 +00:00
|
|
|
<div class="style_switch control-group">
|
|
|
|
<label class="control-label">
|
|
|
|
<%= t("default_widget.NoName") %>
|
|
|
|
</label>
|
|
|
|
<div id="widget_field" class="well clear controls">
|
2013-01-10 10:00:58 +00:00
|
|
|
|
|
|
|
|
2013-01-14 10:49:23 +00:00
|
|
|
<div class="rows clear">
|
|
|
|
<span class="span4">
|
|
|
|
<label for="widget_field"><%= t "default_widget.fields_order" %></label>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="span3">
|
|
|
|
<label for="widget_field"><%= t "default_widget.fields_style" %></label>
|
|
|
|
</span>
|
|
|
|
<span class="span5"></span>
|
|
|
|
</div>
|
2013-01-10 10:00:58 +00:00
|
|
|
|
|
|
|
<% @module_app.widget_fields.each_with_index do |widget_field, i| %>
|
2013-01-14 10:49:23 +00:00
|
|
|
<div class="rows clear">
|
|
|
|
<span class="span4">
|
|
|
|
<%= i+1 %>
|
|
|
|
<%= select_tag "page_part[widget_field][]", widget_field_options(i), :include_blank => true %>
|
|
|
|
</span>
|
|
|
|
<span class="span3">
|
|
|
|
<%= select_tag "page_part[widget_field_type][]", widget_fiield_type_options(i), :include_blank => true %> <br />
|
|
|
|
</span>
|
|
|
|
<span class="span5"></span>
|
2013-01-16 06:07:09 +00:00
|
|
|
</div><br/>
|
2013-01-10 10:00:58 +00:00
|
|
|
<% end %>
|
2013-01-14 10:49:23 +00:00
|
|
|
<br/>
|
|
|
|
<div class="rows clear">
|
|
|
|
<span class="span4"><%= label_tag t("default_widget.widget_data_count") %></span>
|
|
|
|
</div>
|
|
|
|
<div class="rows clear">
|
|
|
|
<span class="span4"><%= text_field_tag :widget_data_count,@part.widget_data_count %></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-01-16 06:07:09 +00:00
|
|
|
</div>
|