Sha256: bd5428c9a47d0933ca6f95829708cc87fc8386df6586e71b2d6dae9f0bda7594

Contents?: true

Size: 1.03 KB

Versions: 60

Compression:

Stored size: 1.03 KB

Contents

<div id="jscropper">
<% if @no_image_notice %>
  <%= render_message :warn do %>
    <%= @no_image_notice %>
  <% end %>
<% else %>
  <%= render_message do %>
    <%= simple_format Alchemy.t(:explain_cropping) %>
  <% end %>
  <div class="thumbnail_background">
    <%= image_tag @picture.url(size: '800x600', flatten: true), id: 'imageToCrop' %>
  </div>
  <form>
    <%= button_tag Alchemy.t(:apply), type: 'submit' %>
    <%= button_tag Alchemy.t('Reset Imagemask'), class: 'reset_mask', type: 'reset' %>
  </form>
</div>
<% end %>
<% if @settings %>
<script type="text/javascript">
  Alchemy.ImageLoader('#jscropper .thumbnail_background');
  $('#imageToCrop').load(function() {
    new Alchemy.ImageCropper(
      <%= @settings[:min_size].to_json %>,
      <%= @settings[:default_box].to_json %>,
      <%= @settings[:ratio] %>,
      <%= @settings[:image_size].to_json %>,
      [
        "<%= params[:crop_from_form_field_id] %>",
        "<%= params[:crop_size_form_field_id] %>",
      ],
      <%= @element.id %>
    );
  });
</script>
<% end %>

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.15 app/views/alchemy/admin/crop.html.erb
alchemy_cms-6.1.10 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.14 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.13 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.12 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.11 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.10 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.9 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.8 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.7 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.6 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.5 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.4 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.3 app/views/alchemy/admin/crop.html.erb
alchemy_cms-6.1.9 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.2 app/views/alchemy/admin/crop.html.erb
alchemy_cms-6.1.8 app/views/alchemy/admin/crop.html.erb
alchemy_cms-6.1.7 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.0.1 app/views/alchemy/admin/crop.html.erb