<%= semantic_fields_for "image[#{image.id}]", image do |f| %>
<% 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" } %> |
<% if action?("moderate_passed")%>
<%= image.moderator.email %> |
<% end %>
<%= f.input :state, :label => false, :as => :radio, :collection => Lentil::Image::States, :wrapper_html => { :class => "moderation_radio" } %> |
<% end -%>
<% end -%>