2020-07-21 22:19:40 +00:00
|
|
|
.form-group
|
2020-11-27 22:32:16 +00:00
|
|
|
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
|
|
|
= text_field base, attribute, value: metadata.value,
|
2020-07-21 22:19:40 +00:00
|
|
|
dir: dir, lang: locale, list: id_for_datalist(attribute),
|
|
|
|
pattern: metadata.values.values.join('|'), autocomplete: 'off',
|
|
|
|
**field_options(attribute, metadata)
|
|
|
|
= render 'posts/attribute_feedback',
|
|
|
|
post: post, attribute: attribute, metadata: metadata
|
|
|
|
|
|
|
|
-# TODO: Ocultar el UUID
|
|
|
|
%datalist{ id: id_for_datalist(attribute) }
|
|
|
|
- metadata.values.each_pair do |key, value|
|
|
|
|
%option{ value: value }= key
|