5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-05 16:36:56 +00:00
panel/app/views/posts/attributes/_content.haml

15 lines
630 B
Text
Raw Normal View History

2019-08-23 18:29:07 +00:00
.form-group
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
= 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: '' } }
-# 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)