5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 01:26:22 +00:00
panel/app/views/bootstrap/_custom_checkbox_for_field.haml

11 lines
438 B
Text
Raw Permalink Normal View History

- content = t("activerecord.attributes.#{field.object_name}.#{name}")
- id = "#{field.object_name}_#{name}"
- name = "#{field.object_name}[#{name}]"
2024-06-04 16:58:53 +00:00
= render 'bootstrap/custom_checkbox', id: id,
name: name,
content: content,
required: local_assigns[:required],
value: '1' do
= yield