<% form_tag do %>

<%= _('In what area do you want to put your new block?') %>

<%# FIXME hardcoded stuff %> <%= select_tag('box_id', options_for_select(@boxes.select { |item| item.position != 1 }.map {|item| [ _("Area %d") % item.position, item.id]})) %>

<%= _('Select the type of block you want to add to your page.') %>

<% @block_types.in_groups_of(2) do |block1, block2| %>
<%= radio_button_tag('type', block1.name) %> <%= label_tag "type_#{block1.name.downcase}", block1.description %>
<% if block2 %>
<%= radio_button_tag('type', block2.name) %> <%= label_tag "type_#{block2.name.downcase}", block2.description %>
<% end %> <% end %>
<% button_bar do %> <%= submit_button(:add, _("Add")) %> <%= lightbox_close_button(_('Close')) %> <% end %> <% end %>