2021-04-22 17:44:16 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
2021-04-26 17:31:24 +02:00
|
|
|
|
2021-04-26 18:54:00 +02:00
|
|
|
<h1>Offerings</h1>
|
|
|
|
{% if offerings|length > 0 %}
|
|
|
|
<div class="card-deck">
|
|
|
|
{% for offering in offerings %}
|
|
|
|
<a href="#">
|
2021-04-26 23:50:23 +02:00
|
|
|
<div class="card offering h-100">
|
2021-04-26 18:54:00 +02:00
|
|
|
{% if offering.photoFilename %}
|
|
|
|
<img class="card-img-top" src="{{ asset('uploads/photos/' ~ offering.photofilename) }}" />
|
|
|
|
{% endif %}
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title">{{ offering.title }}</h5>
|
2021-04-26 23:50:23 +02:00
|
|
|
<p class="card-text">{{ offering.description }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer">
|
|
|
|
<p class="username">{{ offering.byUser }}</p>
|
|
|
|
<p class="zip">{{ offering.zipCode }}</p>
|
2021-04-26 18:54:00 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2021-04-26 17:31:24 +02:00
|
|
|
{% else %}
|
|
|
|
<p>There are currently no active listings</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|