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

Version Path
alchemy_cms-3.6.7 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.4.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.5.0.rc1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.4.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.3.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.4.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/contents/new.html.erb