Sha256: 98e87c9bfdb0542106fd1173cf4ba2e496441d77363827c30d1aa191c56d71ea

Contents?: true

Size: 1.24 KB

Versions: 22

Compression:

Stored size: 1.24 KB

Contents

= f.hidden_field :image_id, class: 'asset-id-field'
= f.hidden_field :position
= f.hidden_field :size
= f.hidden_field :stretch_to_fill
.image{class: 'stretch'}
  - if f.object.image
    = backend_piece_image_tag(f.object)
  - else
    = link_to(new_item_asset_path, class: 'add-image', data: {'modal-remote' => true, 'modal-title' => 'Select Image', 'modal-handler' => 'Tenon.features.tenonContent.AssetAttachment'}) do
      %span Add Image

  .medium-editor-toolbar.medium-toolbar-arrow-under.medium-editor-toolbar-active.image-controls{style: 'display: none; margin-top: -65px;'}
    %ul.medium-editor-toolbar-actions.clearfix
      %li
        %button{title: 'Crop', class: 'asset-crop medium-editor-action medium-editor-button-first', data: {'tooltip' => true, 'post-crop-handler' => 'Tenon.features.tenonContent.PostCropHandler', 'asset-id' => f.object.image_id}}
          %i.fa.fa-crop
      %li
        %button{href: new_item_asset_path, title: 'Replace Image', class: 'replace-image medium-editor-action  medium-editor-button-last', data: {'modal-remote' => 'true', 'modal-title' => "Select Image", 'modal-handler' => 'Tenon.features.tenonContent.AssetAttachment', 'tooltip' => true}}
          %i.fa.fa-picture-o

    .medium-editor-toolbar-form-anchor

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tenon-2.0.8 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.7 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.6 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.5 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.4 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.3 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.2 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.1 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-2.0.0 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.1.4 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.1.3 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.1.2 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.1.1 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.76 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.75 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.74 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.73 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.72 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.71 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml
tenon-1.0.70 app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml