Sha256: 7be8c487d600c0259195c5ec43744a5a3ec63aadc63a0fd2b719457bd99f0be3

Contents?: true

Size: 1019 Bytes

Versions: 26

Compression:

Stored size: 1019 Bytes

Contents

<%= content_tag :div,
  class: headline_editor.css_classes,
  data: headline_editor.data_attributes do %>
  <%= element_form.fields_for(:ingredients, headline_editor.ingredient) do |f| %>
    <%= ingredient_label(headline_editor) %>
    <%= f.text_field :value, id: nil %>

    <div class="input-row">
      <% if headline_editor.level_options.length > 1 %>
        <div class="input-column">
          <%= f.label :level %>
          <%= f.select :level,
            options_for_select(headline_editor.level_options, headline_editor.level),
            {},
            { class: "alchemy_selectbox full_width" } %>
        </div>
      <% end %>

      <% if headline_editor.size_options.length > 1 %>
        <div class="input-column">
          <%= f.label :size %>
          <%= f.select :size,
            options_for_select(headline_editor.size_options, headline_editor.size),
            {},
            { class: "alchemy_selectbox full_width" } %>
        </div>
      <% end %>
    </div>
  <% end %>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alchemy_cms-6.0.0.pre.rc2 app/views/alchemy/ingredients/_headline_editor.html.erb
alchemy_cms-6.0.0.pre.rc1 app/views/alchemy/ingredients/_headline_editor.html.erb
alchemy_cms-6.0.0.pre.b6 app/views/alchemy/ingredients/_headline_editor.html.erb
alchemy_cms-6.0.0.pre.b5 app/views/alchemy/ingredients/_headline_editor.html.erb
alchemy_cms-6.0.0.pre.b4 app/views/alchemy/ingredients/_headline_editor.html.erb
alchemy_cms-6.0.0.b3 app/views/alchemy/ingredients/_headline_editor.html.erb