2021-04-18 10:02:17 +00:00
|
|
|
{% extends "frontend/base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load bootstrap4 %}
|
|
|
|
{% load static %}
|
|
|
|
|
|
|
|
{% block "styles" %}
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static "vendor/css/jquery.dataTables.min.css" %}">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block "content" %}
|
|
|
|
<!--===== INNERPAGE-WRAPPER ====-->
|
|
|
|
<section class="innerpage-wrapper">
|
|
|
|
<div id="payment-success" class="section-padding">
|
|
|
|
<div class="container text-center">
|
|
|
|
<div class="row d-flex justify-content-center">
|
|
|
|
<div class="col-md-12 col-lg-12 col-lg-offset-2">
|
2021-05-22 06:39:42 +00:00
|
|
|
<h2>{% trans "Neue Anfragen" %}</h2>
|
2021-04-20 06:36:59 +00:00
|
|
|
<div>für <select id="id_establishment" name="establishment" class="">
|
|
|
|
{% for e in request.user.partnerprofile.establishment_set.all %}
|
|
|
|
<option value="{{ e.id }}" {% if e == establishment %}selected{% endif %}>{{ e.name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select> </div>
|
2021-04-18 10:02:17 +00:00
|
|
|
<table id="biddingtable">
|
|
|
|
<thead>
|
|
|
|
<td>ID</td>
|
|
|
|
<td>Reiseziel (Distanz)</td>
|
|
|
|
<td>Anreisedatum</td>
|
|
|
|
<td>Aufenthaltsdauer</td>
|
|
|
|
<td>Personen</td>
|
|
|
|
<td>Gebotener Betrag</td>
|
|
|
|
<td></td>
|
|
|
|
</thead>
|
2021-04-18 16:53:08 +00:00
|
|
|
{% for inquiry in object_list %}{% if inquiry.is_paid and inquiry.destination_radius == 0 or inquiry.distance.m < inquiry.destination_radius %}
|
2021-04-18 10:02:17 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ inquiry.id }}</td>
|
|
|
|
<td>{{ inquiry.destination_name }} ({{ inquiry.distance.km | floatformat:1 }}km)</td>
|
|
|
|
<td>{{ inquiry.arrival }}</td>
|
|
|
|
<td>{% if inquiry.min_nights == 0 %}Egal!{% elif inquiry.min_nights == 1 %}Kurztrip (2-3 Nächte){% else %}Min. 3 Nächte{% endif %}</td>
|
|
|
|
<td>{{ inquiry.adults }} + {{ inquiry.children }}</td>
|
|
|
|
<td>€ {{ inquiry.budget }}</td>
|
2021-04-21 09:19:21 +00:00
|
|
|
<td><a href="{% url "auction:offer_create" establishment.id inquiry.uuid %}" class="btn btn-orange">Anbieten!</button></td>
|
2021-04-18 10:02:17 +00:00
|
|
|
</tr>
|
|
|
|
{% endif %}{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div><!-- end columns -->
|
|
|
|
</div><!-- end row -->
|
|
|
|
</div><!-- end container -->
|
|
|
|
</div><!-- end coming-soon-text -->
|
|
|
|
</section><!-- end innerpage-wrapper -->
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block "scripts" %}
|
|
|
|
<script type="text/javascript" charset="utf8" src="{% static "vendor/js/jquery.dataTables.min.js" %}"></script>
|
|
|
|
<script type="text/javascript" src="{% static "auction/js/biddingtable.js" %}"></script>
|
2021-04-20 07:19:26 +00:00
|
|
|
<script type="text/javascript" src="{% static "auction/js/establishment-selection.js" %}"></script>
|
2021-04-18 10:02:17 +00:00
|
|
|
{% endblock %}
|