5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 15:46:21 +00:00

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) = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post)
= select_tag(plain_field_name_for(base, attribute), = select_tag(plain_field_name_for(base, attribute),
options_for_select(metadata.values, metadata.value), 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', = render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata post: post, attribute: attribute, metadata: metadata

View file

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

View file

@ -490,6 +490,8 @@ es:
image: image:
label: Imagen label: Imagen
destroy: 'Eliminar imagen' destroy: 'Eliminar imagen'
belongs_to:
empty: "(Vacío)"
reorder: reorder:
submit: 'Guardar orden' submit: 'Guardar orden'
select: 'Seleccionar este artículo' select: 'Seleccionar este artículo'