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

8 lines
268 B
Text

- field_name = field_name_for_post_as_string(name)
= hidden_field_tag field_name, 'false'
.form-check
= check_box_tag field_name,
'true',
value == 'true',
class: 'form-check-input'
= label_tag field_name, t('posts.checkbox'), class: 'form-check-label'