Sha256: c380ff5b5bcbbaed985f886e3f7ba8823f3317a79c4a10d1925130b0f91b430a

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

.modal-header
  %button.close(data-dismiss="modal" type="button")
    %span(aria-hidden="true") ×
    %span.sr-only Close
  %h4.modal-title Edit image
.modal-body
  = simple_form_for asset, as: :asset, url: (widget.present? ? page_widget_asset_path(page_id: page.id, widget_id: widget.id, id: asset.id) : page_asset_path(page_id: page.id, id: asset.id)), method: :put, multipart: true, remote: true do |form|
    .row
      .col-md-4
        .fileinput.fileinput-new(data-provides="fileinput")
          .fileinput-new.thumbnail
            = image_tag form.object.attachment.url(:small)
          .fileinput-preview.fileinput-exists.thumbnail
          .text-center
            %span.btn.btn-default.btn-file
              %span.fileinput-new Select image
              %span.fileinput-exists Change
              = form.input_field :attachment
            %a.btn.btn-default.fileinput-exists(data-dismiss="fileinput" href="#") Remove
      .col-md-8
        = form.input :alt, input_html: { class: 'form-control' }
        = form.input :width, input_html: { class: 'form-control' }
        = form.input :height, input_html: { class: 'form-control' }
    .text-right
      = form.submit class: 'btn btn-primary'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
quadro-0.5.7 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.6 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.5 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.4 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.3 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.2 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.1 app/views/quadro/assets/image/_form.html.haml
quadro-0.5.0 app/views/quadro/assets/image/_form.html.haml