mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-11-17 18:40:36 -05:00
An issue subject containing the placeholder (e.g. an issue template's "Frame Evaluation // <VEHICLE>") gets the issue's vehicle when it's saved with one: on creation, or the first save after a vehicle is added (journaled like any subject change). The placeholder is a plugin setting, "Vehicle in subjects": <VEHICLE> by default (also for settings saved before it existed), blank turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
802 B
ERB
15 lines
802 B
ERB
<div class="box tabular">
|
|
<p>
|
|
<label for="settings_mileage_custom_field_id"><%= l(:label_mileage_custom_field) %></label>
|
|
<%= select_tag 'settings[mileage_custom_field_id]',
|
|
options_from_collection_for_select(IssueCustomField.sorted, :id, :name, settings['mileage_custom_field_id'].to_i),
|
|
include_blank: true, id: 'settings_mileage_custom_field_id' %>
|
|
<em class="info"><%= l(:text_mileage_custom_field_info) %></em>
|
|
</p>
|
|
<p>
|
|
<label for="settings_subject_placeholder"><%= l(:label_subject_vehicle_placeholder) %></label>
|
|
<%= text_field_tag 'settings[subject_placeholder]', Vehicle.subject_placeholder, id: 'settings_subject_placeholder', size: 20 %>
|
|
<em class="info"><%= l(:text_subject_vehicle_placeholder_info) %></em>
|
|
</p>
|
|
</div>
|