mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 20:24:43 +08:00
9 lines
227 B
Text
9 lines
227 B
Text
|
<% if @editing %>
|
||
|
<div class="sci-input-container">
|
||
|
<%= label_tag @name, @label %>
|
||
|
<%= text_area_tag @name, @value, placeholder: @placeholder, class: 'sci-input-field' %>
|
||
|
</div>
|
||
|
<% else %>
|
||
|
<%= @value %>
|
||
|
<% end %>
|