<%= 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' %>
<%= 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 %>