mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 13:14:29 +08:00
8 lines
323 B
Text
8 lines
323 B
Text
<% 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', data: { type: 'TeamMemberInputComponent' } %>
|
|
</div>
|
|
<% else %>
|
|
<%= @value %>
|
|
<% end %>
|