<% 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 Harvesting Tags Staff Tags Staff Like DNRModeratorSuppressed Status
<% 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"} %> <%= image.service_tags.select{|tag| @harvestable_tag_ids.include? tag.id}.map{|tag| tag.name}.join(' | ') %> <% if defined? @tags %> <%= f.input :tags, :label => false, :as => :select, :collection => image.available_staff_tags(@tags), :input_html => {:multiple => true, :class => "chzn-select", :'data-placeholder' => 'Select Tag', :style => "width:190px" }%> <% else %> <% if image.staff_tags.length > 0 %>

<%= image.staff_tags.map{|tag| tag.name}.join(' | ') %>

<% end %> <%= link_to('Edit Staff Tags', update_image_admin_lentil_image_path(image)) %> <% end %>
<%= 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 :suppressed, :label => "Suppressed", :wrapper_html => { :class => "moderation_checkbox" } %> <%= 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 %>