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. 8
      app/views/my/page_layout.html.erb

@ -69,8 +69,12 @@ function removeBlock(block) {
<% content_for :action_menu_specific do %>
<li>
<%= form_tag({:action => "add_block"}, :id => "block-form") do %>
<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" %>
<%= 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')",
@ -79,6 +83,8 @@ function removeBlock(block) {
: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