10 lines
398 B
Plaintext
10 lines
398 B
Plaintext
![]() |
.form-check{ class: invalid(post, attribute) }
|
||
|
= check_box_tag "post[#{attribute}", metadata.value, metadata.value,
|
||
|
class: 'form-check-input',
|
||
|
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
|