indicar cuándo se vacía un select

This commit is contained in:
f 2021-03-30 17:39:48 -03:00
parent 602e8cc9cf
commit 67f145cb3f
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -481,6 +481,8 @@ en:
image:
label: Imagen
destroy: Remove image
belongs_to:
empty: "(Empty)"
reorder:
submit: 'Save order'
select: 'Select this post'

View file

@ -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'