Sha256: 88fec28c077de7d14ec236713da944dea24700107360e983af29c92fd361f4d8

Contents?: true

Size: 1 KB

Versions: 8

Compression:

Stored size: 1 KB

Contents

<% cache(content) do %>
  <div class="content_editor essence_select<%= options[:display_inline].to_s == 'true' ? ' display_inline' : '' %>" id="<%= content_dom_id(content) %>">

  <%= label_and_remove_link(content) %>

  <% if options[:select_values].nil? %>

    <%= warning('options[:select_values] is nil', "No select values given. Please provide :select_values as argument to render_essence_editor_by_name() helper inside this element editor view.") %>

  <% else %>

    <%
    if options[:select_values].is_a?(Hash)
      options_method = grouped_options_for_select(
        options[:select_values],
        content.ingredient,
        ''
      )
    else
      options_method = options_for_select(
        options[:select_values],
        content.ingredient
      )
    end
    %>

    <%= select_tag(content.form_field_name, options_method, {
      :class => ["alchemy_selectbox", "essence_editor_select", html_options[:class]].join(' '),
      :style => html_options[:style]
    }) %>

  <% end %>

  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.2.4 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.3.rc5 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.2.2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.2.1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.2.0 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/essences/_essence_select_editor.html.erb