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