Skip to content

Commit

Permalink
Fixes for template paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaoverton committed Jan 23, 2024
1 parent 52c683b commit 9a43916
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/resources/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
{% endif %}
{% endif %}

<h3>Return to <a href="{{ page.root }}{{ table_name }}?offset={{ row_number - 1 }}">{{ table_name }}</a> table.</h3>
<h3>Return to <a href="{{ page.root }}{{ table_name }}{% if row_number %}?offset={{ row_number - 1 }}{% endif %}">{{
table_name }}</a> table.</h3>

<div class="row" style="padding-bottom:5px; padding-top:20px;">
<form method="post">
Expand Down
2 changes: 1 addition & 1 deletion src/resources/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
Actions
</a>
<form class="dropdown-menu" method="POST" action="">
<form class="dropdown-menu" method="POST" action="{{ page.root }}{{ table_name }}">
<button class="dropdown-item" type="submit" name="save" value="Save">
<i class="bi bi-save"></i>
Save
Expand Down
2 changes: 1 addition & 1 deletion src/resources/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ <h1 class="modal-title fs-5" id="{{ name|id }}ModalLabel">{{ value.label or name
</span>

{% if table.table != "message" %}
<a class="btn btn-outline-success" href="/{{ table.table }}?view=form">Add row</a>
<a class="btn btn-outline-success" href="{{ table.table }}?view=form">Add row</a>
{% endif %}

</div>
Expand Down

0 comments on commit 9a43916

Please sign in to comment.