Orbit/app/views/admin/page_parts/_custom_widget_setting.html...

20 lines
994 B
Plaintext
Raw Normal View History

2013-01-16 06:07:09 +00:00
<div class="style_switch control-group">
<label class="control-label">
<%= t("default_widget.select_widget_style") %>
</label>
<div class="controls">
2013-04-01 09:06:10 +00:00
<% if @selected[:module_app].nil? || @selected[:module_app].widgets.nil? || (@selected[:module_app].widgets[@selected[:app_frontend_url]].blank? rescue true) || @selected[:module_app].widgets[@selected[:app_frontend_url]]["style"].nil? %>
2013-01-16 06:07:09 +00:00
<%= t("default_widget.no_support_setting")%>
<%else%>
2013-04-01 09:06:10 +00:00
<%= select('page_part', 'widget_style', @selected[:module_app].widgets[@selected[:app_frontend_url]]["style"]) %>
2013-01-16 06:07:09 +00:00
<% end %>
</div>
</div>
2013-04-01 09:06:10 +00:00
<% if(@selected[:module_app] && @selected[:module_app].widget_options(@selected[:app_frontend_url])) %>
2013-01-16 06:07:09 +00:00
<div class="style_switch control-group">
<label class="control-label"><%= t("default_widget.select_widget_ext_option") %></label>
<div class="controls well" >
<%= render :partial=> "widget_ext_options" %>
</div>
</div>
<% end %>