2016-09-06 00:45:45 +00:00
{% extends "new_base_glarus.html" %}
{% load staticfiles bootstrap3 i18n %}
{% block content %}
< style type = "text/css" >
.invoice-title{
text-align: center !important;
}
2016-09-20 00:20:57 +00:00
2016-12-08 23:15:59 +00:00
#outer
{
width:100%;
text-align: center;
}
.inner
{
display: inline-block;
}
2016-09-06 00:45:45 +00:00
< / style >
< script type = "text/javascript" >
< / script >
< section id = "price" >
< div class = "signup-container" >
< div class = "col-xs-12 col-sm-6 col-lg-8 text-center wow fadeInDown" >
< div class = "payment-box" >
< h2 class = "section-heading payment-head" > Your Booking Detail< / h2 >
< hr class = "greyline-long" >
2016-11-28 15:32:37 +00:00
{% bootstrap_form_errors form type='non_fields'%}
{% if messages %}
< ul class = "list-unstyled" >
{% for message in messages %}
< li > {{ message }}< / li >
{% endfor %}
< / ul >
{% endif %}
2016-09-20 00:20:57 +00:00
< h2 class = "billing-head" > Invoice< btn class = "btn btn-primary btn-grey btn-edit print hidden-print" data-print = "price" > Get PDF< / btn > < / h2 >
2016-09-06 00:45:45 +00:00
< h2 class = "order-head" > Order Number< / h2 >
< h2 class = "member-name" > #{{order.id}}< / h2 >
2016-11-28 15:32:37 +00:00
< h2 class = "order-head" > Status< / h2 >
< h2 class = "member-name" > {{order.get_status_display}}< / h2 >
2016-09-06 00:45:45 +00:00
< h2 class = "order-head" > Billed to :< / h2 >
< h2 class = "history-name" > {{user.name}}< br >
{{order.billing_address.street_address}},{{order.billing_address.postal_code}}< br >
{{order.billing_address.city}}, {{order.billing_address.country}}.
< / h2 >
< h2 class = "order-head" > Payment Method< / h2 >
< h2 class = "history-name" >
{{order.cc_brand}} ending **** {{order.last4}}< br >
{{user.email}}
< / h2 >
< hr class = "greyline-long" >
< h2 class = "order-head" > Order Summary< / h2 >
< h2 class = "history-name" >
Dates: {{start_date}} - {{end_date}}< br >
< / h2 >
< h2 class = "col-xs-6 payment-total text-left" > Total days {{booking_days}}< / h2 >
< h2 class = "order-sum" > {{original_price|floatformat}}CHF< / h2 >
{% if free_days %}
< h2 class = "col-xs-6 payment-total text-left" > Free days {{free_days}} < / h2 >
2016-10-23 04:15:23 +00:00
< h2 class = "order-sum text-danger" > -{{total_discount|floatformat}}CHF< / h2 >
2016-09-06 00:45:45 +00:00
{% endif %}
< hr class = "greyline-long" >
< h2 class = "col-xs-6 payment-total text-left" > Total< / h2 >
< h2 class = "order-result" > {{final_price|floatformat}}CHF< / h2 >
2016-12-08 23:15:59 +00:00
2016-10-19 04:29:07 +00:00
2016-12-08 23:15:59 +00:00
2016-11-28 15:32:37 +00:00
{% if not order.get_status_display == 'Cancelled' %}
< form method = "POST" action = "" >
{% csrf_token %}
2016-12-08 23:15:59 +00:00
< p class = "inner" >
2016-11-28 15:32:37 +00:00
< input type = "hidden" name = "start_date" value = "{{order.booking.start_date}}" >
<!-- <a class="" href="{% url 'digitalglarus:booking_orders_list' %}" data - toggle="modal" data - target="#cancel - booking - modal">Cancel booking</a> -->
2017-01-16 16:28:31 +00:00
< a class = "btn btn-primary btn-blue hidden-print" href = "{% url 'digitalglarus:booking_orders_list' %}" > Go to my page< / a >
< button type = "button" class = "btn btn-primary btn-grey hidden-print" data-toggle = "modal" data-target = "#cancel-booking-modal" > Cancel booking< / button >
2016-11-28 15:32:37 +00:00
< / p >
2016-12-08 23:15:59 +00:00
2016-11-28 15:32:37 +00:00
< div class = "modal fade bs-example-modal-sm" id = "cancel-booking-modal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" role = "document" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" > < span aria-hidden = "true" > × < / span > < / button >
< h4 class = "modal-title" > Cancel booking< / h4 >
< / div >
< div class = "modal-body" >
< p > Do you want to cancel your booking?< / p >
2016-12-07 02:47:59 +00:00
{% if booking_required %}
2016-12-05 00:44:26 +00:00
< p >
Your booking is within 7 days. You may cancel your booking but the fees will not be refunded. Your booking can be only cancelled freely until 7 days before the booked date.
< / p >
2016-12-07 02:47:59 +00:00
{% endif %}
2016-11-28 15:32:37 +00:00
< / div >
< div class = "modal-footer text-center" >
< button type = "button" class = "btn btn-primary btn-grey" data-dismiss = "modal" > No< / button >
< button type = "submit" class = "btn btn-primary" > Yes< / button >
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
< / form >
2016-12-08 23:15:59 +00:00
{% else %}
< p class = "inner" >
2017-01-16 16:03:23 +00:00
< a class = "btn btn-primary btn-blue hidden-print" href = "{% url 'digitalglarus:booking_orders_list' %}" > Go to my page< / a >
2016-12-08 23:15:59 +00:00
< / p >
2016-11-28 15:32:37 +00:00
{% endif %}
2016-09-06 00:45:45 +00:00
< / div >
2016-10-19 04:29:07 +00:00
2016-09-06 00:45:45 +00:00
< / div >
2016-11-28 15:32:37 +00:00
2016-09-29 05:04:40 +00:00
< div class = "col-xs-12 col-sm-4 col-lg-4 wow fadeInDown hidden-print" >
2016-09-06 00:45:45 +00:00
< div class = "order-summary" >
< div class = "header text-center" >
< h2 class = "order-name" > Order Summary< / h2 >
< / div >
< div class = "order-box" >
< h2 class = "col-xs-6 order-item" style = "padding-bottom:10px" > Dates: {{start_date}} - {{end_date}}< br > < / h2 >
< h2 class = "col-xs-6 payment-total" > Total days {{booking_days}}< / h2 >
< h2 class = "order-sum" > {{original_price|floatformat}}CHF< / h2 >
{% if free_days %}
< h2 class = "col-xs-6 payment-total" > Free days {{free_days}}< / h2 >
2016-10-23 04:15:23 +00:00
< h2 class = "order-sum text-danger" > -{{total_discount|floatformat}}CHF< / h2 >
2016-09-06 00:45:45 +00:00
{% endif %}
< hr class = "greyline" >
< h2 class = "col-xs-6 payment-total" > Total< / h2 >
< h2 class = "order-result" > {{final_price|floatformat}}CHF< / h2 >
< / div >
< / div >
< / div >
< / section >
<!-- stripe key data -->
{% if stripe_key %}
< script type = "text/javascript" >
(function () {window.stripeKey = "{{stripe_key}}";})();
< / script >
{%endif%}
{% endblock %}