Sha256: 83650b3d14fc857a950ac889171dc6cfc55debba003656eb6daf6c0821313087

Contents?: true

Size: 725 Bytes

Versions: 62

Compression:

Stored size: 725 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.decorate.the_title %>">
        <% 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

62 entries across 62 versions & 2 rubygems

Version Path
camaleon_cms-2.8.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.8.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.8.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.8.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.7.5 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.7.4 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.7.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.7.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.7.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.7.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.6.4 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.6.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.6.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.6.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.6.0.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.6.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.5.3.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.5.3 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms-2.5.2 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb
camaleon_cms_rails6-2.5.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb