mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 16:53:38 +00:00
atributo de fecha
This commit is contained in:
parent
9d462fa2bf
commit
91535e5323
2 changed files with 9 additions and 0 deletions
3
app/views/posts/attribute_ro/_date.haml
Normal file
3
app/views/posts/attribute_ro/_date.haml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
%tr{ id: attribute }
|
||||||
|
%th= post_label_t(attribute, post: post)
|
||||||
|
%td= l metadata.value.to_date
|
6
app/views/posts/attributes/_date.haml
Normal file
6
app/views/posts/attributes/_date.haml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.form-group
|
||||||
|
= label_tag "post_#{attribute}", post_label_t(attribute, post: post)
|
||||||
|
= date_field 'post', attribute, value: metadata.value.strftime('%F'),
|
||||||
|
**field_options(attribute, metadata)
|
||||||
|
= render 'posts/attribute_feedback',
|
||||||
|
post: post, attribute: attribute, metadata: metadata
|
Loading…
Reference in a new issue