diff --git a/app/views/alchemy/ingredients/_boolean_editor.html.erb b/app/views/alchemy/ingredients/_boolean_editor.html.erb index 0fc6b1c3fc..c8b1e65b17 100644 --- a/app/views/alchemy/ingredients/_boolean_editor.html.erb +++ b/app/views/alchemy/ingredients/_boolean_editor.html.erb @@ -3,7 +3,7 @@ data: boolean_editor.data_attributes do %> <%= element_form.fields_for(:ingredients, boolean_editor.ingredient) do |f| %> <%= f.label :value, style: "display: inline-block" do %> - <%= f.check_box :value %> + <%= f.check_box :value, id: nil %> <%= render_ingredient_role(boolean_editor) %> <% end %> <%= render_hint_for(boolean_editor) %> diff --git a/app/views/alchemy/ingredients/_headline_editor.html.erb b/app/views/alchemy/ingredients/_headline_editor.html.erb index 964eafd465..cf8a440de5 100644 --- a/app/views/alchemy/ingredients/_headline_editor.html.erb +++ b/app/views/alchemy/ingredients/_headline_editor.html.erb @@ -3,7 +3,7 @@ data: headline_editor.data_attributes do %> <%= element_form.fields_for(:ingredients, headline_editor.ingredient) do |f| %> <%= ingredient_label(headline_editor) %> - <%= f.text_field :value %> + <%= f.text_field :value, id: nil %>
<% if headline_editor.level_options.length > 1 %> diff --git a/app/views/alchemy/ingredients/_html_editor.html.erb b/app/views/alchemy/ingredients/_html_editor.html.erb index cd73683483..af2bf486f5 100644 --- a/app/views/alchemy/ingredients/_html_editor.html.erb +++ b/app/views/alchemy/ingredients/_html_editor.html.erb @@ -3,6 +3,6 @@ data: html_editor.data_attributes do %> <%= element_form.fields_for(:ingredients, html_editor.ingredient) do |f| %> <%= ingredient_label(html_editor) %> - <%= f.text_area :value %> + <%= f.text_area :value, id: nil %> <% end %> <% end %> diff --git a/app/views/alchemy/ingredients/_link_editor.html.erb b/app/views/alchemy/ingredients/_link_editor.html.erb index a82a5b1dda..b9717e2009 100644 --- a/app/views/alchemy/ingredients/_link_editor.html.erb +++ b/app/views/alchemy/ingredients/_link_editor.html.erb @@ -9,10 +9,10 @@ id: link_editor.form_field_id, disabled: true %> - <%= f.hidden_field :value, "data-link-value": true %> - <%= f.hidden_field :link_title, "data-link-title": true %> - <%= f.hidden_field :link_class_name, "data-link-class": true %> - <%= f.hidden_field :link_target, "data-link-target": true %> + <%= f.hidden_field :value, "data-link-value": true, id: nil %> + <%= 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 %> diff --git a/app/views/alchemy/ingredients/_picture_editor.html.erb b/app/views/alchemy/ingredients/_picture_editor.html.erb index 4e58152644..1faa699d78 100644 --- a/app/views/alchemy/ingredients/_picture_editor.html.erb +++ b/app/views/alchemy/ingredients/_picture_editor.html.erb @@ -50,11 +50,11 @@ image_file_width: picture_editor.image_file_width, image_file_height: picture_editor.image_file_height } %> - <%= f.hidden_field :link, data: { link_value: true } %> - <%= f.hidden_field :link_title, data: { link_title: true } %> - <%= f.hidden_field :link_class_name, data: { link_class: true } %> - <%= f.hidden_field :link_target, data: { link_target: true } %> - <%= f.hidden_field :crop_from, data: { crop_from: true } %> - <%= f.hidden_field :crop_size, data: { crop_size: true } %> + <%= f.hidden_field :link, data: { link_value: true }, id: nil %> + <%= 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 %> + <%= f.hidden_field :crop_from, data: { crop_from: true }, id: nil %> + <%= f.hidden_field :crop_size, data: { crop_size: true }, id: nil %> <% end %> <% end %> diff --git a/app/views/alchemy/ingredients/_select_editor.html.erb b/app/views/alchemy/ingredients/_select_editor.html.erb index 65065c9688..55f00dc511 100644 --- a/app/views/alchemy/ingredients/_select_editor.html.erb +++ b/app/views/alchemy/ingredients/_select_editor.html.erb @@ -22,6 +22,7 @@ options_tags = options_for_select(select_values, select_editor.value) end %> <%= f.select :value, options_tags, {}, { + id: nil, class: ["alchemy_selectbox", "ingredient-editor-select"] } %> <% end %> diff --git a/app/views/alchemy/ingredients/_text_editor.html.erb b/app/views/alchemy/ingredients/_text_editor.html.erb index 61da1de59f..a2e0448342 100644 --- a/app/views/alchemy/ingredients/_text_editor.html.erb +++ b/app/views/alchemy/ingredients/_text_editor.html.erb @@ -7,12 +7,13 @@ <%= ingredient_label(text_editor) %> <%= f.text_field :value, class: text_editor.settings[:linkable] ? "text_with_icon" : "", + id: nil, type: text_editor.settings[:input_type] || "text" %> <% if text_editor.settings[:linkable] %> - <%= f.hidden_field :link, "data-link-value": true %> - <%= f.hidden_field :link_title, "data-link-title": true %> - <%= f.hidden_field :link_class_name, "data-link-class": true%> - <%= f.hidden_field :link_target, "data-link-target": true %> + <%= f.hidden_field :link, "data-link-value": true, id: nil %> + <%= 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 %> <%= render "alchemy/ingredients/shared/link_tools", ingredient_editor: text_editor %> <% end %> <% end %>