<%= form_remote_tag :url => { :action => 'select_gallery', :id => @pg },
:update => 'select_gallery' do -%>
Current Gallery:
<%- end -%>
<%= link_to_remote image_tag("management/gallery_index.gif") + " Index",
{ :url => { :action => 'gallery_management', :id => @pg, :gallery_id => params[:gallery_id] },
:update => 'gallery_container' }, :style => 'float: right; margin-right: 6px;' %>
<%= link_to_remote image_tag("management/gallery_sort.gif") + " Sort images",
{ :url => { :action => 'sort_images', :id => @pg, :gallery_id => params[:gallery_id] },
:update => 'gallery_window' }, :style => 'float: right; margin-right: 6px;' %>
<%= link_to_remote image_tag("management/gallery_delete.gif") + " Delete Gallery",
{ :url => { :action => 'delete_gallery', :id => @pg, :gallery_id => params[:gallery_id] },
:update => 'delete_gallery_container',
:confirm => "This gallery, including photos and captions, will be deleted and cannot be undone. Continue?" },
:style => 'float: right; margin-right: 6px;' %>