Sha256: 1fb19873ae25d8c450eaee405f843a39a5274fa767a9162e99b796cf1115371c

Contents?: true

Size: 641 Bytes

Versions: 10

Compression:

Stored size: 641 Bytes

Contents

.crop_panel
  = link_to "Выделить фрагмент вручную", "#", :id=>'rehook', :class=>'bright_link'
  = link_to "Не выделять фрагмент", "#", :id=>'unhook', :class=>'bright_link'
%h3 Preview:
.preview_crop

  = image_tag @<%=resource_name%>.image_url(:large), :id=>'preview'

- if @<%=resource_name%>.image && @<%=resource_name%>.image_url(:crop)
  %h3 Current version:
  = image_tag @<%= resource_name %>.image_url(:crop)

%br
= form_for [:admin, <%=resource_name%>] do |f|
  - ['x','y','w','h'].each do |attribute|
    = f.hidden_field "crop_#{attribute}"
= cropable('<%=resource_name%>', 0, 0, 300, 200)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ideyabox-0.1.12 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.11 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.10 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.9 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.8 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.7 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.6 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.5 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.4 lib/generators/ideyabox/crop/templates/_crop.html.haml
ideyabox-0.1.3 lib/generators/ideyabox/crop/templates/_crop.html.haml