Sha256: 7844b2afd1561b902156497865ddfe4d4c9ce005a15abb237e1262624fa2e2cb

Contents?: true

Size: 711 Bytes

Versions: 15

Compression:

Stored size: 711 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 %>" >
    <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

15 entries across 15 versions & 1 rubygems

Version Path
camaleon_cms-2.4.3.5 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.3.4 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.3.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.3.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.3.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.4.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.3.7.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.3.7.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.3.7 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.3.6 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.3.5 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.3.4 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb