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_create.html 1.1KB

123456789101112131415161718192021222324252627282930
  1. {% extends "base_backend.html" %}
  2. {% import "admin/editable_component.html" as edit %}
  3. {% block title %}- Creating a new {{target.__name__}}{% endblock %}
  4. {% block body %}
  5. <ol class="breadcrumb">
  6. <li><a href="/{{ root_url }}/admin">Home</a></li>
  7. <li><a href="/{{ root_url }}/admin/object_create">Creation</a></li>
  8. <li class="active">{{target.__name__}}</li>
  9. </ol>
  10. {% if msg is not none %}
  11. {% block msg %} <p style="color:red; font-size:20pt; font-weight:bold">{{ msg }}</p> {% endblock %}
  12. {% endif %}
  13. <h1 class="h1_lodel">Creating a new {{target.__name__}}</h1>
  14. <form class="form-horizontal" action="" method ="post">
  15. <input type="hidden" name="classname" id="classname" value="{{target.__name__}}" />
  16. {% for fieldname, field in target.fields().items() %}
  17. <div class="form-group">
  18. <div class="form-group" style="padding-bottom:15px;"> {{edit.input(fieldname, field) }}</div>
  19. </div>
  20. {% endfor %}
  21. <p>&nbsp;</p>
  22. <button type="submit" class="btn btn-primary">Save</button>
  23. <a class="btn btn-default" href="object_create">Return</a>
  24. </form>
  25. <div>
  26. </div>
  27. {% endblock %}