From 8c6a70af2b94735f834671b468e5b79cfd14a335 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 24 May 2024 13:10:55 -0300 Subject: [PATCH] fix: generar los formularios asociados --- app/views/layouts/application.html.haml | 1 - app/views/posts/_form.haml | 3 +++ app/views/posts/_htmx_form.haml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 65d3f777..eaa15eb4 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -25,7 +25,6 @@ = render 'layouts/breadcrumb' = render 'layouts/flash' - = yield(:post_form) = yield - if flash[:js] diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 92bee939..c04f062f 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -45,3 +45,6 @@ -# Botones de guardado = render 'posts/submit', site: site, post: post + +-# Formularios usados por los modales += yield(:post_form) diff --git a/app/views/posts/_htmx_form.haml b/app/views/posts/_htmx_form.haml index cfc4071a..378278f7 100644 --- a/app/views/posts/_htmx_form.haml +++ b/app/views/posts/_htmx_form.haml @@ -40,3 +40,5 @@ -# Dibuja cada atributo = render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale, except: except + += yield(:post_form)