Apply Style/CollectionMethods rule to ERB files
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<div class="small-12 medium-6">
|
<div class="small-12 medium-6">
|
||||||
<%= f.select(:administrator_id,
|
<%= f.select(:administrator_id,
|
||||||
@admins.collect { |a| [a.description_or_name_and_email, a.id] },
|
@admins.map { |a| [a.description_or_name_and_email, a.id] },
|
||||||
{ include_blank: t("admin.budget_investments.edit.undefined") }) %>
|
{ include_blank: t("admin.budget_investments.edit.undefined") }) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<p id="assigned_valuator_groups">
|
<p id="assigned_valuator_groups">
|
||||||
<strong><%= t("admin.budget_investments.show.valuator_groups") %>:</strong>
|
<strong><%= t("admin.budget_investments.show.valuator_groups") %>:</strong>
|
||||||
<% if @investment.valuator_groups.any? %>
|
<% if @investment.valuator_groups.any? %>
|
||||||
<%= @investment.valuator_groups.collect(&:name).join(", ") %>
|
<%= @investment.valuator_groups.map(&:name).join(", ") %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= t("admin.budget_investments.show.undefined") %>
|
<%= t("admin.budget_investments.show.undefined") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<p id="assigned_valuators">
|
<p id="assigned_valuators">
|
||||||
<strong><%= t("admin.budget_investments.show.assigned_valuators") %>:</strong>
|
<strong><%= t("admin.budget_investments.show.assigned_valuators") %>:</strong>
|
||||||
<% if @investment.valuators.any? %>
|
<% if @investment.valuators.any? %>
|
||||||
<%= @investment.valuators.collect(&:name_and_email).join(", ") %>
|
<%= @investment.valuators.map(&:name_and_email).join(", ") %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= t("admin.budget_investments.show.undefined") %>
|
<%= t("admin.budget_investments.show.undefined") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 medium-6 margin-bottom column">
|
<div class="small-12 medium-6 margin-bottom column">
|
||||||
<%= f.select :status_id,
|
<%= f.select :status_id,
|
||||||
@statuses.collect { |s| [s.name, s.id] },
|
@statuses.map { |s| [s.name, s.id] },
|
||||||
{ include_blank: @statuses.any? ? "" : t("admin.milestones.form.no_statuses_defined") },
|
{ include_blank: @statuses.any? ? "" : t("admin.milestones.form.no_statuses_defined") },
|
||||||
{ disabled: @statuses.blank? } %>
|
{ disabled: @statuses.blank? } %>
|
||||||
<%= link_to t("admin.milestones.form.admin_statuses"),
|
<%= link_to t("admin.milestones.form.admin_statuses"),
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
<%= f.select :id,
|
<%= f.select :id,
|
||||||
@booths.collect { |booth| [booth.location, booth.id] },
|
@booths.map { |booth| [booth.location, booth.id] },
|
||||||
selected: @booths.first,
|
selected: @booths.first,
|
||||||
label: false,
|
label: false,
|
||||||
tabindex: "1" %>
|
tabindex: "1" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user