mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:36:21 +00:00
usar el uuid del post para reordenar
This commit is contained in:
parent
3e442865ab
commit
2d0090c488
1 changed files with 3 additions and 3 deletions
|
@ -93,15 +93,15 @@
|
|||
TODO: Solo les usuaries cachean porque tenemos que separar
|
||||
les botones por permisos.
|
||||
- cache_if @usuarie, [post, I18n.locale] do
|
||||
- checkbox_id = "checkbox-#{post.id}"
|
||||
%tr{ id: post.id, data: { target: 'reorder.row' } }
|
||||
- checkbox_id = "checkbox-#{post.post_id}"
|
||||
%tr{ id: post.post_id, data: { target: 'reorder.row' } }
|
||||
%td
|
||||
.custom-control.custom-checkbox
|
||||
%input.custom-control-input{ id: checkbox_id, type: 'checkbox', autocomplete: 'off', data: { action: 'reorder#select' } }
|
||||
%label.custom-control-label{ for: checkbox_id }
|
||||
%span.sr-only= t('posts.reorder.select')
|
||||
-# Orden más alto es mayor prioridad
|
||||
= hidden_field 'post[reorder]', post.id,
|
||||
= hidden_field 'post[reorder]', post.post_id,
|
||||
value: size - i,
|
||||
data: { reorder: true }
|
||||
%td.w-100{ class: dir }
|
||||
|
|
Loading…
Reference in a new issue