mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
added recipe images
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
<h3>{% trans 'Edit Recipe' %}</h3>
|
||||
|
||||
<form action="." method="post">
|
||||
<form action="." method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
|
||||
{% for field in form %}
|
||||
|
||||
@@ -45,8 +45,9 @@
|
||||
<br/>
|
||||
{% endif %}
|
||||
|
||||
{% if ingredients %}
|
||||
<div class="row">
|
||||
|
||||
<div class="row">
|
||||
{% if ingredients %}
|
||||
<div class="col col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
@@ -89,7 +90,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
{% if recipe.image %}
|
||||
<div class="col col-md-6">
|
||||
<img class="img img-fluid rounded" src="{{ recipe.image.url }}">
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if recipe.ingredients or recipe.image %}
|
||||
<br/>
|
||||
<br/>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user