Sha256: b5d555aa130d593e01fc24c49b1b54ae5213cb22f85f6de124129809a0b14e56

Contents?: true

Size: 1.34 KB

Versions: 12

Compression:

Stored size: 1.34 KB

Contents

<%- if @no_image_notice -%>
<div class="with_padding">
	<div class="info">
		<%= render_icon('info') %>
		<%= @no_image_notice %>
	</div>
</div>
<%- else -%>
<div id="overlay_toolbar">
	<%= form_for(@essence_picture, :url => alchemy.admin_essence_picture_path(@essence_picture, :options => @options), :id => 'image_cropper_form', :remote => true) do |f| %>
		<%= f.hidden_field :crop_from %>
		<%= f.hidden_field :crop_size %>
		<%= hidden_field_tag 'content_id', @content.id %>
		<%= f.button t("save"), :class => 'button' %>
	<% end %>
	<div class="toolbar_spacer"></div>
	<div class="button_with_label">
		<%= link_to_function(
			render_icon('delete-small'),
			'Alchemy.ImageCropper.reset()',
			:class => 'icon_button',
			:title => t('Reset Imagemask')
		) %>
		<label><%= t("Reset Imagemask") %></label>
	</div>
</div>

<div id="crop_explain" class="tip">
	<%= t('explain cropping') %>
</div>

<div id="jscropper">
	<%= image_tag(
		alchemy.zoom_picture_path(:id => @essence_picture.picture.id, :name => @essence_picture.picture.urlname),
		:id => 'imageToCrop',
		:onload => "Alchemy.ImageCropper.init(
			[#{@initial_box[:x1]}, #{@initial_box[:y1]}, #{@initial_box[:x2]}, #{@initial_box[:y2]}],
			#{@size_x},
			#{@size_y},
			[#{@default_box[:x1]}, #{@default_box[:y1]}, #{@default_box[:x2]}, #{@default_box[:y2]}],
			#{@ratio}
		);"
	) %>
</div>
<%- end -%>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-2.1.6 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.5 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.4 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.3 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.2 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/essence_pictures/crop.html.erb