This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2008-01-31 23:46:06 -05:00
|
|
|
<%= error_messages_for :image %>
|
|
|
|
|
|
|
|
<% form_for(:images, :url => galleries_path, :html => { :multipart => true, :onsubmit => "$('spinner').style.display = 'inline';" }) do |f| %>
|
|
|
|
<fieldset>
|
|
|
|
<h2>Upload an image</h2>
|
|
|
|
<p>
|
|
|
|
<label>
|
|
|
|
File:
|
|
|
|
<%= file_field 'image', 'file' %>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
|
|
|
<p>
|
2008-02-06 23:24:43 -05:00
|
|
|
<%= submit_tag "Create" %> <%= image_tag '/images/spinner.gif', :id => 'spinner', :style => 'display:none;' %>
|
2008-01-31 23:46:06 -05:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :sidebar do -%>
|
|
|
|
<%= new_image_link -%><br />
|
|
|
|
<% end -%>
|