% form_tag({:action => 'edit'}) do %>
<%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %>
<%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %>
<%= wikitoolbar_for 'settings[welcome_text]' %><%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB
<%= text_field_tag 'settings[per_page_options]', Setting.per_page_options_array.join(', '), :size => 20 %>
<%= l(:text_comma_separated) %>
<%= text_field_tag 'settings[activity_days_default]', Setting.activity_days_default, :size => 6 %> <%= l(:label_day_plural) %>
<%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %>
<%= l(:label_example) %>: <%= @guessed_host_and_path %>
<%= select_tag 'settings[protocol]', options_for_select(['http', 'https'], Setting.protocol) %>
<%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), "0"], *Redmine::WikiFormatting.format_names.collect{|name| [name, name]} ], Setting.text_formatting.to_sym) %>
<%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %>
<%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %>
<%= text_field_tag 'settings[diff_max_lines_displayed]', Setting.diff_max_lines_displayed, :size => 6 %>