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

Version Path
browsercms-3.5.7 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.6 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.5 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.4 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.3 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.2 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.1 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.0 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.0.rc3 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.0.rc2 app/views/portlets/portlets/_form.html.erb
browsercms-3.5.0.rc1 app/views/portlets/portlets/_form.html.erb
browsercms-3.4.2 app/views/portlets/portlets/_form.html.erb
browsercms-3.4.2.rc1 app/views/portlets/portlets/_form.html.erb
browsercms-3.4.1 app/views/portlets/portlets/_form.html.erb
browsercms-3.4.0 app/views/portlets/portlets/_form.html.erb
browsercms-3.4.0.rc2 app/views/portlets/portlets/_form.html.erb
browsercms-3.4.0.rc1 app/views/portlets/portlets/_form.html.erb