mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
14 lines
416 B
Text
14 lines
416 B
Text
<div>
|
|
<%= label_tag "#{@name}[]", @label %>
|
|
<ul>
|
|
<% @items.each do |key, value| %>
|
|
<li>
|
|
<div class="sci-checkbox-container">
|
|
<%= check_box_tag "#{@name}[]", key, (@value && @value[key.to_s] == 'true'), class: 'sci-checkbox', data: { type: 'MultiCheckboxInputComponent' } %>
|
|
<span class="sci-checkbox-label"></span>
|
|
</div>
|
|
<%= value %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|