category_form.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. {% set page_title = title %}
  2. {% set active_admin_forum_nav=True %}
  3. {% extends theme("admin/admin_layout.html") %}
  4. {% block admin_content %}
  5. {% from theme("macros.html") import horizontal_field, render_boolean_field, navlink with context %}
  6. <div class="col-md-3">
  7. <ul class="nav nav-pills nav-stacked">
  8. {{ navlink('admin.forums', "Manage Forums") }}
  9. {{ navlink('admin.add_forum', "Add Forum") }}
  10. {{ navlink('admin.add_category', "Add Category") }}
  11. </ul>
  12. </div>
  13. <div class="col-md-9">
  14. <form class="form-horizontal" role="form" method="post">
  15. {{ form.hidden_tag() }}
  16. <legend class="">{{ title }}</legend>
  17. {{ horizontal_field(form.title) }}
  18. {{ horizontal_field(form.description, rows=5, div_class="col-lg-9") }}
  19. {{ horizontal_field(form.position) }}
  20. <div class="form-group">
  21. <div class="col-lg-offset-0 col-lg-9">
  22. <button type="submit" class="btn btn-success">Save</button>
  23. </div>
  24. </div>
  25. </form>
  26. </div>
  27. {% endblock %}