<% throw_content :for_sidebar do -%> <% if @photo.album -%> Back to <%= @photo.album.name -%>
<% end %> <% end -%> <%= error_messages_for :photo %> <% form_for :photo, :action => url(:photo), :multipart => true, :onsubmit => "$('indicator').style.display = 'inline';" do %>
Upload a photo

Album: <%= select_control 'album_id', :collection => Album.for_select, :selected => (@photo.album.name rescue nil) -%>

File: <%= file_control 'file' -%>

<%= submit_button 'Create' %>

<% end -%>