Sha256: 7b71d83fa86f6d813cfea67e5c964e485324ed6797b26876858f5ffa3bec9686
Contents?: true
Size: 1.44 KB
Versions: 3
Compression:
Stored size: 1.44 KB
Contents
- @resource ||= Integral::Image.new - form_path ||= backend_img_index_url = simple_form_for @resource, validate: true, multipart: true, authenticity_token: true, url: form_path do |f| = f.input :lock_version, as: :hidden .grid-x.grid-padding-x .cell.medium-8 .grid-y .cell .card .card-section = f.input :title .cell .card .card-section = f.input :description .cell.medium-4 .grid-y .cell .card .card-section - if @resource.persisted? = image_tag @resource.url - if !@resource.persisted? || Integral.editable_persisted_images = f.input :file, :wrapper_html => { :class => "file-field" }, validate: { presence: true }, input_html: { accept: "image/*" } - else = f.input :file, as: :string, label: false, disabled: true - if @resource.persisted? .cell .grid-x.grid-padding-x .cell.medium-6 .card .card-section = f.input :dimensions, readonly: true, input_html: { value: @resource.dimensions } .cell.medium-6 .card .card-section = f.input :file_size, as: :string, readonly: true, input_html: { value: number_to_human_size(@resource.file_size) } .cell = f.button :button
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
integral-1.4.0 | app/views/integral/backend/images/_form.haml |
integral-1.3.0 | app/views/integral/backend/images/_form.haml |
integral-1.2.0 | app/views/integral/backend/images/_form.haml |