mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
d18a54c874
Update create and update action [SCI-5641]
8 lines
278 B
Text
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 %>
|