2008-01-06 23:24:26 +03:00
|
|
|
<% form_tag({:action => 'edit', :tab => 'issues'}) do %>
|
|
|
|
|
|
|
|
<div class="box tabular settings">
|
|
|
|
<p><label><%= l(:setting_cross_project_issue_relations) %></label>
|
2009-09-13 21:14:35 +04:00
|
|
|
<%= hidden_field_tag 'settings[cross_project_issue_relations]', 0 %>
|
|
|
|
<%= check_box_tag 'settings[cross_project_issue_relations]', 1, Setting.cross_project_issue_relations? %>
|
|
|
|
</p>
|
2008-01-06 23:24:26 +03:00
|
|
|
|
2008-03-06 11:32:56 +03:00
|
|
|
<p><label><%= l(:setting_display_subprojects_issues) %></label>
|
2009-09-13 21:14:35 +04:00
|
|
|
<%= hidden_field_tag 'settings[display_subprojects_issues]', 0 %>
|
|
|
|
<%= check_box_tag 'settings[display_subprojects_issues]', 1, Setting.display_subprojects_issues? %>
|
|
|
|
</p>
|
2008-03-06 11:32:56 +03:00
|
|
|
|
2009-12-11 21:48:34 +03:00
|
|
|
<p><label><%= l(:setting_issue_done_ratio) %></label>
|
2009-12-12 13:15:13 +03:00
|
|
|
<%= select_tag 'settings[issue_done_ratio]',
|
|
|
|
options_for_select(Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]}, Setting.issue_done_ratio) %></p>
|
2009-12-11 21:48:34 +03:00
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<p><label><%= l(:setting_issues_export_limit) %></label>
|
|
|
|
<%= text_field_tag 'settings[issues_export_limit]', Setting.issues_export_limit, :size => 6 %></p>
|
|
|
|
</div>
|
|
|
|
|
2009-02-21 19:15:44 +03:00
|
|
|
<fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend>
|
2008-01-06 23:24:26 +03:00
|
|
|
<%= hidden_field_tag 'settings[issue_list_default_columns][]', '' %>
|
2009-02-21 01:59:59 +03:00
|
|
|
<% Query.new.available_columns.each do |column| %>
|
2009-02-21 19:15:44 +03:00
|
|
|
<label><%= check_box_tag 'settings[issue_list_default_columns][]', column.name, Setting.issue_list_default_columns.include?(column.name.to_s) %>
|
|
|
|
<%= column.caption %></label><br />
|
2009-02-21 01:59:59 +03:00
|
|
|
<% end %>
|
2008-01-06 23:24:26 +03:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|