<% if @notice %>
<%= @notice %>
<% end %> <%= error_messages_for 'sidebar' %>

<%= label_tag('sidebar[content_type]', l(:field_content_type)) %> <%= select_tag('sidebar[content_type]', options_for_select([ [ l(:label_disabled), nil ], [ l(:label_textile), 'text' ], [ l(:label_wiki_page), 'wiki' ], [ l(:label_html_code), 'html' ] ], params[:sidebar] ? params[:sidebar][:content_type] : sidebar ? sidebar.content_type : nil), :onchange => "toggle_sidebar_form_visibility(this.value);") %>

<%= link_to(l(:label_sidebar_visibility), { :controller => 'sidebar', :action => 'pages', :id => project }, :class => 'icon icon-sidebar') unless Setting.plugin_sidebar[:policy] == 'global' %>
<%= submit_tag(l(:button_save)) %>