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.0.0.pre.b6 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.0.pre.b5 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.0.pre.b4 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.0.b3 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.0.b2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-6.0.0.b1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.2.1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.4 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.0.4 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.3 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.2.0 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.2.0.rc1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.2.0.b1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.0.3 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.0 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.0.2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.0.rc1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-5.1.0.beta2 app/views/alchemy/essences/_essence_select_editor.html.erb