Sha256: 0bf16ad0d571694e9c59178275fc42ea0a23e5597e4441c556bcf9e29d4196ff

Contents?: true

Size: 1.44 KB

Versions: 13

Compression:

Stored size: 1.44 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(render_icon('delete-small'), '#', {
      :onclick => '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, :format => @options[:format] ),
    :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

13 entries across 13 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.4 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.3.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.3.0 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.3.rc5 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.rc14 app/views/alchemy/admin/essence_pictures/crop.html.erb
alchemy_cms-2.2.rc13 app/views/alchemy/admin/essence_pictures/crop.html.erb