JourneyJoker/templates/partners/establishment_list.html

51 lines
2.8 KiB
HTML
Raw Permalink Normal View History

{% 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>
2021-06-14 15:12:22 +00:00
<div class="dash-content-title"><a href="{% url "partners:establishment_register" %}" class="btn">{% trans "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/>
2021-06-14 15:12:22 +00:00
<label for="radio01"><span></span>{% trans "Alle Unterkünfte" %}</label>
</div><!-- end custom-radio -->
<div class="custom-radio">
<input type="radio" id="radio02" name="radio" />
2021-06-14 15:12:22 +00:00
<label for="radio02"><span></span>{% trans "Aktiv" %}</label>
</div><!-- end custom-radio -->
<div class="custom-radio">
<input type="radio" id="radio03" name="radio" />
2021-06-14 15:12:22 +00:00
<label for="radio03"><span></span>{% trans "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">
2021-06-14 15:12:22 +00:00
<li><span>{% trans "Adresse:" %}</span> {{ establishment.full_address }}</li>
<li><span>{% trans "Buchungen:" %}</span> {{ establishment.bookings | length }}</li>
<li><span>{% trans "Status:" %}</span> {% if establishment.is_active %}{% trans "aktiv" %}{% else %}{% trans "inaktiv" %}{% endif %}</li>
</ul>
2021-06-14 15:12:22 +00:00
<a href="{% url "partners:roomcategories" establishment.id %}" class="btn btn-orange">{% trans "Zimmer / Ausstattung" %}</a>
<a href="{% url "partners:establishment_gallery" establishment.id %}" class="btn btn-orange">{% trans "Bilder" %}</a>
<a href="" class="btn btn-orange">{% trans "Preise" %}</a>
</td>
2021-06-14 15:12:22 +00:00
<td class="dash-list-btn"><a href="{% url "auction:bidding" establishment.id %}" class="btn btn-orange">{% trans "Bieten" %}</a><button class="btn">{% trans "Deaktivieren" %}</button></td>
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- end table-responsive -->
</div><!-- end booking-listings -->
</div><!-- end columns -->
{% endblock %}