code: rudimentary implementation of detail and create
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user