mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
11 lines
372 B
Text
11 lines
372 B
Text
<% if @editing %>
|
|
<div class="checkbox-value-container">
|
|
<div class="sci-checkbox-container">
|
|
<%= check_box_tag @name, true, @value, class: 'sci-checkbox', data: { type: 'CheckboxInputComponent' } %>
|
|
<span class="sci-checkbox-label"></span>
|
|
</div>
|
|
<%= @label %>
|
|
</div>
|
|
<% else %>
|
|
<div class="template-checkbox <%= 'selected' if @value %>"></div>
|
|
<% end %>
|