From 1d0b8cc4d5b611bdd8358d4c7ccb183c560f79c1 Mon Sep 17 00:00:00 2001 From: SphericalKat Date: Thu, 7 Oct 2021 06:08:25 +0530 Subject: [PATCH] feat(pastes): allow form submission using Ctrl/Cmd + S Signed-off-by: SphericalKat --- lib/ketbin_web/templates/page/form.html.heex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/ketbin_web/templates/page/form.html.heex b/lib/ketbin_web/templates/page/form.html.heex index 9a696ec..3a45ee6 100644 --- a/lib/ketbin_web/templates/page/form.html.heex +++ b/lib/ketbin_web/templates/page/form.html.heex @@ -1,4 +1,12 @@ -<%= form_for @changeset, @action, [class: "flex flex-col w-full h-full relative"], fn f -> %> +<%= form_for @changeset, @action, [class: "flex flex-col w-full h-full relative", id: "page_form"], fn f -> %> + <%= if @changeset.action do %>

Oops, something went wrong!