Sha256: 2c05d7953e46cc47ca47a7e5f69a4e5e2a8e1d2edf3d4fb1ed2bdcebcba42d5c

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 KB

Contents

<%= content_tag :div,
  class: [
    text_editor.css_classes,
    text_editor.settings[:display_inline] ? "display_inline" : ""
  ], data: text_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, text_editor.ingredient) do |f| %>
    <%= 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[:anchor] %>
      <%= render "alchemy/ingredients/shared/anchor", ingredient_editor: text_editor %>
    <% end %>
    <% if text_editor.settings[:linkable] %>
      <%= 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 %>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.9 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.8 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.7 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.6 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.5 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.4 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.3 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.2 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.1 app/views/alchemy/ingredients/_text_editor.html.erb
alchemy_cms-6.1.0 app/views/alchemy/ingredients/_text_editor.html.erb