1234567891011121314151617181920212223 |
- {% extends "base_backend.html" %}
- {% import "admin/editable_component.html" as edit %}
- {% set objects = target.get(('lodel_id = %s') % (lodel_id)) %}
- {% 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 %} <p style="color:red; font-size:20pt; font-weight:bold">{{ msg }}</p> {% endblock %}
- {% endif %}
- <h1>Lodel 2 - Edit {{ target.__name__ }} with uid {{ lodel_id }} </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>
- <div>
- <a href="classes_admin">Return</a>
- </div>
- {% endblock %}
|