Sha256: 6d6a3d5ce1eb778d9e443f10daed5b1666d6d2d27850cceaf1e6c8e2f1fc59e4

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

<%= form.text_field :title %>
<% if @photo.image? && @photo.id.present? %>
  <%= form.simple_field 'Current Image' do %>
    <%= image_tag(@photo.image.url(:thumb)) %>
    <br/>
    <%= link_to 'Crop Image', crop_admin_gallery_gallery_photo_path(@gallery, @photo) if @photo.force_aspect? %>
  <% end %>
<% end %>
<%= form.file_field :image, :multiple => true %>
<%= form.text_area :description, :class => 'short' %>

<%= form.submit 'Save' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfy_gallery-0.1.3 app/views/admin/gallery/photos/_form.html.erb
comfy_gallery-0.1.2 app/views/admin/gallery/photos/_form.html.erb