Sha256: d11c0ee1f13bb98a511a5f0c932713a925a54719d1ff3cf1d92ecf433e0cd0b4
Contents?: true
Size: 970 Bytes
Versions: 11
Compression:
Stored size: 970 Bytes
Contents
.tit-form = t 'redditor.title.image' = image_tag 'redditor/add_photo_big.png' - if f.object.src.present? %div{style: "padding: 5px; border: 1px solid #ccc; background:#fff; margin: 5px 0;"}= image_tag f.object.src, style: "max-width: 100%" = redditor_validate f .condom{style: "margin:5px 0;"} = f.text_field :description, placeholder: t("redditor.description"), class: 'full-width' .condom{style: "margin:5px 0; height:1px; background:#ccc;"} .b-button.js-fileapi-wrapper - if f.object.new_record? .b-button__text= t("redditor.add.upload_image") = f.file_field :src, :class => "b-button__input js-fileapi", data: {"upload-url" => redditor.admin_page_image_blocks_path(f.object.imageable_id), "content-block-id" => true} - else .b-button__text= t("redditor.add.change_image") = f.file_field :src, :class => "b-button__input js-fileapi", data: {"upload-url" => redditor.update_post_admin_page_image_block_path(f.object.imageable_id, f.object)}
Version data entries
11 entries across 11 versions & 1 rubygems