Sha256: f5b685d3428b70637480c07b50b55827da349e59e2a58af974589bf92cd52047

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

<div class="picture_thumbnail" name="<%= picture_to_assign.name %>" id="assignable_<%= picture_to_assign.id %>">
  <sl-tooltip content="<%= Alchemy.t(:assign_image) %>">
    <%= link_to(
      image_tag(
        picture_to_assign.url(size: preview_size(size), flatten: true) || "alchemy/missing-image.svg",
        alt: picture_to_assign.name
      ),
      alchemy.assign_admin_picture_path(
        id: picture_to_assign.id,
        form_field_id: @form_field_id
      ),
      remote: true,
      onclick: '$(self).attr("href", "#").off("click"); return false',
      method: 'put',
      class: 'thumbnail_background'
    ) %>
  </sl-tooltip>
  <div class="picture_name" title="<%= picture_to_assign.name %>">
    <%= picture_to_assign.name %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy_cms-7.1.0.pre.b1 app/views/alchemy/admin/pictures/_picture_to_assign.html.erb