Number: |
Display <%= text_field :page_objects, "#{key}-max-item-count", placeholder: options[:item_count].to_s, class: 'form', style: 'margin: 0; width: 20px;' %> items,
but skip the first <%= text_field :page_objects, "#{key}-item-offset", placeholder: (options[:item_offset] || 0).to_s, class: 'form', style: 'margin: 0; width: 20px;' %>
<%= check_box :page_objects, "#{key}-use-pagination" %>
<%= check_box :page_objects, "#{key}-use-randomization" %>
<%= text_field(:page_objects, "#{key}-random-pool-size", class: 'form', style: 'margin: 0; width: 20px') %> items
|
Sort Order: |
First by
<%= select(:page_objects, "#{key}-sort-first-field",
[ [ 'Date', 'article_date' ], [ 'Position', 'position' ],
[ 'Title', 'title' ] ], {},
:class => 'form', :style => 'margin: 0; border: 1px solid gray;') %>
<%= select(:page_objects, "#{key}-sort-first-direction",
[ 'asc', 'desc' ], {},
:class => 'form', :style => 'margin: 0; border: 1px solid gray;') %>
then by
<%= select(:page_objects, "#{key}-sort-second-field",
[ [ 'Date', 'article_date' ], [ 'Position', 'position' ],
[ 'Title', 'title' ] ], {},
:class => 'form', :style => 'margin: 0; border: 1px solid gray;') %>
<%= select(:page_objects, "#{key}-sort-second-direction",
[ 'asc', 'desc' ], {},
:class => 'form', :style => 'margin: 0; border: 1px solid gray;') %>
|
Dates: |
<%-
@page_objects["#{key}-date-range"] ||= 'all'
-%>
<%= radio_button :page_objects, "#{key}-date-range", 'all' %>
<%= radio_button :page_objects, "#{key}-date-range", 'past' %>
<%= radio_button :page_objects, "#{key}-date-range", 'future' %>
<%= radio_button :page_objects, "#{key}-date-range", 'custom' %>
<%= date_picker :page_objects, "#{key}-date-range-custom-start", default_value: (@page_objects["#{key}-date-range-custom-start"] || Time.now), start_date: Time.utc(2006, 1, 1), end_date: 5.years.from_now %> –
<%= date_picker :page_objects, "#{key}-date-range-custom-end", default_value: (@page_objects["#{key}-date-range-custom-end"] || Time.now), start_date: Time.utc(2006, 1, 1), end_date: 5.years.from_now %>
|