5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 10:46:21 +00:00
panel/app/views/posts/new_array.haml

9 lines
462 B
Text
Raw Normal View History

2024-05-17 18:24:08 +00:00
- item_id = "item-#{Nanoid.generate}"
.mb-2{ id: item_id, data: { target: 'array.item', 'searchable-value': @value.remove_diacritics.downcase, value: @value } }
.d-flex.flex-row.flex-wrap
.flex-grow-1
= render 'bootstrap/custom_checkbox', name: @name, id: "value-#{Nanoid.generate}", value: @value, checked: true, content: @value
%div
%button.btn.btn-sm.m-0{ data: { action: 'array#remove', 'remove-target-param': item_id }}= t('.remove')