Sha256: f392e3fe5f4542990b9ce702a9ee7683d106d62c928529993bcc7efaacd7b14b

Contents?: true

Size: 919 Bytes

Versions: 4

Compression:

Stored size: 919 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'}= t('tenon.assets.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, t('tenon.assets.create_new_asset_from_crop'), class: 'left'
        .right= f.submit t('tenon.common.save'), class: 'save btn btn-comp', data: { disable_with: t('tenon.common.please_wait') }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tenon-1.1.8 app/views/tenon/assets/crop.html.haml
tenon-1.1.7 app/views/tenon/assets/crop.html.haml
tenon-1.1.6 app/views/tenon/assets/crop.html.haml
tenon-1.1.5 app/views/tenon/assets/crop.html.haml