summaryrefslogtreecommitdiff
path: root/components/add_action_form.html
diff options
context:
space:
mode:
Diffstat (limited to 'components/add_action_form.html')
-rw-r--r--components/add_action_form.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/add_action_form.html b/components/add_action_form.html
index 70403dc..95c869f 100644
--- a/components/add_action_form.html
+++ b/components/add_action_form.html
@@ -1,5 +1,6 @@
{{define "actionform"}}
<div id="actionform">
+ <button button id="create-form-btn" type="submit" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" hx-get="/hideform" hx-target="#actionform">HIDE FORM</button>
<h1>Add action</h1>
<form method="POST">
<label>Name:</label><br />
@@ -16,3 +17,9 @@
</form>
</div>
{{end}}
+
+{{define "showformbtn"}}
+<div id="actionform">
+ <button button id="create-form-btn" type="submit" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" hx-get="/showform" hx-target="#actionform">SHOW FORM</button>
+</div>
+{{end}}