no hace falta vincular al mismo idioma
This commit is contained in:
parent
1cc24cc819
commit
118d399061
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@
|
||||||
options_for_select(@site.everything_of(:materiales_requeridos), @post.get_front_matter(:materiales_requeridos)),
|
options_for_select(@site.everything_of(:materiales_requeridos), @post.get_front_matter(:materiales_requeridos)),
|
||||||
{ class: 'form-control select2', multiple: 'multiple' }
|
{ class: 'form-control select2', multiple: 'multiple' }
|
||||||
%small.text-muted.form-text= t('posts.materiales_requeridos_help')
|
%small.text-muted.form-text= t('posts.materiales_requeridos_help')
|
||||||
- %w[es en ar].each do |lang|
|
- I18n.available_locales.map(&:to_s).each do |lang|
|
||||||
|
- next if lang == @lang
|
||||||
.form-group
|
.form-group
|
||||||
= label_tag 'post_lang', t("posts.lang.#{lang}")
|
= label_tag 'post_lang', t("posts.lang.#{lang}")
|
||||||
= select_tag "post[lang][#{lang}]",
|
= select_tag "post[lang][#{lang}]",
|
||||||
|
|
Loading…
Reference in a new issue