<%= link_to(l(:button_back), { :controller => 'projects', :action => 'settings', :id => @project, :tab => 'sidebar' }, :class => 'icon icon-cancel') %>

<%= l(:label_sidebar_visibility) %>

<% form = form_for(@visibility, :url => { :action => 'pages' }, :html => { :method => :post }) do |f| %> <%= error_messages_for 'visibility' %>
<%= l(:label_enable_sidebar) %> <% SidebarPage.available_pages.each do |page| %>
<% end %>

<%= check_all_links('non-sidebar-pages') %>

<%= submit_tag(l(:button_save)) %> <%= link_to(l(:button_cancel), { :controller => 'projects', :action => 'settings', :id => @project, :tab => 'sidebar' }) %>

<% end %> <%= form if Rails::VERSION::MAJOR >= 3 %>