Sha256: 9e878f87824e4218405de138c06d7dfc7247024a9a352e7d9820a88d441f1b5c

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

<div id="photo-<%=  photo.id %>" class="form-photo-field">
  <%= fields_for "photos[photo]", photo, :index => photo.id do |p|%>
      <div class="form_photo_left">
        <%= link_to (image_tag  photo.file.preview.url), photo.file.single.url, {:target=> "_blank"} %>
      </div>

      <div class="form_photo_right">
        <div class='field'>
          <%= p.label :title %>
          <%= p.text_field :title, :class => "larger" %>
        </div>

        <div class='field'>
          <%= p.label :description %>
          <%= p.text_area :description, :rows => "5", :cols=> "57" %>
        </div>


        <div class='field-group'>
            <%= p.label :longitude, :tooltip=> t('.use_decimal_format') %>
            <%= p.text_field :longitude, :size=> 13 %>

            <%= p.label :latitude , :tooltip=> t('.use_decimal_format') %>
            <%= p.text_field :latitude, :size=> 13  %>
        </div>


        <%= render :partial => "form_fields_actions", :locals => { :photo => photo } %>
      </div>
  <% end%>
  <div class="form_photo_cleaner"></div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-photo-gallery-0.3.0 app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb
refinerycms-photo-gallery-0.2.0 app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb