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

9 lines
278 B
Text
Raw Normal View History

<% 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 %>