Sha256: a436cc3275ad6a0cdd60d82b87cc931429e2b548196c10ee720414ff8c176e81

Contents?: true

Size: 1.33 KB

Versions: 19

Compression:

Stored size: 1.33 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>
	<div class='form-actions'>
		<%= f.submit (params[:dialog] ? 'Upload' : 'Save') %>
		<% unless params[:dialog] %>
		or 
		<%= link_to "Cancel", admin_images_url, :title => "Cancelling will lose all changes you've made to this image", :class => 'close_dialog' %>
		<% end %>
	</div>

  <% 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

19 entries across 19 versions & 1 rubygems

Version Path
refinerycms-0.9.5.4 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.3 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.2 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5.1 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.5 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.4.5 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.4.4 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.4.3 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.4.2 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.4.1 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.4 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.3 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.2.2 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.2.1 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.2 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.1.2 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.1.1 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.1 vendor/plugins/images/app/views/admin/images/_form.html.erb
refinerycms-0.9.0 vendor/plugins/images/app/views/admin/images/_form.html.erb