Sha256: 17c1168b44d2b26a918b6d9f955120e3dbba0a2d27c758381217937490b84fff
Contents?: true
Size: 1.3 KB
Versions: 3
Compression:
Stored size: 1.3 KB
Contents
.modal-header %button.close(data-dismiss="modal" type="button") %span(aria-hidden="true") × %h4.modal-title= t('quadro.modal.edit') .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= t('quadro.field.upload.select') %span.fileinput-exists= t('quadro.field.upload.change') = form.input_field :attachment %a.btn.btn-default.fileinput-exists(data-dismiss="fileinput" href="#")= t('quadro.field.upload.remove') .col-md-8 = form.input :alt, input_html: { class: 'form-control' } .row .col-md-6 = form.input :width, input_html: { class: 'form-control' } .col-md-6 = form.input :height, input_html: { class: 'form-control' } .text-right = form.submit class: 'btn btn-primary'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quadro-0.6.1 | app/views/quadro/assets/image/_form.html.haml |
quadro-0.6.0 | app/views/quadro/assets/image/_form.html.haml |
quadro-0.5.8 | app/views/quadro/assets/image/_form.html.haml |