1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-01-08 16:22:14 +01:00
lodel2_mirror/plugins/webui/templates/admin/admin_create.html
2016-07-05 16:05:59 +02:00

20 lines
706 B
HTML

{% extends "base_backend.html" %}
{% import "admin/editable_component.html" as edit %}
{% block title %}- Creating a new {{target.__name__}}{% endblock %}
{% block body %}
{% if msg is not none %}
{% block msg %} <p style="color:red; font-size:20pt; font-weight:bold">{{ msg }}</p> {% endblock %}
{% endif %}
<h1>Creating a new {{target.__name__}}</h1>
<form action="" method ="post">
<input type="hidden" name="classname" id="classname" value="{{target.__name__}}" />
{% for fieldname, field in target.fields().items() %}
<div style="padding-bottom:15px;"> {{edit.input(fieldname, field) }}</div>
{% endfor %}
<p>&nbsp;</p>
<input type="submit" value="Save">
</form>
{% endblock %}