add.html 369 B

1234567891011121314
  1. {% extends "base.html" %}
  2. {% block content %}
  3. {% if user.is_authenticated %}
  4. <h3>Добавление товара</h3>
  5. <form method="post" action="{% url 'add' %}" enctype="multipart/form-data">
  6. {% csrf_token %}
  7. {{ form.as_p }}
  8. <button type="submit">Добавить товар</button>
  9. </form>
  10. {% endif %}
  11. {% endblock %}