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

9 lines
469 B
Text
Raw Normal View History

- item_id = random_id
2024-05-17 18:24:08 +00:00
2024-07-04 18:02:17 +00:00
= render 'targets/array/item', value: @value, class: 'mb-2', id: item_id do
2024-05-17 18:24:08 +00:00
.d-flex.flex-row.flex-wrap
.flex-grow-1
= render 'bootstrap/custom_checkbox', name: @name, id: random_id, value: @value, checked: true, content: @value, data: { action: 'required-checkbox#change', 'required-checkbox-target': 'checkbox' }
2024-05-17 18:24:08 +00:00
%div
2024-05-17 18:30:25 +00:00
%button.btn.btn-sm.m-0{ data: { action: 'array#remove', 'remove-target-param': item_id } }= t('.remove')