This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/app/views/photos/new.html.erb

18 lines
752 B
Plaintext
Raw Permalink Normal View History

2008-06-27 00:13:15 -04:00
<% throw_content :for_sidebar do -%>
<% if @photo.album -%><a href="<%= url(:album, :id => @photo.album.name.gsub(/ /, '_')) -%>"><img src="/images/camera-photo.png" /> Back to <%= @photo.album.name -%></a><br /><% end %>
<% end -%>
<%= error_messages_for :photo %>
2008-10-01 02:57:49 -04:00
<%= form_for :photo, :action => url(:photo), :multipart => true, :onsubmit => "$('indicator').style.display = 'inline';" do %>
2008-06-27 00:13:15 -04:00
<fieldset>
<legend>Upload a photo</legend>
2008-10-01 02:57:49 -04:00
<p>Album: <%= select :album_id, :collection => Album.for_select, :selected => (@photo.album.name rescue nil) -%></p>
<p>File: <%= file_field :file -%></p>
2008-06-27 00:13:15 -04:00
</fieldset>
<p>
2008-10-01 02:57:49 -04:00
<%= submit 'Create' %> <img src='/images/ajax-loader.gif' id='indicator' style='display:none;' />
2008-06-27 00:13:15 -04:00
</p>
2008-10-01 02:57:49 -04:00
<% end =%>