JourneyJoker/templates/partners/establishment_list.html
Klaus-Uwe Mitterer 81f7d6eb66 Flow improvements
Dynamic displaying of received offers
2021-04-20 08:36:59 +02:00

49 lines
No EOL
2.5 KiB
HTML

{% extends "partners/base.html" %}
{% load i18n %}
{% block "dashboardcontent" %}
<div class="col-12 col-md-10 col-lg-10 dashboard-content booking-trips">
<h2 class="dash-content-title">Deine Unterkünfte</h2>
<div class="dash-content-title"><a href="{% url "partners:establishment_register" %}" class="btn">Neue Unterkunft registrieren</a></span>
<div class="dashboard-listing booking-listing">
<div class="dash-listing-heading">
<div class="custom-radio">
<input type="radio" id="radio01" name="radio" checked/>
<label for="radio01"><span></span>Alle Unterkünfte</label>
</div><!-- end custom-radio -->
<div class="custom-radio">
<input type="radio" id="radio02" name="radio" />
<label for="radio02"><span></span>Aktiv</label>
</div><!-- end custom-radio -->
<div class="custom-radio">
<input type="radio" id="radio03" name="radio" />
<label for="radio03"><span></span>Inaktiv</label>
</div><!-- end custom-radio -->
</div>
<div class="table-responsive">
<table class="table table-hover">
<tbody>
{% for establishment in object_list %}
<tr>
<td class="dash-list-text booking-list-detail">
<h3>{{ establishment.name }}</h3>
<ul class="list-unstyled booking-info">
<li><span>Adresse:</span> {{ establishment.full_address }}</li>
<li><span>Buchungen:</span> {{ establishment.bookings | length }}</li>
<li><span>Status:</span> {% if establishment.is_active %}aktiv{% else %}inaktiv{% endif %}</li>
</ul>
<a href="{% url "partners:roomcategories" establishment.id %}" class="btn btn-orange">Zimmer und Ausstattung bearbeiten</button>
</td>
<td class="dash-list-btn"><a href="{% url "auction:bidding" establishment.id %}" class="btn btn-orange">Bieten</a><button class="btn">Deaktivieren</button></td>
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- end table-responsive -->
</div><!-- end booking-listings -->
</div><!-- end columns -->
{% endblock %}