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