Sha256: eaa273f990e68b68a3106ea299d63e476ab22b80e021ffcb83916763dbc31862
Contents?: true
Size: 849 Bytes
Versions: 17
Compression:
Stored size: 849 Bytes
Contents
<% if @block.class == Cms::Portlet %> <% page_title "Content Library / Select Portlet Type" %> <% Cms::Portlet.types.each do |portlet_type| %> <div style="margin-bottom: 20px;"> <% link_params = {:type => portlet_type.underscore} unless params[:portlet].blank? link_params["#{portlet_type.underscore}[connect_to_page_id]"] = params[:portlet][:connect_to_page_id] link_params["#{portlet_type.underscore}[connect_to_container]"] = params[:portlet][:connect_to_container] end %> <%= link_to h(portlet_type.titleize), new_portlet_path(link_params) %> </div> <% end %> <% @hide_buttons = true %> <% else %> <%= hidden_field_tag :type, @block.class.name.underscore, :id => "portlet_type_field" %> <%= render :partial => @block.class.form, :locals => {:f => f} %> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems