5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 02:16:22 +00:00

fix: editar desde el panel

This commit is contained in:
f 2023-04-08 17:26:56 -03:00
parent b06751e62e
commit a62039b50a
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,6 @@
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td{ dir: dir, lang: locale }
- p = metadata.belongs_to
- if p
= link_to p.title.value, site_post_path(site, p.id)

View file

@ -0,0 +1,7 @@
.form-group
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
= select_tag(plain_field_name_for(base, attribute),
options_for_select(metadata.values, metadata.value),
**field_options(attribute, metadata), include_blank: t('.empty'))
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata