Assign groups to investments
This commit is contained in:
@@ -59,6 +59,16 @@
|
||||
class: 'js-tag-list' %>
|
||||
</div>
|
||||
|
||||
<p>Groups</p>
|
||||
<div class="small-12 column">
|
||||
<%= f.label :valuator_ids, "Groups assigned" %>
|
||||
<%= f.collection_check_boxes :valuator_group_ids, @valuator_groups, :id, :name do |group| %>
|
||||
|
||||
<%= group.label(title: group.object.name) { group.check_box + truncate(group.object.name, length: 60) } %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<p>Valuators</p>
|
||||
<div class="small-12 column">
|
||||
<%= f.label :valuator_ids, t("admin.budget_investments.edit.assigned_valuators") %>
|
||||
|
||||
@@ -68,7 +78,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row margin-top">
|
||||
<% if @investment.incompatible? || @investment.winner? %>
|
||||
<div class="small-12 medium-3 column">
|
||||
|
||||
@@ -22,6 +22,15 @@
|
||||
<%= @investment.tags_on(:valuation).pluck(:name).sort.join(', ') %>
|
||||
</p>
|
||||
|
||||
<p id="assigned_valuator_groups">
|
||||
<strong>Valuator Groups:</strong>
|
||||
<% if @investment.valuator_groups.any? %>
|
||||
<%= @investment.valuator_groups.collect(&:name).join(', ') %>
|
||||
<% else %>
|
||||
<%= t("admin.budget_investments.show.undefined") %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<p id="assigned_valuators">
|
||||
<strong><%= t("admin.budget_investments.show.assigned_valuators") %>:</strong>
|
||||
<% if @investment.valuators.any? %>
|
||||
|
||||
Reference in New Issue
Block a user