scinote-web/app/components/reports/team_member_input_component.html.erb

9 lines
279 B
Text
Raw Normal View History

<% if @editing %>
<div class="sci-input-container">
<%= label_tag @name, @label %>
<%= select_tag @name, options_from_collection_for_select(@team_members, :id, :name), placeholder: @placeholder, class: 'sci-input-field' %>
</div>
<% else %>
<%= @value %>
<% end %>