Sha256: 63743fe486425de7859437a559b089bb06f0288b35ab389f7972f9edb062c624
Contents?: true
Size: 977 Bytes
Versions: 23
Compression:
Stored size: 977 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, wrapper_class: "ingredient_link_buttons" %> <% 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
23 entries across 23 versions & 1 rubygems