% if photographable.new_record? %>
<%= t('fullstack.admin.save_this_document_before', :default => "You should save this document before") %>
<% else %>
<%= link_to "javascript:void(0);", :class => "btn btn-success", :"data-toggle" => "collapse", :"data-target" => "#photo-uploader" do %>
<%= t('fullstack.admin.upload', :default => "Upload") %>
<% end %>
<% photographable.photos.order('created_at DESC').each do |photo| %>
<%= render :partial => "admin/photos/photo", :locals => {:photo => photo} %>
<% end %>
<% end %>
<% content_for :javascripts do -%>
<% end -%>