<% if action?("moderate_passed")%> <% end %> <% @images.each do |image| %> <%= semantic_fields_for "image[#{image.id}]", image do |f| %> <% if action?("moderate_passed")%> <% end %> <% end -%> <% end -%>
Thumbnail Description Username Service Tags Staff Tags Staff Like DNRModeratorStatus
<% unless image.media_type == "video" %> <%= link_to_large_admin_image(image) %> <% else %> <%= link_to(video_tag(image.video_url, controls: true, size: "250x250"), admin_lentil_image_path(image)) %> <% end %> <%= image.description %> <%= image.user.user_name %> <%= image.service_tags.map{|tag| tag.name}.join(' | ') %> <%= f.input "service_tags", :as => :hidden, :collection => image.service_tags, :wrapper_html => {:style => "list-style: none"} %> <%= f.input :tags, :label => false, :as => :select, :collection => image.available_staff_tags, :input_html => {:multiple => true, :class => "chzn-select", :'data-placeholder' => 'Select Tag', :style => "width:190px" }%> <%= f.input :staff_like, :label => "Staff Like", :wrapper_html => { :class => "moderation_checkbox" } %> <%= f.input :do_not_request_donation, :label => "Don't request donation", :wrapper_html => { :class => "moderation_checkbox" } %><%= image.moderator.email %><%= f.input :state, :label => false, :as => :radio, :collection => Lentil::Image::States, :wrapper_html => { :class => "moderation_radio" } %>
<%= form.input "second_moderation", :as => :hidden, :input_html => {:value => @second_moderation}, :wrapper_html => {:style => "list-style: none"} %>
<%= form.actions %>
<% if params[:action] != "update_image" %> <% end %>