1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-12-28 03:36:55 +01:00
lodel2_mirror/plugins/webui/templates/admin/admin_edit.html
2016-07-05 16:05:59 +02:00

19 lines
No EOL
871 B
HTML

{% extends "base_backend.html" %}
{% import "admin/editable_component.html" as edit %}
{% set objects = target.get(('lodel_id = %s') % (lodel_id)) %}
{% set obj = objects.pop() %}
{% block title %}- Edit Object{% 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>Lodel 2 - Edit Object {{ lodel_id }} of {{ target.__name__ }}</h1>
<form action="" method ="post">
<input type="hidden" name="uid" value="{{ lodel_id}}" >
<input type="hidden" name="classname" value={{ target.__name__ }} />
{% for fieldname, fieldvalue in obj.fields().items() %}
<div style="padding-bottom:15px;"> {{edit.input(fieldname, fieldvalue, obj.data(fieldname)) }} </div>
{% endfor %}
<input type="submit" value="Save">
</form>
{% endblock %}