<% 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 %>
-
- <%= render :partial => 'block_types', :locals => { :block_types => @side_block_types } %>
+
+ <% @side_block_types.each do |block| %>
+
+ <%= labelled_radio_button(block.description, :type, block.name) %>
+
+ <% end %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index e0cc7a6..af1e93a 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1666,6 +1666,18 @@ a.button.disabled, input.disabled {
padding: 0px 30px;
}
+#add-block-dialog {
+ display: inline-block;
+ padding: 0px 5px 0px 20px;
+}
+
+#add-block-dialog .block-types {
+ column-count: 2;
+ -ms-column-count: 2;
+ -moz-column-count: 2;
+ -webkit-column-count: 2;
+}
+
/* ==> blocks/tags-block.css <<= */
.tags-block {
--
libgit2 0.21.2