mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 11:23:40 +00:00
agregar opción "en blanco"
This commit is contained in:
parent
8c2928e833
commit
5d89afdd64
3 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
- value = [] if value.nil?
|
- value = [] if value.nil?
|
||||||
- values = template.values.empty? ? [value].flatten : template.values
|
- values = template.values.empty? ? [value].flatten : template.values
|
||||||
= select_tag field_name_for_post_as_string(name),
|
= select_tag field_name_for_post_as_string(name),
|
||||||
options_for_select(values, value),
|
options_for_select([t('posts.blank'), nil] + values, value),
|
||||||
{ class: 'form-control select2',
|
{ class: 'form-control select2',
|
||||||
multiple: template.multiple?,
|
multiple: template.multiple?,
|
||||||
required: template.required?,
|
required: template.required?,
|
||||||
|
|
|
@ -243,3 +243,4 @@ en:
|
||||||
url: 'The address must start with http:// or https://'
|
url: 'The address must start with http:// or https://'
|
||||||
invalid_help: It looks like the form is incomplete. Check the red-colored fields to complete it.
|
invalid_help: It looks like the form is incomplete. Check the red-colored fields to complete it.
|
||||||
sending_help: Saving, please wait...
|
sending_help: Saving, please wait...
|
||||||
|
blank: Nothing
|
||||||
|
|
|
@ -250,3 +250,4 @@ es:
|
||||||
url: 'La dirección debe comenzar con http:// o https://'
|
url: 'La dirección debe comenzar con http:// o https://'
|
||||||
invalid_help: Parece que el formulario no está completo. Verifica los campos marcados en rojo para completarlo.
|
invalid_help: Parece que el formulario no está completo. Verifica los campos marcados en rojo para completarlo.
|
||||||
sending_help: Guardando, por favor espera...
|
sending_help: Guardando, por favor espera...
|
||||||
|
blank: En blanco
|
||||||
|
|
Loading…
Reference in a new issue