<%- if @elements.blank? -%>
<%= render_icon('info') %> <%= _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 => "alchemy_selectbox", :autofocus => true } ) -%>
<%= form.hidden_field 'page_id' %> <%= form.button _t('add'), :class => 'button' %>
<% end %> <%- end -%>