Sha256: f1e43f2b47173103a4ed13fc44268dd8ab34384861f0c1dec507a90e44f12f5e

Contents?: true

Size: 458 Bytes

Versions: 14

Compression:

Stored size: 458 Bytes

Contents

<%= alchemy_form_for [:admin, @content] do |f| %>
  <%= f.hidden_field :element_id %>
  <%= hidden_field_tag('options', options_from_params) %>
  <%= 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

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.1.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.1.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.1.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.1.0.rc1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.1.0.beta app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/contents/new.html.erb