mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:36:21 +00:00
fix: no ordenar los valores
This commit is contained in:
parent
19e8933388
commit
270684485c
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@
|
|||
Para poder cancelar, mantenemos el estado original y desactivamos
|
||||
o activamos los ítemes según estén incluidos en esa lista o no.
|
||||
%ul.placeholder-glow{ data: { target: 'array.current' } }
|
||||
- metadata.value.sort_by(&:remove_diacritics).each do |value|
|
||||
- metadata.value.each do |value|
|
||||
= render 'posts/new_array_value', value: value
|
||||
|
||||
= render 'bootstrap/modal', id: id, modal_content_attributes: { class: 'h-100' }, hide_actions: ['array#cancel'], keydown_actions: %w[keydown->array#cancelWithEscape] do
|
||||
|
@ -46,8 +46,8 @@
|
|||
|
||||
- content_for :"#{id}_body" do
|
||||
.form-group.mb-0{ id: "#{id}_body" }
|
||||
-# Eliminamos las tildes para poder buscar independientemente de cómo se escriba
|
||||
- metadata.values.sort_by(&:remove_diacritics).each do |value|
|
||||
-# Eliminamos las tildes para poder buscar independientemente de cómo se escriba.
|
||||
- metadata.values.each do |value|
|
||||
.mb-2{ data: { target: 'array.item', 'searchable-value': value.remove_diacritics.downcase, value: value } }
|
||||
= render 'bootstrap/custom_checkbox', name: name, id: random_id, value: value, checked: metadata.value.include?(value), content: value, data: { action: 'required-checkbox#change', target: 'required-checkbox.checkbox' }
|
||||
|
||||
|
|
Loading…
Reference in a new issue