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.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--
  2. This file is part of Lodel 2 (https://github.com/OpenEdition)
  3. Copyright (C) 2015-2017 Cléo UMS-3287
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. {% extends "base_backend.html" %}
  16. {% import "admin/editable_component.html" as edit %}
  17. {% block title %}- Creating a new {{target.__name__}}{% endblock %}
  18. {% block body %}
  19. <ol class="breadcrumb">
  20. <li><a href="/{{ root_url }}/admin">Home</a></li>
  21. <li><a href="/{{ root_url }}/admin/object_create">Creation</a></li>
  22. <li class="active">{{target.__name__}}</li>
  23. </ol>
  24. {% if msg is not none %}
  25. {% block msg %} <p style="color:red; font-size:20pt; font-weight:bold">{{ msg }}</p> {% endblock %}
  26. {% endif %}
  27. <h1 class="h1_lodel">Creating a new {{target.__name__}}</h1>
  28. <form class="form-horizontal" action="" method ="post">
  29. <input type="hidden" name="classname" id="classname" value="{{target.__name__}}" />
  30. {% for fieldname, field in target.fields().items() %}
  31. <div class="form-group">
  32. <div class="form-group" style="padding-bottom:15px;"> {{edit.input(fieldname, field) }}</div>
  33. </div>
  34. {% endfor %}
  35. <p>&nbsp;</p>
  36. <button type="submit" class="btn btn-primary">Save</button>
  37. <a class="btn btn-default" href="object_create">Return</a>
  38. </form>
  39. <div>
  40. </div>
  41. {% endblock %}