mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Redmine has no default-project setting for new issues, so the preview page used the first project the user could add issues to whenever an appointment had no project. The plugin settings now have a Default project; the order is: project chosen on the page, the appointment's project, the default project, then the first allowed project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
27 lines
1.3 KiB
ERB
27 lines
1.3 KiB
ERB
<fieldset class="box tabular">
|
|
<legend><%= l(:label_estimate_issue_settings) %></legend>
|
|
|
|
<p>
|
|
<label for="settings_item_codes"><%= l(:label_estimate_item_codes) %></label>
|
|
<%= text_area_tag 'settings[item_codes]', settings['item_codes'], rows: 5, cols: 30, id: 'settings_item_codes' %>
|
|
<em class="info"><%= l(:text_estimate_item_codes_info) %></em>
|
|
</p>
|
|
|
|
<p>
|
|
<label for="settings_default_project_id"><%= l(:label_default_project) %></label>
|
|
<%= select_tag 'settings[default_project_id]',
|
|
project_tree_options_for_select(Project.active.sorted,
|
|
selected: Project.find_by(id: settings['default_project_id'].to_i)),
|
|
include_blank: true, id: 'settings_default_project_id' %>
|
|
<em class="info"><%= l(:text_default_project_info) %></em>
|
|
</p>
|
|
|
|
<p>
|
|
<label for="settings_default_tracker_id"><%= l(:label_default_tracker) %></label>
|
|
<%= select_tag 'settings[default_tracker_id]',
|
|
options_from_collection_for_select(Tracker.sorted, :id, :name, settings['default_tracker_id'].to_i),
|
|
include_blank: true, id: 'settings_default_tracker_id' %>
|
|
<em class="info"><%= l(:text_default_tracker_info) %></em>
|
|
</p>
|
|
</fieldset>
|