Sha256: 5476d03d4c05d2826fd0cc782a3f4ae855dd1155561860e57bde33a7b1a8c9d9

Contents?: true

Size: 935 Bytes

Versions: 57

Compression:

Stored size: 935 Bytes

Contents

<%= content_tag :div,
  class: link_editor.css_classes,
  data: link_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, link_editor.ingredient) do |f| %>
    <%= ingredient_label(link_editor) %>
    <%= f.text_field :value,
      class: "thin_border text_with_icon readonly",
      id: link_editor.form_field_id,
      "data-link-value": true,
      readonly: true,
      tabindex: -1
    %>
    <%= f.hidden_field :link_title, "data-link-title": true, id: nil %>
    <%= f.hidden_field :link_class_name, "data-link-class": true, id: nil %>
    <%= f.hidden_field :link_target, "data-link-target": true, id: nil %>
  <% end %>
  <%= render "alchemy/ingredients/shared/link_tools", ingredient_editor: link_editor %>
<% end %>

<script>
  $("#<%= link_editor.form_field_id %>").on("change", function() {
    $("[data-ingredient-id='<%= link_editor.id %>'] input.text_with_icon").val($(this).val());
  });
</script>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
alchemy_cms-7.0.0.pre.rc1 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.6 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-7.0.0.pre.c app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-7.0.0.pre.b app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.5 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.14 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.4 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-7.0.0.pre.a app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.13 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.3 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.2 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.1 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.1.0 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.12 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.11 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.10 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.9 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.8 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.7 app/views/alchemy/ingredients/_link_editor.html.erb
alchemy_cms-6.0.6 app/views/alchemy/ingredients/_link_editor.html.erb