This commit is contained in:
f 2020-01-23 18:37:09 -03:00
parent 46f3cc1d90
commit c0de7d8d48
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -1,6 +1,6 @@
.form-group
= label_tag "post_#{attribute}", post_label_t(attribute, post: post)
= date_field 'post', attribute, value: metadata.value.strftime('%F'),
= date_field 'post', attribute, value: metadata.value.to_date.strftime('%F'),
**field_options(attribute, metadata)
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata