Sha256: 9741262349684123163d8b5bf530d655bdada9768b7dffa874d9169e7dca971c
Contents?: true
Size: 455 Bytes
Versions: 22
Compression:
Stored size: 455 Bytes
Contents
<%= alchemy_form_for [:admin, @content] do |f| %> <%= f.hidden_field :element_id %> <%= hidden_field_tag('options', @options.to_json) %> <%= f.input :name, collection: @contents.map { |content| [ Alchemy.t(content['name'], scope: 'content_names', default: content['name'].humanize), content['name'] ] }, include_blank: false, input_html: {class: 'alchemy_selectbox'} %> <%= f.submit Alchemy.t(:create) %> <% end %>
Version data entries
22 entries across 22 versions & 1 rubygems