From 67f145cb3fd47b5f958d599a58da5ae166d19ef2 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 30 Mar 2021 17:39:48 -0300 Subject: [PATCH] =?UTF-8?q?indicar=20cu=C3=A1ndo=20se=20vac=C3=ADa=20un=20?= =?UTF-8?q?select?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/attributes/_belongs_to.haml | 2 +- config/locales/en.yml | 2 ++ config/locales/es.yml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/posts/attributes/_belongs_to.haml b/app/views/posts/attributes/_belongs_to.haml index 2d17c3f..b0d21f3 100644 --- a/app/views/posts/attributes/_belongs_to.haml +++ b/app/views/posts/attributes/_belongs_to.haml @@ -2,6 +2,6 @@ = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) = select_tag(plain_field_name_for(base, attribute), options_for_select(metadata.values, metadata.value), - **field_options(attribute, metadata), include_blank: true) + **field_options(attribute, metadata), include_blank: t('.empty')) = render 'posts/attribute_feedback', post: post, attribute: attribute, metadata: metadata diff --git a/config/locales/en.yml b/config/locales/en.yml index 4a84301..cfcaffd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -481,6 +481,8 @@ en: image: label: Imagen destroy: Remove image + belongs_to: + empty: "(Empty)" reorder: submit: 'Save order' select: 'Select this post' diff --git a/config/locales/es.yml b/config/locales/es.yml index 62c3f8e..dc25d04 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -490,6 +490,8 @@ es: image: label: Imagen destroy: 'Eliminar imagen' + belongs_to: + empty: "(Vacío)" reorder: submit: 'Guardar orden' select: 'Seleccionar este artículo'