Sha256: 34d1bd7ecd0e48f933bffbb3dfa0fa49229f622d52474944d3da06f13f2cb47b

Contents?: true

Size: 1.87 KB

Versions: 12

Compression:

Stored size: 1.87 KB

Contents

<% linkable = picture_editor.settings[:linkable] != false %>
<% croppable = picture_editor.allow_image_cropping? %>

<%= content_tag "sl-tooltip", content: Alchemy.t("Edit Picturemask"), placement: "top-start", disabled: !croppable do %>
  <%= link_to_dialog render_icon(:crop),
    alchemy.crop_admin_ingredient_path(picture_editor.ingredient, {
      crop_from_form_field_id: picture_editor.form_field_id(:crop_from),
      crop_size_form_field_id: picture_editor.form_field_id(:crop_size),
      picture_id: picture_editor.picture&.id
    }), {
      size: "1080x615",
      title: Alchemy.t("Edit Picturemask"),
      image_loader: false,
      padding: false
    }, {
      class: croppable ? "crop_link icon_button" : "disabled crop_link icon_button" ,
      tabindex: croppable ? nil : "-1",
      onclick: "return false"
    } %>
<% end %>

<%= content_tag "sl-tooltip", content: picture_editor.picture ? Alchemy.t(:swap_image) : Alchemy.t(:insert_image) do %>
  <%= link_to_dialog render_icon("image-add"),
    alchemy.admin_pictures_path(
      form_field_id: picture_editor.form_field_id(:picture_id)
    ),
    {
      title: Alchemy.t(:choose_image),
      size: "800x600",
      padding: false
    },
    class: "icon_button" %>
<% end %>

<% if linkable %>
  <%= render "alchemy/ingredients/shared/link_tools", ingredient_editor: picture_editor %>
<% else %>
  <span class="icon_button disabled"><%= render_icon("link", style: "m") %></span>
  <span class="icon_button disabled"><%= render_icon("link-unlink", style: "m") %></span>
<% end %>

<%= content_tag "sl-tooltip", content: Alchemy.t(:edit_image_properties), placement: "top-end" do %>
  <%= link_to_dialog render_icon(:edit),
    alchemy.edit_admin_ingredient_path(id: picture_editor.id, language_id: @page.language_id),
    {
      title: Alchemy.t(:edit_image_properties),
      size: "380x255"
    },
    class: "icon_button" %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.3.3 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.3.2 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.7 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.3.1 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.3.0 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.6 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.5 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.4 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.3 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.2 app/views/alchemy/ingredients/shared/_picture_tools.html.erb
alchemy_cms-7.2.1 app/views/alchemy/ingredients/shared/_picture_tools.html.erb