Fix add page block horiz. layout on My Page

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2419/head
Alex Coles 10 years ago
parent 87b00a2377
commit bf71e63917
  1. 26
      app/views/my/page_layout.html.erb

@ -69,16 +69,22 @@ function removeBlock(block) {
<% content_for :action_menu_specific do %>
<li>
<%= form_tag({:action => "add_block"}, :id => "block-form") do %>
<%= label_tag('block-select', l(:label_my_page_block)) %>:
<%= select_tag 'block', "<option></option>".html_safe + options_for_select(@block_options), :id => "block-select" %>
<%= link_to_remote l(:button_add),
{:url => { :action => "add_block" },
:with => "Form.serialize('block-form')",
:update => "list-top",
:position => :top,
:complete => "afterAddBlock();"
}, :class => 'icon icon-add'
%>
<span class="inline-label">
<%= label_tag('block-select', l(:label_my_page_block)) %>:
<%= select_tag 'block', "<option></option>".html_safe + options_for_select(@block_options),
:id => "block-select",
class: 'form--select -small' %>
<span>
<%= link_to_remote l(:button_add),
{:url => { :action => "add_block" },
:with => "Form.serialize('block-form')",
:update => "list-top",
:position => :top,
:complete => "afterAddBlock();"
}, :class => 'icon icon-add'
%>
</span>
</span>
<% end %>
</li>
<li><%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %></li>

Loading…
Cancel
Save