add_edit.html 518 B

123456789101112131415161718
  1. {% extends "pbp_store/admin_base.html" %}
  2. {% load url from future %}
  3. {% block body %}
  4. <h2>{% if edit_mode %}Edit{% else %}Add{% endif %} {{item_type}}</h2>
  5. <div>
  6. <form enctype="multipart/form-data" action="" method="post" class="form-horizontal">{% csrf_token %}
  7. {% include "pbp_store/store_admin/add_edit_form.inc" %}
  8. <button type="submit" class="btn btn-primary">{% if edit_mode %}Save{% else %}Add {{item_type}}{% endif %}</button>
  9. <a href="{{cancel_url}}">Cancel</a>
  10. </form>
  11. </div>
  12. {% endblock %}