Sha256: fdd5da53590deb3a692de7df310fdf93641ff87c7d063a48f6f5fc922334daa6

Contents?: true

Size: 1.01 KB

Versions: 87

Compression:

Stored size: 1.01 KB

Contents

<% select_values = essence_select_editor.settings[:select_values] %>

<%= content_tag :div,
  id: essence_select_editor.dom_id,
  class: [
    essence_select_editor.css_classes,
    essence_select_editor.settings[:display_inline] ? 'display_inline' : ''
  ], data: essence_select_editor.data_attributes do %>
  <%= content_label(essence_select_editor) %>

  <% if select_values.nil? %>
    <%= warning(':select_values is nil',
    "<strong>No select values given.</strong>
    <br>Please provide <code>select_values</code> on the
    content definition <code>settings</code> in
    <code>elements.yml</code>.") %>
  <% else %>
    <%
    if select_values.is_a?(Hash)
      options_tags = grouped_options_for_select(select_values, essence_select_editor.ingredient)
    else
      options_tags = options_for_select(select_values, essence_select_editor.ingredient)
    end %>
    <%= select_tag essence_select_editor.form_field_name, options_tags, {
      class: ["alchemy_selectbox", "essence_editor_select"]
    } %>
  <% end %>
<% end %>

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.9 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.8 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.7 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.6 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.5 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.14 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.4 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.13 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.3 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.1.0 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.12 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.11 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.10 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.3.8 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.9 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.3.7 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.8 app/views/alchemy/essences/_essence_select_editor.html.erb