No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin_edit.html 991B

1234567891011121314151617181920212223
  1. {% extends "base_backend.html" %}
  2. {% import "admin/editable_component.html" as edit %}
  3. {% set objects = target.get(('lodel_id = %s') % (lodel_id)) %}
  4. {% set objects = target.get(('%s = %s') % (uidfield, lodel_id)) %}
  5. {% set obj = objects.pop() %}
  6. {% block title %}- Edit Object{% endblock %}
  7. {% block body %}
  8. {% if msg is not none %}
  9. {% block msg %} <p style="color:red; font-size:20pt; font-weight:bold">{{ msg }}</p> {% endblock %}
  10. {% endif %}
  11. <h1>Lodel 2 - Edit {{ target.__name__ }} with uid {{ lodel_id }} </h1>
  12. <form action="" method ="post">
  13. <input type="hidden" name="uid" value="{{ lodel_id}}" />
  14. <input type="hidden" name="classname" value={{ target.__name__ }} />
  15. {% for fieldname, fieldvalue in obj.fields().items() %}
  16. <div style="padding-bottom:15px;"> {{edit.input(fieldname, fieldvalue, obj.data(fieldname)) }} </div>
  17. {% endfor %}
  18. <input type="submit" value="Save">
  19. </form>
  20. <div>
  21. <a href="classes_admin">Return</a>
  22. </div>
  23. {% endblock %}