diff --git a/app/views/box_organizer/_block_types.rhtml b/app/views/box_organizer/_block_types.rhtml deleted file mode 100644 index 4b1c354..0000000 --- a/app/views/box_organizer/_block_types.rhtml +++ /dev/null @@ -1,10 +0,0 @@ -<% block_types.in_groups_of(2) do |block1, block2| %> -
- <%= labelled_radio_button(block1.description, :type, block1.name) %> -
- <% if block2 %> -
- <%= labelled_radio_button(block2.description, :type, block2.name) %> -
- <% end %> -<% end %> diff --git a/app/views/box_organizer/add_block.rhtml b/app/views/box_organizer/add_block.rhtml index dbb2391..ffb30e9 100644 --- a/app/views/box_organizer/add_block.rhtml +++ b/app/views/box_organizer/add_block.rhtml @@ -1,35 +1,41 @@ -
+
<% form_tag do %>

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

+
<% @boxes.each do |box| %> - <%= labelled_radio_button(_("Area %d") % box.position, :box_id, box.id, box.central?, { :class => 'box-position', 'data-position' => box.position }) %> + <% name = box.central? ? _('Main area') : _('Area %d') % box.position %> + <%= labelled_radio_button(name, :box_id, box.id, box.central?, { 'data-position' => box.position }) %> <% end %> +

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

-
- <%= render :partial => 'block_types', :locals => { :block_types => @center_block_types } %> +
+ <% @center_block_types.each do |block| %> +
+ <%= labelled_radio_button(block.description, :type, block.name) %> +
+ <% end %>
-