summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-04-21 17:10:39 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-04-21 17:10:39 +0200
commit996f7a0d798452bd7ca134ada2871bc24c91e519 (patch)
treed7ed2372a2e2b3bae76682af46fb15dd8c845a5e /templates
parent9594dac4ac43b4e038d307da59709887e24eb441 (diff)
downloadshopping-list-996f7a0d798452bd7ca134ada2871bc24c91e519.tar.gz
shopping-list-996f7a0d798452bd7ca134ada2871bc24c91e519.zip
add a base_path environment variable
Diffstat (limited to 'templates')
-rw-r--r--templates/template.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/template.html b/templates/template.html
index 5c0c84f..bbb10cb 100644
--- a/templates/template.html
+++ b/templates/template.html
@@ -176,7 +176,7 @@
                 {{ end }}
 
                 {{ .Text }}
-                <form action="toggle" method="POST">
+                <form action="{{ $.base_path }}toggle" method="POST">
                     <input type="hidden" name="id" value="{{ .ID }}" />
                     <button type="submit" />
                 </form>
@@ -184,13 +184,13 @@
             {{ end }}
         </ul>
 
-        <form action="create" method="POST">
+        <form action="{{ .base_path }}create" method="POST">
             <div class="input-container">
                 <input type="text" id="newItem" name="newItem" tabindex="0"/>
             </div>
         </form>
 
-        <form action="delete" method="POST">
+            <form action="{{ .base_path }}delete" method="POST">
             <button type="submit" class="delete-button">Delete Selected Items</button>
         </form>