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

fix: mostrar botones de acción en masa

This commit is contained in:
f 2024-03-16 14:27:28 -03:00
parent 1dae918a17
commit 8f91b748ff
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -3,7 +3,7 @@
- local_assigns[:method] ||= 'patch'
- local_assigns[:class] ||= 'btn-secondary'
- local_assigns[:class] = "btn #{local_assigns[:class]}"
- local_assigns.delete(:text)
-# @todo path es obligatorio
= button_to local_assigns[:path], **local_assigns.compact do
= button_to(path, **local_assigns.compact) do
= text

View file

@ -1,4 +1,6 @@
-#
@param name [String]
@param value [String]
%button.dropdown-item{type: 'submit', data: { target: 'dropdown.item' }, name: name, value: value, **local_assigns.compact }
@param text [String]
- local_assigns.delete(:text)
%button.dropdown-item{type: 'submit', data: { target: 'dropdown.item' }, name: name, value: value, **local_assigns.compact }= text