sutty/app/views/posts/attributes/_date.haml

7 lines
300 B
Plaintext
Raw Normal View History

2019-11-15 14:13:21 +00:00
.form-group
= label_tag "post_#{attribute}", post_label_t(attribute, post: post)
2020-01-23 21:37:09 +00:00
= date_field 'post', attribute, value: metadata.value.to_date.strftime('%F'),
2019-11-15 14:13:21 +00:00
**field_options(attribute, metadata)
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata