<%= t('no_more_elements_to_add') %>
<%- else -%> <%= form_for [:admin, @element], :remote => true, :class => "add_element_content" do |form| %><%= form.label :name, t("element_of_type") %> | <%= form.select( 'name', @page.can_have_cells? ? grouped_elements_for_select(@elements) : elements_for_select(@elements), {:prompt => t('select_element')}, {:class => 'long'} ) -%> |
<%= form.hidden_field 'page_id' %> <%= form.button t('add'), :class => 'button' %> |