summaryrefslogtreecommitdiffstats
path: root/app/views/my/page_layout.html.erb
blob: 09475c09ba70a42db6712407e9119a82acdac027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div class="contextual">

<%= form_tag({:action => "add_block"}, :id => "block-form") do %>
  <%= label_tag('block-select', l(:label_my_page_block)) %>:
  <%= block_select_tag(@user) %>
  <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit(); return false;', :class => 'icon icon-add' %>
<% end %>
<%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %>
</div>

<h2><%=l(:label_my_page)%></h2>

<div id="list-top" class="block-receiver">
  <%= render_blocks(@blocks['top'], @user, :edit => true) %>
</div>

<div id="list-left" class="splitcontentleft block-receiver">
  <%= render_blocks(@blocks['left'], @user, :edit => true) %>
</div>

<div id="list-right" class="splitcontentright block-receiver">
  <%= render_blocks(@blocks['right'], @user, :edit => true) %>
</div>

<%= javascript_tag "initMyPageSortable('top', '#{ escape_javascript url_for(:action => "order_blocks", :group => "top") }');" %>
<%= javascript_tag "initMyPageSortable('left', '#{ escape_javascript url_for(:action => "order_blocks", :group => "left") }');" %>
<%= javascript_tag "initMyPageSortable('right', '#{ escape_javascript url_for(:action => "order_blocks", :group => "right") }');" %>

<% html_title(l(:label_my_page)) -%>