code: rudimentary implementation of detail and create

This commit is contained in:
2024-01-27 17:42:20 +01:00
parent d1c98516a8
commit c439220409
11 changed files with 236 additions and 68 deletions
+17
View File
@@ -0,0 +1,17 @@
{% extends "admin/base.jinja" %}
{% macro input(name, value="", type="text") -%}
<input type="{{ type }}" name="{{ name }}" value="{{ value }}">
{%- endmacro %}
{% block content %}
Create {{item_model.name}} in {{item_info.name}}
<form>
{% set fields = item_info.display_list %}
{% for field in fields %}
<p><label>{{field}}</label>{{ input(field) }}</p>
{% endfor %}
<input type="submit" name="submit" value="Create">
</form>
{% endblock content %}