scinote-web/app/components/reports/text_input_component.html.erb
aignatov-bio d18a54c874
Update create and update action for reports controller [SCI-5641] (#3260)
Update create and update action [SCI-5641]
2021-04-20 13:35:40 +02:00

8 lines
278 B
Text

<% if @editing %>
<div class="sci-input-container">
<%= label_tag @name, @label %>
<%= text_field_tag @name, @value, placeholder: @placeholder, class: 'sci-input-field input-large', data: { type: 'TextInputComponent' } %>
</div>
<% else %>
<%= @value %>
<% end %>