Sha256: bd9c67289f0099ba966313238a4b979cee9d5c9ee9d29fa356dd2ed473646c54
Contents?: true
Size: 931 Bytes
Versions: 8
Compression:
Stored size: 931 Bytes
Contents
.redditor__title.redditor__title_image = t 'redditor.title.image' - 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' .redditor__sep .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 redditor__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 redditor__js-fileapi", data: {"upload-url" => redditor.update_post_admin_page_image_block_path(f.object.imageable_id, f.object)}
Version data entries
8 entries across 8 versions & 1 rubygems