Sha256: c9a510a5d4b297ffb49c873a433cf20745cc57663f2a02165ef6bec92bd249f8

Contents?: true

Size: 1.03 KB

Versions: 25

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.thumbnail_url(size: '800x600'), 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').on("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

25 entries across 25 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.3.3 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.3.2 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.3.1 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/crop.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/crop.html.erb