diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 6e06ca9..f772b09 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -44,12 +44,18 @@ = label_tag 'post_categories', t('posts.categories') = select_tag 'post[categories][]', options_for_select(@site.categories(lang: @lang), @post.categories), - { class: 'form-control select2', multiple: 'multiple' } + { class: 'form-control select2', multiple: 'multiple', + data: { tags: true, + placeholder: t('posts.select.placeholder'), + 'allow-clear': true } } .form-group = label_tag 'post_tags', t('posts.tags') = select_tag 'post[tags][]', options_for_select(@site.tags(lang: @lang), @post.tags), - { class: 'form-control select2', multiple: 'multiple' } + { class: 'form-control select2', multiple: 'multiple', + data: { tags: true, + placeholder: t('posts.select.placeholder'), + 'allow-clear': true } } .form-group = label_tag 'post_slug', t('posts.slug') = text_field 'post', 'slug', value: @post.slug,