Sha256: c8c220e72181288dc8c9f59df341866c5c9ac20fdfe5229e3caa1c2d5efcb028

Contents?: true

Size: 1012 Bytes

Versions: 9

Compression:

Stored size: 1012 Bytes

Contents

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

  <%= 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_tags = grouped_options_for_select(
        options[:select_values],
        content.ingredient,
        ''
      )
    else
      options_tags = options_for_select(
        options[:select_values],
        content.ingredient
      )
    end
    %>

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

  <% end %>

  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-3.0.4 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.3 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.2 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.1 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.0 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/essences/_essence_select_editor.html.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/essences/_essence_select_editor.html.erb