Use translated model names in issue type select

This commit is contained in:
Anton Khorev 2024-12-05 12:29:13 +03:00
parent 0b97b6bc34
commit 1c7ead6008
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@
</div> </div>
<div class="mb-3 col-md-auto"> <div class="mb-3 col-md-auto">
<%= select_tag :issue_type, <%= select_tag :issue_type,
options_for_select(@issue_types, params[:issue_type]), options_for_select(@issue_types.map { |issue_type| [issue_type.constantize.model_name.human, issue_type] }, params[:issue_type]),
:include_blank => t(".select_type"), :include_blank => t(".select_type"),
:data => { :behavior => "category_dropdown" }, :data => { :behavior => "category_dropdown" },
:class => "form-select" %> :class => "form-select" %>

View file

@ -59,6 +59,7 @@ en:
message: "Message" message: "Message"
node: "Node" node: "Node"
node_tag: "Node Tag" node_tag: "Node Tag"
note: "Note"
old_node: "Old Node" old_node: "Old Node"
old_node_tag: "Old Node Tag" old_node_tag: "Old Node Tag"
old_relation: "Old Relation" old_relation: "Old Relation"