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

9 lines
268 B
Text
Raw Permalink Normal View History

2018-06-22 18:43:14 +00:00
- field_name = field_name_for_post_as_string(name)
= hidden_field_tag field_name, 'false'
2018-06-22 18:43:14 +00:00
.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'