add.html 437 B

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