Sha256: bd01a291cd3cae88a1a3b00f0f2a8cd69fc936e342a55c258f5d621fd3ff094b

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

<%
   # Setup that would otherwise be done in Controller#new / #edit
   if @block.content_type.blank?
     @block.content_type = Cms::HtmlBlock.name
   end
   @orderable_attributes = @block.current_content_type.orderable_attributes

   views = {
           list: "List",
           table: "Table",
   }
%>
<% if @block.persisted? %>
    <% content_for :sidebar_after do %>
    <div class='sidebar-block'>
      <h4 class="gray">Custom View</h4>

      <p>Create/edit the following file: app/views/<%= @block.view_as_path %></p>
    </div>
    <% end %>
<% end %>
<%= f.input :name, as: :name %>
<%= f.input :content_type,
            collection: Cms::ContentType.available,
            label_method: :display_name,
            value_method: :name,
            include_blank: false,
            input_html: {'data-role' => "content_type_selector"} %>
<%= f.input :limit, hint: 'Show at most this many items.', placeholder: 'Displays all items if left blank.' %>
<%= render partial: 'cms/content_types/order_field', locals: {f: f, collection: @orderable_attributes} %>
<%= f.input :reverse_order, as: :boolean %>
<%= f.input :view_as, collection: views.invert, include_blank: false %>
<%= f.input :template, as: :template_editor %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.3.3 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.3.2 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.3.1 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.3 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.2 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.1.1 app/views/portlets/list/_form.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/portlets/list/_form.html.erb
browsercms-4.0.0.rc1 app/views/portlets/list/_form.html.erb
browsercms-4.0.0.beta app/views/portlets/list/_form.html.erb