Sha256: 7173c0ebd18fae430867f1c238a3f15977a204534e9c7698ca9616e93ffa76dd
Contents?: true
Size: 1.39 KB
Versions: 27
Compression:
Stored size: 1.39 KB
Contents
<table> <tr valign="top"> <td><%= image_tag "/assets/content/#{params[:path]}/#{params[:gallery_id]}/#{params[:image]}" %></td> <td style="padding-left: 10px;"> <div id="caption_container" style="margin-bottom: 20px;"> <strong>Caption</strong><br/> <%= form_remote_tag :url => { :action => 'update_caption', :id => params[:id], :path => params[:path], :gallery_id => params[:gallery_id], :image => params[:image] }, :update => 'gallery_container' do -%> <%= text_area_tag "caption", @caption %><br/> <%= submit_tag "Save" %> or <%= link_to_remote "cancel", :url => { :action => 'gallery_management', :id => params[:id], :gallery_id => params[:gallery_id] }, :update => 'gallery_container' %> <%- end -%> </div> <div id="delete_container"> <strong>Delete Photo</strong><br/> <%= form_remote_tag :url => { :action => 'delete_photo', :id => params[:id], :path => params[:path], :gallery_id => params[:gallery_id], :image => params[:image] }, :update => 'gallery_container', :confirm => "This action cannot be undone. Continue?" do -%> <%= submit_tag "Delete" %> <%- end -%> </div> </td> </tr> </table>
Version data entries
27 entries across 27 versions & 1 rubygems