% content_for("page_scripts") do -%> function edit_item(id) { Element.toggle('image_' + id + '_show','image_' + id + '_edit'); Field.focus('image_' + id + '_title'); } function item_loading(id) { $('submit_' + id).disabled = true; Element.show('indicator_' + id); } function update_item(id) { $('submit_' + id).disabled = false; Element.hide('indicator_' + id); new Effect.Highlight('image_' + id) } <% end -%>
<%= @auction_item.description %>
There are currently no items associated with this auction. Add an image.
<% else %> <% for image in @auction_item.images %>