JourneyJoker/templates/partners/establishment_list.html

51 lines
No EOL
2.8 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">{% 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/>
<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" />
<label for="radio02"><span></span>{% trans "Aktiv" %}</label>
</div><!-- end custom-radio -->
<div class="custom-radio">
<input type="radio" id="radio03" name="radio" />
<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">
<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>
<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>
<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 %}