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

9 lines
270 B
Text
Raw Normal View History

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