2007-01-21 14:50:22 +03:00
|
|
|
<h2><%= l(:label_settings) %></h2>
|
|
|
|
|
2007-03-18 21:32:59 +03:00
|
|
|
<div id="settings">
|
2007-10-01 16:04:24 +04:00
|
|
|
<% form_tag({:action => 'edit'}) do %>
|
|
|
|
<div class="box tabular">
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_app_title) %></label>
|
|
|
|
<%= text_field_tag 'settings[app_title]', Setting.app_title, :size => 30 %></p>
|
2007-01-21 14:50:22 +03:00
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_app_subtitle) %></label>
|
|
|
|
<%= text_field_tag 'settings[app_subtitle]', Setting.app_subtitle, :size => 60 %></p>
|
2007-01-21 14:50:22 +03:00
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_welcome_text) %></label>
|
2007-08-17 15:32:58 +04:00
|
|
|
<%= text_area_tag 'settings[welcome_text]', Setting.welcome_text, :cols => 60, :rows => 5, :class => 'wiki-edit' %></p>
|
|
|
|
<%= wikitoolbar_for 'settings[welcome_text]' %>
|
2007-01-21 14:50:22 +03:00
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_default_language) %></label>
|
2007-01-21 14:50:22 +03:00
|
|
|
<%= select_tag 'settings[default_language]', options_for_select( lang_options_for_select(false), Setting.default_language) %></p>
|
|
|
|
|
2007-07-14 17:29:20 +04:00
|
|
|
<p><label><%= l(:setting_date_format) %></label>
|
|
|
|
<%= select_tag 'settings[date_format]', options_for_select( [[l(:label_language_based), '0'], ['ISO 8601 (YYYY-MM-DD)', '1']], Setting.date_format) %></p>
|
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_attachment_max_size) %></label>
|
|
|
|
<%= text_field_tag 'settings[attachment_max_size]', Setting.attachment_max_size, :size => 6 %> KB</p>
|
2007-01-21 14:50:22 +03:00
|
|
|
|
2007-02-04 18:45:38 +03:00
|
|
|
<p><label><%= l(:setting_issues_export_limit) %></label>
|
|
|
|
<%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
|
|
|
|
|
2007-08-12 19:31:04 +04:00
|
|
|
<p><label><%= l(:setting_cross_project_issue_relations) %></label>
|
|
|
|
<%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %><%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %></p>
|
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_mail_from) %></label>
|
2007-01-21 14:50:22 +03:00
|
|
|
<%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
|
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_host_name) %></label>
|
2007-01-21 14:50:22 +03:00
|
|
|
<%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
|
|
|
|
|
2007-01-21 15:31:16 +03:00
|
|
|
<p><label><%= l(:setting_text_formatting) %></label>
|
2007-09-06 00:51:11 +04:00
|
|
|
<%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), "0"], ["textile", "textile"]], Setting.text_formatting) %></p>
|
2007-01-21 14:50:22 +03:00
|
|
|
|
2007-03-10 18:09:49 +03:00
|
|
|
<p><label><%= l(:setting_wiki_compression) %></label>
|
|
|
|
<%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %></p>
|
|
|
|
|
2007-03-18 21:32:59 +03:00
|
|
|
<p><label><%= l(:setting_feeds_limit) %></label>
|
|
|
|
<%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
|
|
|
|
|
2007-03-25 16:12:15 +04:00
|
|
|
<p><label><%= l(:setting_autofetch_changesets) %></label>
|
|
|
|
<%= check_box_tag 'settings[autofetch_changesets]', 1, Setting.autofetch_changesets? %><%= hidden_field_tag 'settings[autofetch_changesets]', 0 %></p>
|
|
|
|
|
2007-04-01 23:43:59 +04:00
|
|
|
<p><label><%= l(:setting_sys_api_enabled) %></label>
|
|
|
|
<%= check_box_tag 'settings[sys_api_enabled]', 1, Setting.sys_api_enabled? %><%= hidden_field_tag 'settings[sys_api_enabled]', 0 %></p>
|
2007-01-21 14:50:22 +03:00
|
|
|
</div>
|
2007-04-24 17:57:27 +04:00
|
|
|
|
2007-10-01 16:04:24 +04:00
|
|
|
<fieldset class="box"><legend><%= l(:setting_issue_list_default_columns) %></legend>
|
|
|
|
<%= hidden_field_tag 'settings[issue_list_default_columns][]', '' %>
|
|
|
|
<p><% Query.available_columns.each do |column| %>
|
|
|
|
<label><%= check_box_tag 'settings[issue_list_default_columns][]', column.name, Setting.issue_list_default_columns.include?(column.name.to_s) %>
|
|
|
|
<%= l("field_#{column.name}") %></label>
|
|
|
|
<% end %></p>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="box tabular"><legend><%= l(:label_authentication) %></legend>
|
2007-05-06 16:49:32 +04:00
|
|
|
<p><label><%= l(:setting_login_required) %></label>
|
|
|
|
<%= check_box_tag 'settings[login_required]', 1, Setting.login_required? %><%= hidden_field_tag 'settings[login_required]', 0 %></p>
|
|
|
|
|
|
|
|
<p><label><%= l(:setting_autologin) %></label>
|
|
|
|
<%= select_tag 'settings[autologin]', options_for_select( [[l(:label_disabled), "0"]] + [1, 7, 30, 365].collect{|days| [lwr(:actionview_datehelper_time_in_words_day, days), days.to_s]}, Setting.autologin) %></p>
|
|
|
|
|
|
|
|
<p><label><%= l(:setting_self_registration) %></label>
|
|
|
|
<%= check_box_tag 'settings[self_registration]', 1, Setting.self_registration? %><%= hidden_field_tag 'settings[self_registration]', 0 %></p>
|
|
|
|
|
|
|
|
<p><label><%= l(:label_password_lost) %></label>
|
|
|
|
<%= check_box_tag 'settings[lost_password]', 1, Setting.lost_password? %><%= hidden_field_tag 'settings[lost_password]', 0 %></p>
|
|
|
|
</fieldset>
|
|
|
|
|
2007-10-01 16:04:24 +04:00
|
|
|
<fieldset class="box tabular"><legend><%= l(:text_issues_ref_in_commit_messages) %></legend>
|
2007-04-24 17:57:27 +04:00
|
|
|
<p><label><%= l(:setting_commit_ref_keywords) %></label>
|
2007-05-20 22:11:49 +04:00
|
|
|
<%= text_field_tag 'settings[commit_ref_keywords]', Setting.commit_ref_keywords, :size => 30 %><br /><em><%= l(:text_comma_separated) %></em></p>
|
2007-04-24 17:57:27 +04:00
|
|
|
|
|
|
|
<p><label><%= l(:setting_commit_fix_keywords) %></label>
|
|
|
|
<%= text_field_tag 'settings[commit_fix_keywords]', Setting.commit_fix_keywords, :size => 30 %>
|
|
|
|
<%= l(:label_applied_status) %>: <%= select_tag 'settings[commit_fix_status_id]', options_for_select( [["", 0]] + IssueStatus.find(:all).collect{|status| [status.name, status.id.to_s]}, Setting.commit_fix_status_id) %>
|
2007-05-20 22:11:49 +04:00
|
|
|
<br /><em><%= l(:text_comma_separated) %></em></p>
|
2007-04-24 17:57:27 +04:00
|
|
|
</fieldset>
|
|
|
|
|
2007-01-21 14:50:22 +03:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2007-03-18 21:32:59 +03:00
|
|
|
</div>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|