5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 12:36:22 +00:00
panel/app/views/posts/attributes/_has_one.haml

8 lines
392 B
Text
Raw Permalink Normal View History

2023-04-08 20:26:56 +00:00
.form-group
= label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
= select_tag(plain_field_name_for(base, attribute),
2024-06-04 15:49:37 +00:00
options_for_select(metadata.values, metadata.value),
**field_options(attribute, metadata), include_blank: t('.empty'))
2023-04-08 20:26:56 +00:00
= render 'posts/attribute_feedback',
2024-06-04 15:49:37 +00:00
post: post, attribute: attribute, metadata: metadata