This commit is contained in:
2020-03-10 15:21:18 -07:00
parent a85a288278
commit 0f240692d2
4 changed files with 38 additions and 41 deletions

View File

@ -2,8 +2,8 @@
{% block content %}
{% if error %}
{{ error }}
<br />
<br />
<br/>
<br/>
{% endif %}
<h1>Create</h1>
<form method="POST" action="{% url 'create' %}" enctype="multipart/form-data">
@ -27,7 +27,7 @@
Body:
<br/>
<input type="textbox" name="body"/>
<br/><br />
<br/><br/>
<input type="submit" value="Add Product" class="btn btn-primary">
</form>
{% endblock %}

View File

@ -13,8 +13,7 @@
<a href="{{ product.url }}"><h1>{{ product.title }}</h1></a>
</div>
</div>
<hr/>
<div class="row">
<div class="row pt-3">
<div class="col-8">
<img src="{{ product.image.url }}" class="img-fluid" \>
</div>
@ -25,17 +24,15 @@
</a>
</div>
</div>
<hr/>
<div class="row">
<div class="row pt-3">
<div class="col-4">
<h4>Hunted by: {{ product.hunter.username }}</h4>
<h4><span class="oi oi-magnifying-glass"></span> Hunted by: {{ product.hunter.username }}</h4>
</div>
<div class="col-4 text-right">
<h4>{{ product.pubdate_pretty }}</h4>
<h4><span class="oi oi-clock"></span> {{ product.pubdate_pretty }}</h4>
</div>
</div>
<hr/>
<div class="row">
<div class="row pt-3">
<div class="col-8">
<p>{{ product.body }}</p>
</div>