Sha256: 4ed715624d1440a42adc8ee99f2c97323d5cb5bcbd0fc05f2f52447a19211745

Contents?: true

Size: 857 Bytes

Versions: 16

Compression:

Stored size: 857 Bytes

Contents

<div class="group-input-fields-content">
  <select name="<%= @field_name %>[<%= @field.slug %>][values][]" class="form-control input-value <%= "required" if @field.options[:required].to_s.to_bool %>" <%= "readonly" if @field.options[:readonly].present? %> <%= "disabled" if @field.options[:disabled].present? %>>
    <option value=""></option>
    <% if @field.options[:post_types].present? %>
    <% (@field.options[:post_types].include?("all") ? current_site.post_types : current_site.post_types.where(id: @field.options[:post_types])).each do |pt| %>
        <optgroup label="<%= pt.name %>">
        <%
        pt.posts.public_posts.each do |post|
            post = post.decorate
        %>
            <option value="<%= post.id %>"><%= post.the_title %></option>
        <%  end %>
        </optgroup>
    <%  end %>
    <% end %>
  </select>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
camaleon_cms-2.1.2.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.1.2.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.1.1.4 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.1.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.1.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.0.4.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.0.4 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.0.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.0.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.0.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-1.1.0 app/views/admin/settings/custom_fields/fields/posts.html.erb
camaleon_cms-1.0.9 app/views/admin/settings/custom_fields/fields/posts.html.erb
camaleon_cms-1.0.8 app/views/admin/settings/custom_fields/fields/posts.html.erb
camaleon_cms-1.0.7 app/views/admin/settings/custom_fields/fields/posts.html.erb
camaleon_cms-1.0.6 app/views/admin/settings/custom_fields/fields/posts.html.erb
camaleon_cms-1.0.5 app/views/admin/settings/custom_fields/fields/posts.html.erb