Sha256: 3a1078bb8b2198bc8dbf48bf3d6e5588dc8ef1891ce00b6d90bd0e911849f602

Contents?: true

Size: 864 Bytes

Versions: 6

Compression:

Stored size: 864 Bytes

Contents

.asset-cropping
  .modal-backdrop.fade.in
  .preview
    .modal-header
      %button{ type: 'button', class: 'close', data: { dismiss: 'modal' }, :'aria-hidden' => 'true' } ×
      %h4#myModalLabel{ class: 'modal-title'}
        Crop
    .image-holder= image_tag(@asset.attachment.url, id: 'cropbox', data: { width: @asset.dimensions(:original)[0], height: @asset.dimensions(:original)[1] })
    .spinner= fa_icon('spinner spin')

    = form_for @asset, data: {remote: true} do |f|
      - [:crop_x, :crop_y, :crop_w, :crop_h].each do |field|
        = f.hidden_field field
      .crop_buttons.right.full
        = f.check_box :duplicate, checked: true, class: 'tn-checkbox-right'
        = f.label :duplicate, "Create New Asset From Crop?", class: 'left'
        .right= f.submit "Save", class: 'save btn btn-comp', data: { disable_with: "Please wait..." }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tenon-1.1.4 app/views/tenon/assets/crop.html.haml
tenon-1.1.3 app/views/tenon/assets/crop.html.haml
tenon-1.1.2 app/views/tenon/assets/crop.html.haml
tenon-1.1.1 app/views/tenon/assets/crop.html.haml
tenon-1.0.76 app/views/tenon/assets/crop.html.haml
tenon-1.0.75 app/views/tenon/assets/crop.html.haml