{% extends "base_backend.html" %} {% import "admin/editable_component.html" as edit %} {% set uidfield = target.uid_fieldname()[0] %} {% set objects = target.get(('%s = %s') % (uidfield, lodel_id)) %} {% set obj = objects.pop() %} {% block title %}Edit Object{% endblock %} {% block body %} {% if msg is not none %} {% block msg %}

{{ msg }}

{% endblock %} {% endif %}

Lodel 2 - Edit {{ target.__name__ }} with uid {{ lodel_id }}

{% for fieldname, fieldvalue in obj.fields().items() %}
{{edit.input(fieldname, fieldvalue, obj.data(fieldname)) }}
{% endfor %} Return
{% endblock %}