Sha256: ef2043a76111263a286121df5af63e21bd6bea05324faa371af5c22b176dec5e

Contents?: true

Size: 1.59 KB

Versions: 7

Compression:

Stored size: 1.59 KB

Contents

<div id="jscropper">
<% if @no_image_notice %>
  <%= render_message do %>
    <%= @no_image_notice %>
  <% end %>
<% else %>
  <%= render_message do %>
    <%= _t('explain cropping') %>
  <% end %>
  <div class="thumbnail_background">
    <span class="picture_content_spinner">
      <%= image_tag("alchemy/image_loader.gif", :alt => '') %>
    </span>
    <%= image_tag(show_alchemy_picture_path(@essence_picture.picture, :size => '800x600', :format => :png),
      :id => 'imageToCrop',
      :onload => %(
        Alchemy.fadeImage(this, '#jscropper .picture_content_spinner');
        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},
          [#{@essence_picture.picture.image_file_width}, #{@essence_picture.picture.image_file_height}]
        );
      ),
      :style => "display: none;"
    ) %>
  </div>
  <%= 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 %>
    <%= link_to(render_icon('delete-small') + _t('Reset Imagemask'), '#', {
      :onclick => 'Alchemy.ImageCropper.reset()',
      :class => 'button with_icon'
    }) %>
    <%= f.button _t("apply"), :class => 'button' %>
  <% end %>
<% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-2.5.3.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.5.3 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.5.2.2 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.5.2.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.5.2 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.5.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.5.0 app/views/alchemy/admin/essence_pictures/crop.html.erb