product create

This commit is contained in:
2020-03-10 12:40:47 -07:00
parent bf7b9d2a9d
commit 4a04371fb6
4 changed files with 68 additions and 1 deletions

View File

@ -0,0 +1,33 @@
{% extends 'base.html' %}
{% block content %}
{% if error %}
{{ error }}
<br />
<br />
{% endif %}
<h1>Create</h1>
<form method="POST" action="{% url 'create' %}" enctype="multipart/form-data">
{% csrf_token %}
Title:
<br/>
<input type="text" name="title"/>
<br/>
URL:
<br/>
<input type="text" name="url"/>
<br/>
Image:
<br/>
<input type="file" name="image"/>
<br/>
Icon:
<br/>
<input type="file" name="icon"/>
<br/>
Body:
<br/>
<input type="textbox" name="body"/>
<br/><br />
<input type="submit" value="Add Product" class="btn btn-primary">
</form>
{% endblock %}