Sha256: 5ef4f58171ca7d10daeeb0fdeb0491987d624cf75119a3506225ac49ad714874

Contents?: true

Size: 1.26 KB

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
refinerycms-0.9.5.31 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.30 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.29 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.28 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.27 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.26 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.25 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.24 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.23 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.22 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.21 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.20 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.19 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.18 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.17 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.16 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.15 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.14 vendor/plugins/images/app/views/admin/images/_form.html.erb