2021-04-18 10:02:17 +00:00
{% extends "frontend/base.html" %}
{% load i18n %}
{% load bootstrap4 %}
{% load static %}
2022-10-29 17:04:02 +00:00
{% load distance %}
2021-04-18 10:02:17 +00:00
{% 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 >
2022-10-29 17:04:02 +00:00
{% for inquiry in object_list %}{% distance inquiry.destination_coords establishment.coords as distance %}{% if inquiry.is_paid and inquiry.destination_radius == 0 or distance < inquiry.destination_radius % }
2021-04-18 10:02:17 +00:00
< tr >
< td > {{ inquiry.id }}< / td >
2022-10-29 17:04:02 +00:00
< td > {{ inquiry.destination_name }} ({{ distance | floatformat:0 }}m)< / td >
2021-04-18 10:02:17 +00:00
< 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 %}