Improve layout

This commit is contained in:
Jannis Portmann 2023-03-31 23:56:46 +02:00
parent 9d2b219a70
commit 85e7440f0f

View file

@ -7,13 +7,13 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if offer.user == request.user %}<div class="alert alert-info" role="alert">This is your offer!</div>{% endif %} {% if offer.user == request.user %}<div class="alert alert-info" role="alert">This is your offer!</div>{% endif %}
<div class="show-offer-container d-flex flex-wrap"> <div class="show-offer-container row gx-5">
<div class="show-img-container"> <div class="show-img-container col-12 col-md-6">
<img class="mb-3 img-fluid rounded" <img class="mb-3 img-fluid rounded"
alt="Generic placeholder image" alt="Generic placeholder image"
src="{{ offer.image.url }}"> src="{{ offer.image.url }}">
</div> </div>
<div class="show-offer-info w-50"> <div class="show-offer-info col-12 col-md-6">
<h1 class="mb-3">{{ offer.title }}</h1> <h1 class="mb-3">{{ offer.title }}</h1>
<div class="mb-3 d-flex column-gap-2"> <div class="mb-3 d-flex column-gap-2">
<p class="mr-3"> <p class="mr-3">
@ -38,7 +38,7 @@
</div> </div>
</div> </div>
{% if offer.user == user %} {% if offer.user == user %}
<a href="{% url 'offer_edit' offer.id %}" class="btn btn-info"><i class="fas fa-pen"></i></a> <a href="{% url 'offer_edit' offer.id %}" class="btn btn-pfl"><i class="fas fa-pen"></i></a>
<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" <button type="button"
class="btn btn-danger" class="btn btn-danger"