2021-04-19 16:17:44 +08:00
|
|
|
<% if @editing %>
|
2021-05-03 21:17:09 +08:00
|
|
|
<div class="sci-select-container">
|
2021-04-19 16:17:44 +08:00
|
|
|
<%= label_tag @name, @label %>
|
2021-05-21 20:19:58 +08:00
|
|
|
<%= select_tag @name, options_from_collection_for_select(@project_members, :id, :name, @value), placeholder: @placeholder, class: 'sci-input-field report-template-value-dropdown', data: { type: 'ProjectMembersInputComponent' }, multiple: true %>
|
2021-04-19 16:17:44 +08:00
|
|
|
</div>
|
|
|
|
<% else %>
|
2021-04-28 20:37:16 +08:00
|
|
|
<% @project_members.where(id: @value).each do |member| %>
|
|
|
|
<%= member.public_send(@displayed_field) %>
|
2021-04-19 16:17:44 +08:00
|
|
|
<br>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|