Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends 'gayhotels.html.twig' %}
- {% block css %}
- <link rel="stylesheet" href="{{ asset('css/font-awesome-4.7.0/css/font-awesome.min.css') }}"/>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
- <link rel="stylesheet" href="{{ asset('css/gayhotels_common.css') }}"/>
- <link rel="stylesheet" href="{{ asset('css/gayhotels_search.css') }}"/>
- <link href="https://fonts.googleapis.com/css?family=Montserrat:normal|Montserrat:bold" rel="stylesheet">
- {% endblock %}
- {% block body %}
- <div id="content">
- <div id="top-bar"></div>
- <div id="top-body-hotel" class="container">
- <div class="container-inner">
- <div id="top-body-left" class="col-md-2">
- {% block destination_info %}
- <div class="top-body-left-div"><span class="top-body-left-fixed">Destination</span> <br> <span class="top-body-left"><span id="destination-city">{{ city }}</span></span></div>
- <div class="top-body-left-div"> <span class="top-body-left-fixed">Dates</span> <br> <span class="top-body-left" id="dates">{{ checkinDate|date("D, M j") }} - {{ checkoutDate|date("D, M j") }}</span></div>
- <div class="top-body-left-div"><span class="top-body-left-fixed">Rooms</span> <span class="top-body-left" id="nr-rooms">{{ rooms }}</span></div>
- {% endblock %}
- </div>
- <div id="top-body-center" class="col-md-10">
- <div id="hotel-title">
- <h4 id="hotel-name">{{ hotel.getProduct().getName() }}</h4>
- <span id="hotel-address">{{ hotel.getProduct().getAddress1() }}, {{ hotel.getProduct().getAddress2() }}</span>
- </div>
- <div class="col-md-6 col-sm-12">
- <div id="hotel-stars" class="col-md-4">
- {% for i in 1..(hotel.getProduct().getRatingScore()|number_format)%}
- <i class="fa fa-star"></i>
- {% endfor %}
- {% set k = 5 - hotel.getProduct().getRatingScore() %}
- {% if k > 0 %}
- {% for j in 0..(k-1) %}
- <i class="fa fa-star-o"></i>
- {% endfor %}
- {% endif %}
- </div>
- <div class="col-md-6">
- <span id="hotel-category">{{ hotel.getProduct().getCategories().first()}}</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="center-body-hotel" class="container">
- <div class="container-inner">
- <div class="center-body-left col-lg-2 col-md-2">
- <div id="search-panel">
- <form class="form" role="form" action="search" method="get">
- <h4>Search</h4>
- <div class="form-group">
- <select name="city" class="form-control">
- <option value="Barcelona">Barcelona</option>
- <option value="Madrid">Madrid</option>
- <option value="Berlin">Berlin</option>
- <option value="Lisbon">Lisbon</option>
- <option value="Ibiza">Ibiza</option>
- </select>
- </div>
- <div class="form-group">
- <p>Check-in date</p>
- <input type='text' class="datepicker" name="check_in" value="{{ checkinString }}" class="form-control" />
- </div>
- <div class="form-group">
- <p>Check-out date</p>
- <input type='text' class="datepicker" name="check_out" value="{{ checkoutString }}" class="form-control" />
- </div>
- <div class="form-group">
- {% if nights == 1%}
- <p>{{ nights }}-night stay</p>
- {% else %}
- <p>{{ nights }}-nights stay</p>
- {% endif %}
- <select name="guests" class="form-control">
- <option value="1">1 guest</option>
- <option value="2">2 guests</option>
- <option value="3">3 guests</option>
- <option value="4">4 guests</option>
- <option value="5">5 guests</option>
- </select>
- </div>
- <div class="form-group">
- <select name="rooms" class="form-control">
- <option value="1">1 room</option>
- <option value="2">2 rooms</option>
- <option value="3">3 rooms</option>
- <option value="4">4 rooms</option>
- </select>
- </div>
- <div id="search-button" class="form-group">
- <button type="submit" class="btn">Search</button>
- </div>
- </form>
- </div>
- </div>
- <div class="center-body-center col-md-10 col-lg-10">
- <div id="hotel-info">
- <div class="container">
- <div id="hotel-info-top">
- <div class="col-md-8">
- {% if hotel.product.images is empty %}
- <img src="" class="img-responsive"/>
- {% else %}
- <img src="{{ asset(hotel.product.images.0.path) }}" class="img-responsive"/>
- {% endif %}
- </div>
- <div class="col-md-2 left-margin">
- <h4>Most Popular Facilities</h4>
- <ul>
- {% for amenity in hotel.getAmenities() %}
- <li style="background: url({{ asset('img/icons/amenities/'~amenity.getIcon()~'.svg' ) }}) no-repeat left top; background-size: 25px 20px;">
- {{ amenity.getLabel() }}
- </li>
- {% endfor %}
- </ul>
- </div>
- <div class="col-md-2 left-margin">
- <h4>All Rooms Include</h4>
- <ul>
- {% for amenity in hotel.getAmenities() %}
- <li style="background: url({{ asset('img/icons/amenities/'~amenity.getIcon()~'.svg' ) }}) 0 bottom no-repeat; background-size: 25px 20px;">
- {{ amenity.getLabel() }}
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="center-body-hotel-bottom" class="container">
- <div class="container-inner">
- <div class="center-body-left col-md-2">
- <h4><i class="fa fa-map-marker"></i> <span>Check on Map </span></h4>
- <div id="map" ></div>
- </div>
- <div class="col-md-7 center-body-center">
- <h4>About The Place</h4>
- <p class="introduction-text">{{ hotel.getProduct().getDescription() }}
- </p>
- <p>
- {{ hotel.getLongDescription() }}
- </p>
- </div>
- <div class="center-body-right col-md-3">
- <div id="hotel-price">
- <!---p id="hotel-price-std"> Standard Price: <br> € <span>{{ minPromoPrice|number_format }}</span></p--->
- <p id="hotel-price-our"> Our Price: <br> € <span>{{ minPrice|number_format }}</span></p>
- </div>
- </div>
- </div>
- </div>
- <div id="bottom-body-hotel-availability" class="container">
- <div class="container-inner">
- <h4>Availability on this Place</h4>
- </div>
- <div class="container-inner">
- <input type="hidden" id="hotel-id" value="{{ hotel.id }}"/>
- <input type="hidden" id="checkin-string" value="{{ checkinString }}"/>
- <input type="hidden" id="checkout-string" value="{{ checkoutString }}"/>
- <div class="top-col col-md-10">
- <div id="search">
- <form id="change-info-form" class="form-inline" role="form" action="search" method="get">
- <input type="hidden" name="accessibleBathroom" value="{{ accessibleBathroom }}"/>
- <input type="hidden" name="wheelchairAccessible" value="{{ wheelchairAccessible }}"/>
- <input type="hidden" name="rollinShower" value="{{ rollinShower }}"/>
- <input type="hidden" name="hotelId" value="{{ hotel.id }}"/>
- <div class="form-group">
- <label for="search-check-in">Check-in date</label>
- <input id="search-check-in" type='text' class="datepicker form-control" name="check_in" placeholder="Check-in"/>
- </div>
- <div class="form-group">
- <label for="search-check-out">Check-out date</label>
- <input id="search-check-out" type='text' class="datepicker form-control" name="check_out" placeholder="Check-out" />
- </div>
- <div class="form-group form-align">
- <div class="form-group">
- <select name="rooms" class="form-control">
- <option value="1">1 Room</option>
- <option value="2">2 Rooms</option>
- <option value="3">3 Rooms</option>
- <option value="4">4 Rooms</option>
- </select>
- </div>
- <div class="form-group">
- <select name="guests" class="form-control">
- <option value="1">1 Guest</option>
- <option value="2">2 Guests</option>
- <option value="3">3 Guests</option>
- <option value="4">4 Guest</option>
- </select>
- </div>
- </div>
- <div class="form-group spacing-search-form"></div>
- <div class="form-group">
- <button type="submit" class="btn">Search</button>
- </div>
- </form>
- </div>
- <div id="rooms-mobile" hidden="hidden" class="container">
- <div class="container-inner">
- <div class="col-md-12 row-1">
- <p>Prices are per room for {{ nights }} nights <br> included {{ tax.getTax() }}% VAT {% if hotel.getHasCityTax() %}<br> not included {% if hotel.cityTaxType.id == 2 or hotel.cityTaxType == 3 %}€ {% endif %}{{ hotel.cityTaxAmount }}{% if hotel.cityTaxType == 1 %}%{% endif %} City tax <br> per person per {% if hotel.cityTaxType == 3 %}night{% else %}stay{% endif %}{% endif %}</p>
- </div>
- <div id="table-rooms-reservation" class="col-md-12 row-2">
- <p><span id="total-room-amount">0</span> rooms for <b> € <span id="total-cost">0</span> </b> <br> No registration required</p>
- <form id="payment-form" action="payment" method="get">
- <input name="hotelId" value="{{ hotel.id }}" hidden="hidden"/>
- <input name="check_in" value="{{ checkinString }}" hidden="hidden"/>
- <input name="check_out" value="{{ checkoutString }}" hidden="hidden"/>
- <input name="room_id" value="" hidden="hidden"/>
- <input name="room_amount" value="" hidden="hidden"/>
- <input name="breakfast" value="" hidden="hidden"/>
- <input name="cancelOption" value="" hidden="hidden"/>
- <button class="btn">Select</button>
- </form>
- </div>
- <div class="col-md-12">
- {% set first = true %}
- {% for room in roomsInfo %}
- {% if first %}
- {% set first = false %}
- <div class="room-table-result first-result">
- {% else %}
- <div class="room-table-result other-result">
- {% endif %}
- <input type="hidden" class="room-id" value="{{ room.RoomTypeId }}"/>
- <input type="hidden" class="base-price" value="{{ room.Price }}"/>
- <input type="hidden" class="base-standard-price" value="{{ room.PromoPrice }}"/>
- <input type="hidden" class="breakfast-value" value="{{ room.BreakfastCost }}"/>
- <input type="hidden" class="cancellation-tax-type" value="{{ room.CancelationTaxTypeId }}"/>
- <input type="hidden" class="cancellation-value" value="{{ room.CancelationCostAmount }}"/>
- <input type="hidden" id="room-availability-{{ room.RoomTypeId }}" class="room-availability" value="{{ room.AvailableRooms }}"/>
- <div class="img-holder">
- {% if not room.ImagesPath is empty %}
- <img src="{{ asset(room.ImagesPath.0) }}" class="img-responsive"/>
- {% else %}
- <img src="http://via.placeholder.com/350x350" class="img-responsive"/>
- {% endif %}
- </div>
- <div class="room-table-section">
- <h5>Room Type</h5>
- <select name="breakfast-included" class="form-control room-options-breakfast room-options">
- <option value="1">{{ room.RoomTypeName }}</option>
- {% if room.HasBreakfast %}
- <option value="2">{{ room.RoomTypeName }} with breakfast</option>
- {% endif %}
- </select>
- </div>
- <div class="col-xs-12 room-table-section">
- <div class="col-xs-3">
- <span class="title"> Sleeps </span>
- </div>
- <div class="col-xs-9">
- <span class="room-guests">
- {% for i in 1..room.AmountGuests %}
- <i class="fa fa-user"></i>
- {% endfor %}
- </span>
- </div>
- </div>
- <div class="col-xs-12 room-table-section">
- <div class="col-xs-4">
- <span class="title">Our Price</span>
- </div>
- <div class="col-xs-4">
- <p class="room-our-price">€ <span class="room-our-price-value">{{ room.Price|number_format }}</span></p>
- <p class="room-std-price">€ <span class="room-std-price-value">{{ room.PromoPrice|number_format }}</span></p>
- </div>
- <div class="col-xs-4">
- {% if room.PromoPrice > 0 %}
- <p class="room-discount">Save <span class="room-discount-value">{{ (100-room.Price/room.PromoPrice*100)|number_format }}</span>%</p>
- {% else %}
- <p class="room-discount">Save <span class="room-discount-value">0</span>%</p>
- {% endif %}
- </div>
- </div>
- <div class="col-xs-12 room-table-section">
- <div class="col-xs-7">
- <span class="title">Number of Rooms</span>
- </div>
- <div class="col-xs-5">
- <div class="room-quantity-btn text-center">
- <a onclick="quantityPlus('{{ room.RoomTypeId }}')"> <i class="fa fa-plus" aria-hidden="true"></i> </a>
- <input class="room-quantity-input room-options" id="room-quantity-input-{{ room.RoomTypeId }}" readonly="readonly" type="text" name="productQuantity" value="0" autocomplete="off" size="2">
- <a class="room-quantity-btn-minus" onclick="quantityMinus('{{ room.RoomTypeId }}')"> <i class="fa fa-minus" aria-hidden="true"></i> </a>
- </div>
- </div>
- </div>
- <div class="room-table-section">
- <h5>Terms</h5>
- <select name="payment-type" class="form-control room-options-refund room-options">
- <option value="1">Pay Now - Non Refundable</option>
- {% if room.CanBeCanceled %}
- <option value="2">Pay Later - At Hotel, Refundable</option>
- {% endif %}
- </select>
- </div>
- </div>
- {% endfor %}
- </div>
- </div>
- </div>
- <div id="table-rooms">
- <div class="col-md-12">
- <div class="table-responsive table-condensed">
- <table class="table table-striped table-sm">
- <thead class="thead-default">
- <tr>
- <th class="table-beginning-info">Prices are per room for {{ nights }} nights <br> included {{ tax.getTax() }}% VAT {% if hotel.getHasCityTax() %}<br> not included {% if hotel.cityTaxType.id == 2 or hotel.cityTaxType == 3 %}€ {% endif %}{{ hotel.cityTaxAmount }}{% if hotel.cityTaxType == 1 %}%{% endif %} City tax <br> per person per {% if hotel.cityTaxType == 3 %}night{% else %}stay{% endif %}{% endif %}</th>
- <th class="table-title table-smaller">Room Type</th>
- <th class="table-title">Sleeps</th>
- <th class="table-title">Our Price</th>
- <th class="table-title table-smaller">Terms</th>
- <th class="table-title">Number of Rooms</th>
- <th class="space"></th>
- <th></th>
- </tr>
- </thead>
- <tbody id="rooms-info-body">
- {% set first = true %}
- {% for room in roomsInfo %}
- <div class="room-table-result">
- <tr class="room-table-result-0" id="result-{{ room.RoomTypeId }}">
- <input type="hidden" class="room-id" value="{{ room.RoomTypeId }}"/>
- <input type="hidden" class="base-price" value="{{ room.Price }}"/>
- <input type="hidden" class="base-standard-price" value="{{ room.PromoPrice }}"/>
- <input type="hidden" class="breakfast-value" value="{{ room.BreakfastCost }}"/>
- <input type="hidden" class="cancellation-tax-type" value="{{ room.CancelationTaxTypeId }}"/>
- <input type="hidden" class="cancellation-value" value="{{ room.CancelationCostAmount }}"/>
- <input type="hidden" id="room-availability-{{ room.RoomTypeId }}" class="room-availability" value="{{ room.AvailableRooms }}"/>
- <td class="img-holder">
- {% if not room.ImagesPath is empty %}
- <img src="{{ asset(room.ImagesPath.0) }}" class="img-responsive"/>
- {% else %}
- <img src="" class="img-responsive"/>
- {% endif %}
- </td>
- <td class="table-smaller">
- <select name="breakfast-included" class="form-control room-options-breakfast room-options">
- <option value="1">{{ room.RoomTypeName }}</option>
- {% if room.HasBreakfast %}
- <option value="2">{{ room.RoomTypeName }} with breakfast</option>
- {% endif %}
- </select>
- </td>
- <td>
- {% for i in 1..room.AmountGuests %}
- <i class="fa fa-user"></i>
- {% endfor %}
- </td>
- <td>
- <p class="room-our-price">€ <span class="room-our-price-value">{{ room.Price|number_format }}</span></p>
- <p class="room-std-price">€ <span class="room-std-price-value">{{ room.PromoPrice|number_format }}</span></p>
- {% if room.PromoPrice > 0 %}
- <p class="room-discount">Save <span class="room-discount-value">{{ (100-room.Price/room.PromoPrice*100)|number_format }}</span>%</p>
- {% else %}
- <p class="room-discount">Save <span class="room-discount-value">0</span>%</p>
- {% endif %}
- </td>
- <td class="table-smaller">
- <select name="payment-type" class="form-control room-options-refund room-options">
- <option value="1">Pay Now - Non Refundable</option>
- {% if room.CanBeCanceled %}
- <option value="2">Pay Later - At Hotel, Refundable</option>
- {% endif %}
- </select>
- </td>
- <td>
- <div class="room-quantity-btn">
- <a onclick="quantityPlus('{{ room.RoomTypeId }}')">
- <i class="fa fa-plus" aria-hidden="true"></i>
- </a>
- <input class="room-quantity-input room-options" id="room-{{ room.RoomTypeId }}"
- readonly="readonly" type="text" name="productQuantity" value="0" autocomplete="off"
- size="2" min="0" max="{{ room.Amount }}">
- <input type="hidden" id="n_rooms_accept_{{ room.RoomTypeId }}" value="{{ room.Amount }}">
- <a class="room-quantity-btn-minus" onclick="quantityMinus('{{ room.RoomTypeId }}')">
- <i class="fa fa-minus" aria-hidden="true"></i>
- </a>
- </div>
- </td>
- <td class="space"></td>
- {% if first %}
- {% set first = false %}
- <td id="table-rooms-reservation" class="table-last-info" rowspan="{{ roomsInfo|length }}"> <!-- TODO ROWSPAN É = AO Nº DE HOTEIS A FAZER DISPLAY -->
- <p><span id="total-room-amount">0</span> rooms for <b> € <span id="total-cost">0</span> </b> <br><br> No registration required</p>
- <form id="payment-form" action="payment" method="get">
- <input name="hotelId" value="{{ hotel.id }}" hidden="hidden"/>
- <input name="check_in" value="{{ checkinString }}" hidden="hidden"/>
- <input name="check_out" value="{{ checkoutString }}" hidden="hidden"/>
- <input name="room_id" value="" hidden="hidden"/>
- <input name="room_amount" value="" hidden="hidden"/>
- <input name="breakfast" value="" hidden="hidden"/>
- <input name="cancelOption" value="" hidden="hidden"/>
- <button class="btn">Select</button>
- </form>
- </td>
- {% endif %}
- </tr>
- </div>
- {% endfor %}
- </tbody>
- </table>
- </div>
- <div id="pagination" class="container ">
- <div class="row">
- <div class="col-xl-3 col-sm-2 col-md-2 col-lg-3 text-left">
- <a class="top-page">Top Page</a>
- </div>
- <div class="col-xl-4 col-sm-4 col-md-3 col-lg-4 text-center">
- <span>Showing Results 1 - 40 of 412</span>
- </div>
- <div class="col-xl-5 col-sm-6 col-md-7 col-lg-5 text-right">
- <ul class="pagination nav">
- <li class="page-item more-pages"><a class="page-link" href="#"><i class="fa fa-arrow-left"></i></a></li>
- {% for n in 1..4 %}
- {% if page is not defined %}
- {% set page = 1 %}
- {% endif %}
- {% if page == n %}
- <li class="page-item page-number"><a class="page-link active" href="#">{{ n }}</a></li>
- {% else %}
- <li class="page-item page-number"><a class="page-link" href="#">{{ n }}</a></li>
- {% endif %}
- {% endfor %}
- <li class="page-item more-pages"><a class="page-link" href="#"><i class="fa fa-arrow-right"></i></a></li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="center-body-right col-md-2">
- <img src="http://via.placeholder.com/160x600"/>
- <img src="http://via.placeholder.com/160x600"/>
- </div>
- </div>
- </div>
- <div id="bottom-body" class="container">
- <div class="container-inner">
- <div id="app-description" class="container text-center">
- <div class="container-inner">
- <div id="app-description-info" >
- <div class="col-md-5">
- <div id="app-description-left">
- <h1>Make your Bookings with Gayhotels App</h1>
- <h4>By registering with Niche Tourist Group you can be assured of a best or lower pricing garantee than many of our competitors.</h4>
- <div id="app-register">
- <div id="app-register-inline">
- <input name="email-subscription" type="text" placeholder="your email"/>
- <button> Sign in </button>
- </div>
- <div>
- <input type="checkbox" id="app-link" />
- <label for="app-link">Send me a link to get the FREE Gayhotel.com app.</label>
- </div>
- </div>
- </div>
- </div>
- <div class="col-md-7">
- <div id="app-img">
- <img class="img-responsive" src="{{ asset('img/gayhotels/appps_blue_sky.png') }}" alt="App"/>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="popular-destinations" class="container">
- <div class="container-inner">
- <div id="popular-destinations-title">
- <h3>Popular</h3>
- <h2>Destinations</h2>
- </div>
- <div class="col-lg-5ths col-md-6 popular-destination spacing-right">
- <h4><i class="fa fa-map-marker"></i> Barcelona </h4>
- <div class="destination-container">
- <div class="overlay">
- <img src="{{ asset('img/gayhotels/hotel_room_test.jpg') }}" class="img-responsive"/>
- <div class="overlay-content">
- <!--<div class="row">
- <a href="#" class="icon"><span class="glyphicon glyphicon-eye-open"></span></a>
- </div>-->
- <div class="row overlay-description">
- <div class="col-md-6">
- <span>132 properties available</span>
- </div>
- <div class="col-md-6">
- <div class="starting-price"> Starting at € 1.350</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-5ths col-md-6 popular-destination spacing-left spacing-right">
- <h4><i class="fa fa-map-marker"></i> Barcelona </h4>
- <div class="destination-container">
- <div class="overlay">
- <img src="{{ asset('img/gayhotels/hotel_room_test.jpg') }}" class="img-responsive"/>
- <div class="overlay-content">
- <!--<div class="row">
- <a href="#" class="icon"><span class="glyphicon glyphicon-eye-open"></span></a>
- </div>-->
- <div class="row overlay-description">
- <div class="col-md-6">
- <span>132 properties available</span>
- </div>
- <div class="col-md-6">
- <div class="starting-price"> Starting at € 1.350</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-5ths col-md-6 popular-destination spacing-left spacing-right">
- <h4><i class="fa fa-map-marker"></i> Barcelona </h4>
- <div class="destination-container">
- <div class="overlay">
- <img src="{{ asset('img/gayhotels/hotel_room_test.jpg') }}" class="img-responsive"/>
- <div class="overlay-content">
- <!--<div class="row">
- <a href="#" class="icon"><span class="glyphicon glyphicon-eye-open"></span></a>
- </div>-->
- <div class="row overlay-description">
- <div class="col-md-6">
- <span>132 properties available</span>
- </div>
- <div class="col-md-6">
- <div class="starting-price"> Starting at € 1.350</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-5ths col-md-6 popular-destination spacing-left spacing-right">
- <h4><i class="fa fa-map-marker"></i> Barcelona </h4>
- <div class="destination-container">
- <div class="overlay">
- <img src="{{ asset('img/gayhotels/hotel_room_test.jpg') }}" class="img-responsive"/>
- <div class="overlay-content">
- <!--<div class="row">
- <a href="#" class="icon"><span class="glyphicon glyphicon-eye-open"></span></a>
- </div>-->
- <div class="row overlay-description">
- <div class="col-md-6">
- <span>132 properties available</span>
- </div>
- <div class="col-md-6">
- <div class="starting-price"> Starting at € 1.350</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-5ths col-md-6 popular-destination spacing-left">
- <h4><i class="fa fa-map-marker"></i> Barcelona </h4>
- <div class="destination-container">
- <div class="overlay">
- <img src="{{ asset('img/gayhotels/hotel_room_test.jpg') }}" class="img-responsive"/>
- <div class="overlay-content">
- <!--<div class="row">
- <a href="#" class="icon"><span class="glyphicon glyphicon-eye-open"></span></a>
- </div>-->
- <div class="row overlay-description">
- <div class="col-md-6">
- <span>132 properties available</span>
- </div>
- <div class="col-md-6">
- <div class="starting-price"> Starting at € 1.350</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="back-to-top" class="container">
- <div class="container-inner">
- <button class="top-page"><i class="fa fa-arrow-up"></i></button>
- </div>
- </div>
- </div>
- {% endblock %}
- {% block javascripts %}
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
- <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
- <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDeSzonifeLMsDek9_p_N-yhorLUHzc78s"></script>
- <script type="text/javascript">
- var roomsSearchAPIUrl = "{{ path('api_search_rooms')|escape('js') }}";
- var baseAssetsPath = "{{ app.request.basePath }}/";
- </script>
- <script src="{{ asset('js/gayhotels.js') }}" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript">
- function initMap() {
- var location = new google.maps.LatLng(50.0875726, 14.4189987);
- var mapCanvas = document.getElementById('map');
- var mapOptions = {
- center: location,
- zoom: 16,
- panControl: false,
- mapTypeId: google.maps.MapTypeId.ROADMAP
- };
- var map = new google.maps.Map(mapCanvas, mapOptions);
- var marker = new google.maps.Marker({
- position: location,
- map: map
- });
- }
- $( document ).ready(function() {
- navigationBar();
- if(isMobile)
- {
- $('#rooms-mobile').attr('hidden', false);
- $('#table-rooms').attr('hidden', true);
- }
- $('.datepicker').datepicker({
- autoclose: true,
- format: "yyyy-mm-dd"
- });
- $('.room-options').each(function()
- {
- $(this).change(onInputChangeRoom)
- });
- $('#change-info-form').on("submit", function(event)
- {
- event.preventDefault();
- getNewRooms($(this));
- });
- $('#payment-form').on("submit", function(event)
- {
- var form = $(this);
- var roomAmountInput = form.find('[name=room_amount]');
- var roomIDInput = form.find('[name=room_id]');
- var breakfastInput = form.find('[name=breakfast]');
- var cancelOptionInput = form.find('[name=cancelOption]');
- var found = false;
- $('.room-table-result-0').each(function()
- {
- var room = $(this);
- var quantity = Number(room.find('.room-quantity-input').val());
- if(quantity > 0)
- {
- found = true;
- roomAmountInput.val(quantity);
- roomIDInput.val(room.find('.room-id').val());
- breakfastInput.val(room.find('.room-options-breakfast').val() === "1" ? 0 : 1);
- cancelOptionInput.val(room.find('.room-options-refund').val() === "1" ? 0 : 1);
- return false;
- }
- });
- if(!found)
- {
- roomAmountInput.val("");
- roomIDInput.val("");
- breakfastInput.val("");
- cancelOptionInput.val("");
- }
- });
- google.maps.event.addDomListener(window, 'load', initMap);
- });
- </script>
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement