Sha256: 32bd8aa8cf406e63c930508f591c5940f13755c142c4219790974854b1e780f8
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
<% select_values = select_editor.settings[:select_values] %> <%= content_tag :div, class: [ select_editor.css_classes, select_editor.settings[:display_inline] ? 'display_inline' : '' ], data: select_editor.data_attributes do %> <%= element_form.fields_for(:ingredients, select_editor.ingredient) do |f| %> <%= ingredient_label(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 ingredient definition <code>settings</code> in <code>elements.yml</code>.") %> <% else %> <% if select_values.is_a?(Hash) options_tags = grouped_options_for_select(select_values, select_editor.value) else options_tags = options_for_select(select_values, select_editor.value) end %> <%= f.select :value, options_tags, {}, { id: select_editor.form_field_id, class: ["ingredient-editor-select"], is: "alchemy-select", required: select_editor.presence_validation? } %> <% end %> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems