listado de autorxs
This commit is contained in:
parent
cd1c678f60
commit
c40538a9f7
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
||||||
- if current_user.is_a? Usuaria
|
- if current_user.is_a? Usuaria
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag 'post_author', t('posts.author')
|
= label_tag 'post_author', t('posts.author')
|
||||||
- todxs = (@site.usuarias + @site.invitadxs).map(&:username)
|
- todxs = (@site.usuarias + @site.invitadxs).compact.uniq.map(&:username)
|
||||||
= select_tag 'post[author]',
|
= select_tag 'post[author]',
|
||||||
options_for_select(todxs, @post.author || current_user.email),
|
options_for_select(todxs, @post.author || current_user.email),
|
||||||
{ class: 'form-control select2',
|
{ class: 'form-control select2',
|
||||||
|
|
Loading…
Reference in a new issue