mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:26:22 +00:00
feat: validar formularios htmx
This commit is contained in:
parent
e2af1f215a
commit
798bb992dc
1 changed files with 6 additions and 1 deletions
|
@ -27,7 +27,12 @@
|
|||
multipart: true,
|
||||
class: 'form post ',
|
||||
'hx-swap': params.require(:swap),
|
||||
'hx-target': "##{params.require(:target)}"
|
||||
'hx-target': "##{params.require(:target)}",
|
||||
'hx-validate': true,
|
||||
data: {
|
||||
controller: 'form-validation',
|
||||
action: 'form-validation#submit'
|
||||
}
|
||||
}
|
||||
|
||||
if post.new?
|
||||
|
|
Loading…
Reference in a new issue