5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-07 10:05:45 +00:00
panel/app/views/posts/template_field/_select.haml

10 lines
368 B
Plaintext
Raw Normal View History

= select_tag field_name_for_post_as_string(name),
options_for_select(template.values, @post.get_front_matter(template)),
{ class: 'form-control select2',
multiple: template.multiple?,
required: template.required?,
data: { tags: template.open?,
placeholder: t('posts.select.placeholder')}}
- if template.open?
%small.text-muted.form-text= t('posts.open')