Sha256: 0e2cb79049a2d25f4dfd2bfb17f2e4ee670288b0ffe96eb94d331cb4af18c151

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

<% cache(content) do %>
  <div class="essence_text content_editor<%= options[:display_inline].to_s == 'true' ? ' display_inline' : '' %>" id="<%= content.dom_id %>">
    <%= content_label(content) %>
    <%= text_field_tag(
      content.form_field_name,
      content.ingredient,
      class: ["thin_border #{content.settings[:linkable] ? ' text_with_icon' : ''}", html_options[:class]].join(' '),
      style: html_options[:style],
      type: content.settings_value(:input_type) || "text"
    ) %>
    <% if content.settings[:linkable] %>
      <%= hidden_field_tag content.form_field_name(:link), content.essence.link %>
      <%= hidden_field_tag content.form_field_name(:link_title), content.essence.link_title %>
      <%= hidden_field_tag content.form_field_name(:link_class_name), content.essence.link_class_name %>
      <%= hidden_field_tag content.form_field_name(:link_target), content.essence.link_target %>
      <%= render 'alchemy/essences/shared/linkable_essence_tools', content: content %>
    <% end %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.4.1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.3.3 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.3.2 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.4.0 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/essences/_essence_text_editor.html.erb
alchemy_cms-3.3.1 app/views/alchemy/essences/_essence_text_editor.html.erb