Refactor inventory and layout templates; enhance form handling with dynamic endpoint and argument passing for improved flexibility
This commit is contained in:
parent
be1e56ad93
commit
f2229cdc90
3 changed files with 173 additions and 137 deletions
|
@ -53,7 +53,7 @@
|
|||
</div>
|
||||
</nav>
|
||||
<main class="container-flex m-5">
|
||||
<form method="POST" id="settingsForm" action="{{ url_for('main.settings') }}">
|
||||
<form method="POST" id="settingsForm" action="{{ url_for('main.' + endpoint, **(endpoint_args or {})) }}">
|
||||
{% block content %}{% endblock %}
|
||||
<input type="hidden" name="formState" id="formStateField">
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue