Sha256: 463ce445ab76bfcd82a5e39d64c74f0ef7d48eba3efbcadc0ea943520bae3aed

Contents?: true

Size: 699 Bytes

Versions: 3

Compression:

Stored size: 699 Bytes

Contents

<%= form.text_field :title, :id => (@photo.new_record?? 'slugify' : nil) %>
<%= form.text_field :slug, :id => 'slug' %>
<% if @photo.image? %>
  <%= form.simple_field 'Current Image' do %>
    <%= image_tag(@photo.image.url(:thumb)) %>
    <br/>
    <%= link_to 'Crop Image', crop_sofa_gallery_admin_gallery_photo_path(@gallery, @photo) if @photo.force_aspect? %>
  <% end %>
<% end %>
<%= form.file_field :image %>
<%= form.text_area :description %>
<%= form.simple_field nil, nil, :class => 'submit_element' do %>
  <%= link_to "Cancel", sofa_gallery_admin_gallery_photos_path(@photo.gallery), :id => 'cancel_btn' %>
  <span>or</span>
  <%= form.submit "Save", :disable_builder => true%>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sofa_gallery-0.0.5 app/views/sofa_gallery/admin/photos/_form.html.erb
sofa_gallery-0.0.4 app/views/sofa_gallery/admin/photos/_form.html.erb
sofa_gallery-0.0.3 app/views/sofa_gallery/admin/photos/_form.html.erb