product create
This commit is contained in:
33
products/templates/products/create.html
Normal file
33
products/templates/products/create.html
Normal 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 %}
|
Reference in New Issue
Block a user