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