Sha256: 9cbfd421ba478f515d5693b507c789233c92bb313fad9d969d89d6d60c8ffc2f

Contents?: true

Size: 1.18 KB

Versions: 17

Compression:

Stored size: 1.18 KB

Contents

<div id="overlay_toolbar">
  <%= form_for(@essence_picture, :url => 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 _("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 => _('Reset Imagemask')
    ) %>
    <label><%= _("Reset Imagemask") %></label>
  </div>
</div>

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

<div id="jscropper">
  <%= image_tag(
    zoom_picture_path(@essence_picture.picture, :format => :png),
    :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>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.6.1 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.5 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.4 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.3.1 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.1.beta1 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.3 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.2 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.1 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.rc6 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.rc5 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.rc4 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.rc3 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.rc2 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.rc1 app/views/admin/essence_pictures/crop.html.erb
alchemy_cms-2.0.pre5 app/views/admin/essence_pictures/crop.html.erb