2021-04-12 13:32:15 +00:00
|
|
|
|
{% extends "clients/base.html" %}
|
|
|
|
|
{% block "dashboardcontent" %}
|
|
|
|
|
<div class="col-12 col-md-10 col-lg-10 dashboard-content booking-trips">
|
|
|
|
|
<h2 class="dash-content-title">Deine Buchungen</h2>
|
|
|
|
|
<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 Anfragen</label>
|
|
|
|
|
</div><!-- end custom-radio -->
|
|
|
|
|
|
|
|
|
|
<div class="custom-radio">
|
|
|
|
|
<input type="radio" id="radio02" name="radio" />
|
|
|
|
|
<label for="radio02"><span></span>Fixiert</label>
|
|
|
|
|
</div><!-- end custom-radio -->
|
|
|
|
|
|
|
|
|
|
<div class="custom-radio">
|
|
|
|
|
<input type="radio" id="radio03" name="radio" />
|
|
|
|
|
<label for="radio03"><span></span>In Gebotsphase</label>
|
|
|
|
|
</div><!-- end custom-radio -->
|
|
|
|
|
|
|
|
|
|
<div class="custom-radio">
|
|
|
|
|
<input type="radio" id="radio04" name="radio" />
|
|
|
|
|
<label for="radio04"><span></span>Inaktiv</label>
|
|
|
|
|
</div><!-- end custom-radio -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<tbody>
|
2021-04-20 06:36:59 +00:00
|
|
|
|
{% for inquiry in object_list %}
|
2021-04-12 13:32:15 +00:00
|
|
|
|
<tr>
|
2021-04-20 06:36:59 +00:00
|
|
|
|
<td class="dash-list-icon booking-list-date"><div class="b-date"><h3>{{ inquiry.arrival.day }}</h3><p>{{ inquiry.arrival|date:"E Y" }}</p></div></td>
|
2021-04-12 13:32:15 +00:00
|
|
|
|
<td class="dash-list-text booking-list-detail">
|
2021-04-20 06:36:59 +00:00
|
|
|
|
<h3>{% if inquiry.accepted %}{{ inquiry.accepted.name }} ({{ inquiry.destination_name }}){% else %}{{ inquiry.destination_name }}{% endif %}</h3>
|
2021-04-12 13:32:15 +00:00
|
|
|
|
<ul class="list-unstyled booking-info">
|
2021-04-20 06:36:59 +00:00
|
|
|
|
<li><span>Ankunft:</span> {{ inquiry.arrival }}</li>
|
|
|
|
|
<li><span>{% if inquiry.accepted %}Abreise{% else %}Dauer{% endif %}:</span> {% if inquiry.accepted %}{{ inquiry.accepted.departure }}{% elif inquiry.min_nights == 0 %}Egal!{% elif inquiry.min_nights == 1 %}Kurztrip (2 – 3 Nächte){% elif inquiry.min_nights == 2 %}min. 3 Nächte{% endif %}</li>
|
|
|
|
|
<li><span>Preis:</span> € {{ inquiry.budget }}</li>
|
|
|
|
|
<li><span>Status:</span> {% if inquiry.accepted %}Fixiert{% elif inquiry.active %}In Gebotsphase ({{ inquiry.offer_set.all|length }} Gebote){% else %}Inaktiv{% endif %}</li>
|
2021-04-12 13:32:15 +00:00
|
|
|
|
</ul>
|
2021-04-20 06:36:59 +00:00
|
|
|
|
{% if inquiry.accepted %}
|
|
|
|
|
<button class="btn btn-orange">Buchungsdetails</button>
|
|
|
|
|
{% elif inquiry.active %}
|
|
|
|
|
<a href="{% url "auction:offer_selection" inquiry.uuid %}" class="btn btn-orange">Gebote ansehen</a>
|
|
|
|
|
{% elif inquiry.expired %}
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{% url "auction:process_inquiry" inquiry.uuid %}" class="btn btn-orange">Zahlung abschließen</a>
|
|
|
|
|
{% endif %}
|
2021-04-12 13:32:15 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td class="dash-list-btn"><button class="btn btn-orange">Stornieren</button><button class="btn">PDF-Bestätigung</button></td>
|
|
|
|
|
</tr>
|
2021-04-20 06:36:59 +00:00
|
|
|
|
{% endfor %}
|
2021-04-12 13:32:15 +00:00
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div><!-- end table-responsive -->
|
|
|
|
|
</div><!-- end booking-listings -->
|
|
|
|
|
|
|
|
|
|
</div><!-- end columns -->
|
|
|
|
|
{% endblock %}
|