Sha256: a011df3307a67703b065e3b506ad4d0caaf50aaf78d0fccb2867cfc0bbddb41f

Contents?: true

Size: 1.32 KB

Versions: 39

Compression:

Stored size: 1.32 KB

Contents

<%= content_tag :div,
  id: essence_headline_editor.dom_id,
  class: essence_headline_editor.css_classes,
  data: essence_headline_editor.data_attributes do %>
  <%= content_label(essence_headline_editor) %>
  <%= text_field_tag(
    essence_headline_editor.form_field_name,
    essence_headline_editor.essence.body,
    id: essence_headline_editor.form_field_id
  ) %>

  <div class="input-row">
    <% essence = essence_headline_editor.essence %>
    <% if essence.level_options.length > 1 %>
      <div class="input-column">
        <%= label_tag Alchemy::EssenceHeadline.human_attribute_name(:level) %>
        <%= select_tag(
          essence_headline_editor.form_field_name(:level),
          options_for_select(essence_headline_editor.essence.level_options, essence_headline_editor.essence.level),
          class: "alchemy_selectbox full_width"
        ) %>
      </div>
    <% end %>

    <% if essence.size_options.length > 1 %>
      <div class="input-column">
        <%= label_tag Alchemy::EssenceHeadline.human_attribute_name(:size) %>
        <%= select_tag(
          essence_headline_editor.form_field_name(:size),
          options_for_select(essence_headline_editor.essence.size_options, essence_headline_editor.essence.size),
          class: "alchemy_selectbox full_width"
        ) %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-6.0.5 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.4 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.3 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.2 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.1 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc7 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc6 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc5 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc4 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc3 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc2 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc1 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.b6 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.b5 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.pre.b4 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.b3 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.b2 app/views/alchemy/essences/_essence_headline_editor.html.erb
alchemy_cms-6.0.0.b1 app/views/alchemy/essences/_essence_headline_editor.html.erb