wip: login, auth working, still need refactoring

This commit is contained in:
2024-07-16 07:27:26 +02:00
parent c78e386645
commit 402585f968
16 changed files with 127 additions and 51 deletions

View File

@@ -4,7 +4,7 @@
<div class="ui container">
<h1>Update {{item_model.name}} in {{item_info.name}}</h1>
{% set fields = item_info.fields %}
{% set form = { 'action': item.change_url } %}
{% set form = { 'action': item.change_url, 'method': 'PATCH' } %}
{% include "/admin/items/item_change_form.jinja" %}
</div>
{% endblock content %}

View File

@@ -24,11 +24,11 @@
<legend>User login</legend>
<p>
<label for="username">Username</label>
<input name="username" id="username" value="ferris" />
<input name="username" id="username" value="admin" />
</p>
<p>
<label for="password">Password</label>
<input name="password" id="password" type="password" value="hunter42" />
<input name="password" id="password" type="password" value="admin" />
</p>
</fieldset>