Sha256: 20fda7e789e8c884428844f416333266635dce8914b6875e3539b4ce4460956d

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

<%= error_messages_for :image %>

<% form_for [:admin, @image], :url => @url_override || @url,
                              :html => {:multipart => true, :style => 'float: left; width: 70%'} do |f| %>
  <div class='field'>
    <%= f.label :uploaded_data, 'Image' %>
    <% if params[:action] =~ /(edit)|(update)/ %>
      Use current image
      <em>or</em>, replace it with this one...
    <% end %>
    <%= f.file_field :uploaded_data %>
  </div>

  <%= render :partial => "/shared/admin/form_actions", :locals => {:f => f, :continue_editing => false, :hide_cancel => (@thickbox or params[:action] == "insert")} %>

  <% if @thickbox %>
    <input type='hidden' name='thickbox' value='<%= @thickbox %>' />
    <input type='hidden' name='field' value='<%= @field %>' />
    <input type='hidden' name='update_image' value='<%= @update_image %>' />
    <input type='hidden' name='thumbnail' value='<%= @thumbnail %>' />
    <input type='hidden' name='callback' value='<%= @callback %>' />
    <input type='hidden' name='conditions' value='<%= @conditions %>' />
  <% end %>
<% end %>

<% if params[:action] =~ /(edit)|(update)/ %>
  <div style='float: right; width: 25%;'>
    <label>Current Image</label>
    <%= image_fu @image, :medium, { :class => "brown_border" } %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.14 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.13 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.12 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.11 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.10 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.9 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.8 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.6.7 vendor/plugins/images/app/views/admin/images/_form.html.erb