5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-17 17:46:22 +00:00
panel/app/views/posts/template_field/_check_box.haml

7 lines
201 B
Text
Raw Normal View History

- root, field_name = field_name_for_post(name)
= hidden_field root, field_name, value: 'false'
= check_box_tag field_name_for_post_as_string(name),
'true',
value == 'true',
class: 'form-control'