5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 00:46:21 +00:00
panel/app/views/posts/attributes/_boolean.haml

10 lines
391 B
Text
Raw Normal View History

2019-08-23 18:29:07 +00:00
.form-check
2019-08-20 22:11:10 +00:00
= check_box_tag "post[#{attribute}", metadata.value, metadata.value,
2019-08-23 18:29:07 +00:00
class: "form-check-input #{invalid(post, attribute)}",
2019-08-20 22:11:10 +00:00
aria: { describedby: id_for_help(attribute) }
= label_tag "post_#{attribute}", post_label_t(attribute, post: post),
class: 'form-check-label'
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata