Sha256: 783919ba5fb55220f15673fb3ad62c80462478dfd608eae75910c28fcdbf28d5

Contents?: true

Size: 895 Bytes

Versions: 12

Compression:

Stored size: 895 Bytes

Contents

<% alignment ||= local_assigns[:locals][:alignment] %>
<% f ||= local_assigns[:locals][:f] %>
<div id='<%= f.object.id.to_s %>'>
  <% if f.object.asset_file_name %>
    <%= image_tag f.object.asset.url(:thumb), :width => "100" %>
  <% end %>
  <p>
    <%= f.label :name, "Photo Title" %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label "Photo" %><br />
    <%= f.file_field :asset, :required => (f.object.asset_file_name.blank? ? true : false) %>
  </p>

  <p>
    <%= f.label :description, "Photo Description" %><br />
    <%= f.text_area :description, :size => "70x3" %>
  </p>
  <p>
    <%= f.label :klass, "Alignment" %><br />
    <%= f.radio_button :klass, 'left' %>  Left
    <%= f.radio_button :klass, 'center', :checked => true %>  Center
    <%= f.radio_button :klass, 'right' %>  Right
  </p>
  <%= render "shared/prioritizable_fields", :locals => {:f => f} %>
</div>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
sbdevcore-0.1.2 app/views/photos/_form.html.erb
sbdevcore-0.1.1 app/views/photos/_form.html.erb
sbdevcore-0.1.0 app/views/photos/_form.html.erb
sbdevcore-0.0.9 app/views/photos/_form.html.erb
sbdevcore-0.0.8 app/views/photos/_form.html.erb
sbdevcore-0.0.7 app/views/photos/_form.html.erb
sbdevcore-0.0.6 app/views/photos/_form.html.erb
sbdevcore-0.0.5 app/views/photos/_form.html.erb
sbdevcore-0.0.4 app/views/photos/_form.html.erb
sbdevcore-0.0.3 app/views/photos/_form.html.erb
sbdevcore-0.0.1 app/views/photos/_form.html.erb
sbdev-core-0.0.1 app/views/photos/_form.html.erb