Sha256: 3313b1410e7b2d6baa0e4e244f7e94a2e36a1fec5746c672f30e89314986ff1f

Contents?: true

Size: 441 Bytes

Versions: 27

Compression:

Stored size: 441 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|
      [
        _t(content['name'], scope: 'content_names', default: content['name'].humanize),
        content['name']
      ]
    }, include_blank: false, input_html: {class: 'alchemy_selectbox'} %>
  <%= f.submit _t(:create) %>
<% end %>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/contents/new.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/contents/new.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/contents/new.html.erb