mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 01:06:22 +00:00
fix: mostrar botones de acción en masa
This commit is contained in:
parent
1dae918a17
commit
8f91b748ff
2 changed files with 5 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
- local_assigns[:method] ||= 'patch'
|
- local_assigns[:method] ||= 'patch'
|
||||||
- local_assigns[:class] ||= 'btn-secondary'
|
- local_assigns[:class] ||= 'btn-secondary'
|
||||||
- local_assigns[:class] = "btn #{local_assigns[:class]}"
|
- local_assigns[:class] = "btn #{local_assigns[:class]}"
|
||||||
|
- local_assigns.delete(:text)
|
||||||
|
|
||||||
-# @todo path es obligatorio
|
= button_to(path, **local_assigns.compact) do
|
||||||
= button_to local_assigns[:path], **local_assigns.compact do
|
|
||||||
= text
|
= text
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
-#
|
-#
|
||||||
@param name [String]
|
@param name [String]
|
||||||
@param value [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
|
||||||
|
|
Loading…
Reference in a new issue