fix reload after submit

This commit is contained in:
null
2024-03-05 08:05:31 +01:00
parent 71e1ec06e4
commit 63b76e1579
6 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
<body>
<h2>Create a condition</h2>
<form method="POST" action="/conditions">
<form method="POST" action="/conditions?submitted">
<fieldset>
<label for="symbol">Symbol</label>
<input type="text" name="symbol">
@@ -31,7 +31,7 @@
<fieldset>
<button value="cancel" formmethod="dialog" onclick="window.top.postMessage('close', '*')">Cancel</button>
<button type="submit">Submit</button>
<button type="submit" >Submit</button>
</fieldset>
</form>
</body>
+2 -2
View File
@@ -14,7 +14,7 @@
<body>
<h2>Update a condition</h2>
<form method="POST" action="/conditions/{{ data.id }}">
<form method="POST" action="/conditions/{{ data.id }}?submitted">
<fieldset>
<label>ID</label>
<div>{{ data.id }}</div>
@@ -36,7 +36,7 @@
<button type="submit">Submit</button>
</fieldset>
</form>
<form method="POST" action="/conditions/delete/{{ data.id }}">
<form method="POST" action="/conditions/delete/{{ data.id }}?submitted">
<button class="danger" type="submit">Delete</button>
</form>
</body>