Sha256: 77d1d620e22622a9c854a3e15fa90cfd46ea6691f00f5a75d3c8f9a87c959b5a

Contents?: true

Size: 730 Bytes

Versions: 1

Compression:

Stored size: 730 Bytes

Contents

<%= form.text_field :title, :id => (@photo.new_record?? 'slugify' : nil) %>
<%= form.text_field :slug, :id => 'slug' %>
<% 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 %>
<%= form.simple_field nil, nil, :class => 'submit_element' do %>
  <%= link_to "Cancel", admin_gallery_gallery_photos_path(@photo.gallery), :id => 'cancel_btn' %>
  <span>or</span>
  <%= form.submit "Save", :disable_builder => true%>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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