Sha256: 1c7400b6e087acda1ffa7bb53a2ff5f29a1a74d9cee19e58d533d7182629bd4b

Contents?: true

Size: 601 Bytes

Versions: 14

Compression:

Stored size: 601 Bytes

Contents

<%- if @elements.blank? -%>
  <%= render_message do %>
    <%= Alchemy.t(:no_more_elements_to_add) %>
  <% end %>
<%- else -%>
  <%= alchemy_form_for [:admin, @element] do |form| %>
    <%= form.hidden_field :page_version_id %>
    <%= form.input :name,
      label: Alchemy.t(:element_of_type),
      collection: elements_for_select(@elements),
      prompt: Alchemy.t(:select_element),
      input_html: {class: 'alchemy_selectbox', autofocus: true} %>
    <%= form.hidden_field :parent_element_id, value: @parent_element.try(:id) %>
    <%= form.submit Alchemy.t(:add) %>
  <%- end -%>
<%- end -%>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-6.0.0 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc7 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc6 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc5 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc4 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc3 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc2 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.rc1 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.b6 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.b5 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.pre.b4 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.b3 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.b2 app/views/alchemy/admin/elements/_form.html.erb
alchemy_cms-6.0.0.b1 app/views/alchemy/admin/elements/_form.html.erb