5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:41:41 +00:00

metadatos para textos largos sin formato

This commit is contained in:
f 2019-10-03 15:20:17 -03:00
parent bbb862abef
commit fa4769531e
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# frozen_string_literal: true
# Un campo de texto largo
class MetadataText < MetadataString
end

View file

@ -0,0 +1,3 @@
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td= metadata.value

View file

@ -0,0 +1,6 @@
.form-group
= label_tag "post_#{attribute}", post_label_t(attribute, post: post)
= text_area_tag "post[#{attribute}]", metadata.value,
**field_options(attribute, metadata)
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata