2019-08-23 18:29:07 +00:00
|
|
|
.form-group
|
2020-11-27 22:32:16 +00:00
|
|
|
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
|
2019-08-13 19:09:23 +00:00
|
|
|
= render 'posts/attribute_feedback',
|
|
|
|
post: post, attribute: attribute, metadata: metadata
|
2020-11-14 15:10:55 +00:00
|
|
|
|
2021-02-13 01:14:36 +00:00
|
|
|
.editor{ id: attribute, data: { editor: '' } }
|
2020-11-20 18:01:13 +00:00
|
|
|
-# Esto es para luego decirle al navegador que se olvide estas cosas.
|
|
|
|
= hidden_field_tag 'storage_keys[]', "#{request.original_url}##{attribute}", data: { target: 'storage-key' }
|
2020-11-18 14:06:59 +00:00
|
|
|
.alert.alert-info
|
|
|
|
:markdown
|
|
|
|
#{t('editor.alert')}
|
2021-05-22 21:17:00 +00:00
|
|
|
= text_area_tag "#{base}[#{attribute}]", metadata.value.html_safe,
|
2020-11-14 15:10:55 +00:00
|
|
|
dir: dir, lang: locale,
|
2021-05-22 21:17:00 +00:00
|
|
|
**field_options(attribute, metadata)
|