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