-
Notifications
You must be signed in to change notification settings - Fork 1
/
bookingbug-angular-admin-booking-templates.js
13 lines (13 loc) · 56.3 KB
/
bookingbug-angular-admin-booking-templates.js
1
2
3
4
5
6
7
8
9
10
11
12
13
angular.module("BBAdminBooking").run(["$templateCache", function($templateCache) {$templateCache.put("_typeahead.html","<div class=\"bb-typeahead-results-wrapper\">\n\n <ul class=\"bb-list bb-list-sm\">\n <li class=\"bb-typh-header\">\n {{match.model.name}}\n </li>\n <li ng-show=\"match.model.email\">\n <i class=\"fa fa-envelope-o fa-fw\"></i>\n {{match.model.email}}\n </li>\n <li ng-show=\"match.model.mobile && !match.model.email\">\n <i class=\"fa fa-mobile fa-lg fa-fw\"></i>\n {{match.model.mobile | local_phone_number}}\n </li>\n <li ng-show=\"match.model.phone && !match.model.email\">\n <i class=\"fa fa-phone fa-fw\"></i>\n {{match.model.phone | local_phone_number}}\n </li>\n </ul>\n\n</div>\n");
$templateCache.put("admin_booking_clients.html","<div>\n\n <div class=\"page-header\">\n <h1 translate=\"ADMIN_BOOKING.CUSTOMER.STEP_HEADING\"></h1>\n </div>\n\n <div\n class=\"admin-typeahead-wrapper\"\n ng-form\n bb-form\n name=\"client_search_form\">\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_search_form.result.$invalid && (client_search_form.result.$dirty || client_search_form.submitted)}\">\n <div\n class=\"input-group\"\n ng-class=\"{\'animated shake\': !typeahead_result && search_triggered}\">\n\n <input\n class=\"input-lg form-control\"\n name=\"result\"\n ng-model=\"typeahead_result\"\n placeholder=\"{{\'ADMIN_BOOKING.CUSTOMER.SEARCH_BY_PLACEHOLDER\' | translate}}\"\n required\n typeahead-template-url=\"_typeahead.html\"\n typeahead-loading=\"customer_typeahead_loading\"\n typeahead-no-results=\"no_results\"\n typeahead-on-select=\"typeHeadResults($item, $uibModal, $label)\"\n typeahead-focus-first=\"false\"\n typeahead-min-length=\"2\"\n typeahead-wait-ms=\"250\"\n uib-typeahead=\"item.name for item in searchClients($viewValue)\"\n />\n\n <span class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-primary btn-lg\"\n ng-click=\"submitForm(); getClients({filter_by: typeahead_result})\">\n <i class=\"fa fa-search\"></i>\n </button>\n </span>\n\n </div>\n </div>\n </div>\n\n <div\n ng-if=\"search_complete\"\n class=\"search-results\">\n\n <div\n class=\"bb-block\"\n ng-show=\"clients.num_items > 0\">\n\n <div class=\"row\">\n\n <div class=\"col-sm-6\">\n\n <div class=\"bb-search-summary\">\n <span\n translate=\"ADMIN_BOOKING.CUSTOMER.NUM_CUSTOMERS\"\n translate-values=\"{ CUSTOMERS_NUMBER: clients.num_items || 0 }\"\n translate-interpolation=\"messageformat\">\n </span>\n </div>\n\n <button\n class=\"btn btn-link\"\n ng-click=\"clearSearch()\"\n translate=\"ADMIN_BOOKING.CUSTOMER.CLEAR_BTN\">\n </button>\n\n </div>\n\n <div class=\"col-sm-6\">\n\n <div class=\"form-inline bb-search-options\">\n\n <div class=\"form-group\">\n <label\n class=\"bb-label\n for=\"sort_by\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.SORT_BY_LBL\"></span>:\n </label>\n <select\n ng-model=\"sort_by\"\n id=\"sort_by\"\n class=\"form-control\"\n ng-options=\"option.key as option.name for option in sort_by_options\" ng-change=\"sortChanged(sort_by)\">\n </select>\n </div>\n\n </div>\n\n </div>\n </div>\n\n </div>\n\n <div\n class=\"bb-block text-center\"\n ng-show=\"clients.num_items == 0\">\n <p>\n <span translate=\"ADMIN_BOOKING.CUSTOMER.NO_RESULTS_FOUND\"></span>\n </p>\n <p>\n <button\n type=\"button\"\n class=\"btn btn-link\"\n ng-click=\"clearSearch()\"\n translate=\"ADMIN_BOOKING.CUSTOMER.CREATE_ONE_INSTEAD_BTN\">\n\n </button>\n </p>\n </div>\n\n <div class=\"clearfix\"></div>\n\n <ul class=\"bb-list bb-list-bordered bb-list-fade-in\">\n\n <li ng-repeat=\"client in clients.items | startFrom: (clients.current_page - 1) * clients.page_size | limitTo: clients.page_size track by $index\">\n\n <div class=\"typehead-item-wrapper\">\n\n <div class=\"row\">\n <div class=\"col-sm-10\">\n\n <h3>\n <span ng-show=\"sort_by != \'last_name\'\">\n {{client.name}}\n </span>\n <span ng-show=\"sort_by == \'last_name\'\">\n {{client.last_name}}, {{client.first_name}}\n </span>\n </h3>\n\n <ul class=\"bb-list bb-list-horizontal\">\n <li ng-show=\"client.email\">\n <i class=\"fa fa-envelope-o fa-fw\"></i>\n {{client.email}}\n </li>\n <li ng-show=\"client.mobile\">\n <i class=\"fa fa-mobile fa-lg fa-fw\"></i>\n {{client.mobile | local_phone_number}}\n </li>\n <li ng-show=\"client.phone\">\n <i class=\"fa fa-phone fa-fw\"></i> {{client.phone | local_phone_number}}\n </li>\n </ul>\n\n </div>\n <div class=\"col-sm-2\">\n <button\n type=\"button\"\n class=\"btn btn-primary btn-block btn-select-client\"\n ng-click=\"selectClient(client);\"\n translate=\"ADMIN_BOOKING.CUSTOMER.SELECT_BTN\">\n </button>\n </div>\n </div>\n\n </div>\n\n </li>\n\n </ul>\n\n <div\n uib-pagination\n total-items=\"clients.num_items\"\n ng-model=\"clients.current_page\"\n items-per-page=\"clients.page_size\"\n max-size=\"clients.max_size\"\n boundary-links=\"true\"\n rotate=\"false\"\n num-pages=\"clients.num_pages\"\n ng-show=\"clients.num_items > clients.page_size\"\n ng-change=\"pageChanged()\">\n </div>\n\n </div>\n\n <div\n ng-hide=\"search_complete\"\n class=\"admin-create-client\">\n\n <hr />\n\n <div class=\"panel panel-default\">\n\n <div class=\"panel-heading\">\n <strong translate=\"ADMIN_BOOKING.CUSTOMER.CREATE_HEADING\"></strong>\n </div>\n\n <div class=\"panel-body\">\n\n <div\n ng-form\n name=\"client_form\"\n bb-form>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.first_name.$invalid && client_form.submitted}\">\n <label\n for=\"first_name\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.FIRST_NAME_LBL\"></span>\n </label><br />\n <input\n type=\"text\"\n name=\"first_name\"\n id=\"first_name\"\n required\n ng-model=\"client.first_name\"\n class=\"form-control\"\n />\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.last_name.$invalid && client_form.submitted}\">\n <label\n for=\"last_name\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.LAST_NAME_LBL\"></span>\n </label><br />\n <input\n type=\"text\"\n name=\"last_name\"\n id=\"last_name\"\n required\n ng-model=\"client.last_name\"\n class=\"form-control\"\n />\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.email.$invalid && client_form.submitted}\">\n <label\n for=\"email\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.EMAIL_LBL\"></span>\n </label>\n <input\n type=\"email\"\n name=\"email\"\n id=\"email\"\n ng-required=\"!client.mobile\"\n ng-pattern=\"validator.getEmailPattern()\"\n ng-model=\"client.email\"\n class=\"form-control\"\n />\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.mobile.$invalid && client_form.submitted}\">\n <label\n for=\"mobile\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.MOBILE_LBL\"></span>\n </label>\n <input\n type=\"text\"\n name=\"mobile\"\n id=\"mobile\"\n ng-model=\"client.mobile\"\n class=\"form-control\"\n ng-required=\"!client.email || bb.company.settings.ask_mobile_phone\"\n ng-pattern=\"admin_options.MOBILE_INVALID\"\n />\n </div>\n\n <div ng-show=\"bb.company_settings.ask_address\">\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.address1.$invalid && ((client_form.address1.$dirty && !client_form.address1.$focused) || booking_form.submitted)}\">\n <label\n for=\"address1\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.ADDRESS1_LBL\"></span>\n </label>\n <div>\n <input\n type=\"text\"\n name=\"address1\"\n id=\"address1\"\n ng-model=\"client.address1\"\n class=\"form-control\"\n />\n </div>\n <div class=\"col-sm-3 messages\">\n <div\n class=\"error-message\"\n ng-show=\"client_form.address1.$invalid && booking_form.submitted\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.ADDRESS1_VALIDATION_MSG\"></span>\n </div>\n </div>\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.address2.$invalid && ((client_form.address2.$dirty && !client_form.address2.$focused) || booking_form.submitted)}\">\n <label\n for=\"address2\"\n class=\"control-label\">\n </label>\n <div>\n <input\n type=\"text\"\n name=\"address2\"\n id=\"address2\"\n ng-model=\"client.address2\"\n class=\"form-control\"\n />\n </div>\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.address3.$invalid && ((client_form.address3.$dirty && !client_form.address3.$focused) || booking_form.submitted)}\">\n <label\n for=\"address3\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.ADDRESS3_LBL\"></span>\n </label>\n <div>\n <input\n type=\"text\"\n name=\"address3\"\n id=\"address3\"\n ng-model=\"client.address3\"\n class=\"form-control\"\n />\n </div>\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.address4.$invalid && booking_form.submitted}\">\n <label\n for=\"address4\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.ADDRESS4_LBL\"></span>\n </label>\n <div>\n <input\n type=\"text\"\n name=\"address4\"\n id=\"address4\"\n ng-model=\"client.address4\"\n class=\"form-control\"\n />\n </div>\n </div>\n\n <div\n class=\"form-group\"\n ng-class=\"{\'has-error\': client_form.postcode.$invalid && ((client_form.postcode.$dirty && !client_form.postcode.$focused) || booking_form.submitted)}\">\n <label\n for=\"postcode\"\n class=\"control-label\">\n <span translate=\"ADMIN_BOOKING.CUSTOMER.POSTCODE_LBL\"></span>\n </label>\n <div>\n <input\n type=\"text\"\n name=\"postcode\"\n id=\"postcode\"\n ng-model=\"client.postcode\"\n class=\"form-control\"\n />\n </div>\n </div>\n\n\n </div>\n\n <div class=\"row\">\n <div class=\"col-sm-3\">\n <button\n type=\"submit\"\n class=\"btn btn-primary btn-block\"\n ng-click=\"submitForm(client_form) && createClient()\"\n bb-debounce\n translate=\"ADMIN_BOOKING.CUSTOMER.CREATE_BTN\">\n </button>\n </div>\n </div>\n\n </div>\n\n </div>\n </div>\n\n </div>\n\n <div class=\"bb-step-navigation\">\n <div class=\"row\">\n <div class=\"col-sm-9 col-sm-push-3 text-right\">\n <!-- <button type=\"submit\" class=\"btn btn-primary\" ng-click=\"confirm(booking_form) && validator.validateForm(booking_form) && checkReady() && routeReady()\">Confirm</button> -->\n </div>\n <div class=\"col-sm-3 col-sm-pull-9\">\n <button\n type=\"button\"\n class=\"btn btn-default\"\n bb-debounce\n ng-click=\"loadPreviousStep()\"\n ng-show=\"bb.current_step > 1\"\n translate=\"ADMIN_BOOKING.CUSTOMER.BACK_BTN\">\n </button>\n </div>\n </div>\n </div>\n\n</div>\n");
$templateCache.put("admin_booking_popup.html","<div class=\"modal-header\">\n <button\n type=\"button\"\n class=\"close\"\n ng-click=\"cancel()\">\n ×\n </button>\n</div>\n<div class=\"modal-body\">\n <div\n bb-admin-booking=\"{{config}}\"\n class=\"container-fluid\">\n </div>\n</div>\n");
$templateCache.put("admin_member_bookings_table.html","<table\n tr-ng-grid=\"\"\n items=\"bookings\"\n enable-filtering=\"false\"\n ng-hide=\"loading\"\n fields=\"fields\"\n order-by=\"orderBy\">\n <thead>\n <tr role=\"row\">\n <th\n field-name=\"date_order\"\n display-name=\"Date/Time\">\n </th>\n <th\n field-name=\"details\"\n display-name=\"Description\">\n </th>\n </tr>\n </thead>\n <tbody>\n <tr role=\"row\">\n <td field-name=\"date_order\">\n <span>{{gridItem.datetime | datetime: \'ddd DD MMM YY h.mma\'}}</span>\n </td>\n <td field-name=\"details\">\n <span>{{gridItem.details}}</span>\n </td>\n <td>\n <button\n class=\"btn btn-default btn-sm\"\n ng-hide=\"gridItem.datetime.format(\'X\') < now.format(\'X\')\"\n ng-click=\"cancel(gridItem.id)\"\n translate=\"ADMIN_BOOKING.BOOKINGS_TABLE.CANCEL_BTN\">\n </button>\n <button\n class=\"btn btn-default btn-sm\"\n ng-click=\"edit(gridItem.id)\"\n translate=\"ADMIN_BOOKING.BOOKINGS_TABLE.DETAILS_BTN\">\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n");
$templateCache.put("admin_move_booking.html","<div bb-purchase=\"{move_route: \'calendar\'}\">\n\n <div class=\"bb-checkout\">\n\n <div class=\"row\">\n\n <div class=\"col-xs-offset-1 col-xs-10\">\n\n <div ng-show=\"purchase && bookings.length == 0\">\n <div class=\"confirmation-header\">\n <h2\n class=\"confirmation-heading\"\n translate=\"PUBLIC_BOOKING.PURCHASE.CANCEL_CONFIRMATION_HEADING\">\n </h2>\n </div>\n </div>\n\n <div ng-show=\"bookings\">\n\n <div ng-show=\"is_waitlist\">\n <div bb-include=\"book_waitlist\"></div>\n </div>\n\n <div ng-hide=\"is_waitlist\">\n\n <div class=\"confirmation-header\">\n <h3\n class=\"confirmation-heading\"\n translate=\"PUBLIC_BOOKING.PURCHASE.HEADING\"\n translate-values=\"{service_name: purchase.bookings[0].service_name}\">\n </h3>\n <div class=\"row hidden-print text-right\" >\n <button\n type=\"button\"\n class=\"btn btn-link\"\n onclick=\"window.print()\">\n <span class=\"fa fa-print\"></span>\n <span translate=\"PUBLIC_BOOKING.PURCHASE.PRINT_BTN\"></span>\n </button>\n <div\n bb-booking-export=\"purchase\"\n class=\"bb-booking-export\">\n </div>\n </div>\n </div>\n\n <div>\n\n <ul class=\"confirmation-summary\">\n\n <li class=\"row confirmation-summary-item\">\n <div class=\"bb-summary-label\">\n <span translate=\"PUBLIC_BOOKING.PURCHASE.CUSTOMER_NAME_LBL\"></span>\n </div>\n <div class=\"bb-summary-value\">{{purchase.client.name}}</div>\n </li>\n\n <li class=\"row confirmation-summary-item\">\n <div class=\"bb-summary-label\">\n <span translate=\"PUBLIC_BOOKING.PURCHASE.EMAIL_LBL\"></span>\n </div>\n <div class=\"bb-summary-value\">{{purchase.client.email}}</div>\n </li>\n\n <li class=\"row confirmation-summary-item\">\n <div class=\"bb-summary-label\">\n <span translate=\"PUBLIC_BOOKING.PURCHASE.SERVICE_LBL\"></span>\n </div>\n <div class=\"bb-summary-value\">{{purchase.bookings[0].service_name}}</div>\n </li>\n\n <li class=\"row confirmation-summary-item\">\n <div class=\"bb-summary-label\">\n <span translate=\"PUBLIC_BOOKING.PURCHASE.WHEN_LBL\">\n </div>\n <div class=\"bb-summary-value\">{{purchase.bookings[0].datetime | datetime: \'LLLL\'}}</div>\n </li>\n\n <li class=\"row confirmation-summary-item\" ng-show=\"purchase.total_price > 0\">\n <div class=\"bb-summary-label\">\n <span translate=\"PUBLIC_BOOKING.PURCHASE.PRICE_LBL\"></span>\n </div>\n <div class=\"bb-summary-value\">{{purchase.total_price | currency }}</div>\n </li>\n\n </ul>\n\n </div>\n\n <div class=\"hidden-print\">\n\n <div class=\"bb-step-navigation\">\n\n <div class=\"row\">\n\n <div class=\"col-sm-4\">\n <button\n type=\"button\"\n class=\"btn btn-secondary btn-block\"\n ng-click=\"delete(bookings[0])\"\n translate=\"PUBLIC_BOOKING.PURCHASE.CANCEL_BOOKING_BTN\">\n </button>\n </div>\n\n <div class=\"col-sm-4\">\n <button\n type=\"button\"\n class=\"btn btn-primary btn-block\"\n ng-click=\"move(bookings[0], \'\', {use_resource: true})\"\n translate=\"PUBLIC_BOOKING.PURCHASE.MOVE_BOOKING_BTN\">\n </button>\n </div>\n\n <div\n ng-show=\"waitlist_bookings\"\n class=\"col-sm-4\">\n <button\n type=\"button\"\n class=\"btn btn-primary btn-block\"\n ng-click=\"is_waitlist = true\"\n translate=\"PUBLIC_BOOKING.PURCHASE.BOOK_WAITLIST_ITEMS_BTN\">\n </button>\n </div>\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n</div>\n");
$templateCache.put("admin_move_booking_popup.html","<div class=\"modal-header\">\n <button\n type=\"button\"\n class=\"close\"\n ng-click=\"cancel()\">\n ×\n </button>\n</div>\n<div class=\"modal-body\">\n <div\n bb-admin-move-booking=\"{{config}}\"\n class=\"container-fluid\"> \n </div>\n</div>\n\n\n");
$templateCache.put("calendar.html","<div bb-page>\n\n <div\n bb-admin-calendar\n class=\"bb-admin-calendar\">\n\n <div class=\"page-header\">\n <h1 ng-show=\"availability_conflict\">\n <span translate=\"ADMIN_BOOKING.CALENDAR.STEP_HEADING\"></span>\n </h1>\n <h1 ng-show=\"!availability_conflict\">\n <span translate=\"ADMIN_BOOKING.CALENDAR.TIME_NOT_AVAILABLE_STEP_HEADING\"></span>\n </h1>\n </div>\n\n <div\n class=\"page-summary\"\n ng-if=\"availability_conflict\"\n bb-admin-calendar-conflict>\n\n <div\n class=\"panel panel-danger\"\n ng-show=\"availability_conflict\">\n\n <div class=\"panel-heading\">\n <strong>\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.NOT_AVAILABLE\"\n translate-values=\"{time: (bb.current_item.defaults.datetime | datetime: \'lll\')}\">\n </span>\n </strong>\n </div>\n\n <div class=\"panel-body\">\n\n <div ng-if=\"!checking_conflicts\">\n\n <div ng-if=\"overlapping_bookings\">\n <p translate=\"ADMIN_BOOKING.CALENDAR.OVERLAPPING_BOOKINGS\"></p>\n <div\n class=\"row\"\n ng-repeat=\"booking in overlapping_bookings\">\n <div class=\"col-sm-12\">\n <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>\n <strong>{{booking.full_describe}}</strong>\n </div>\n </div>\n </div>\n\n <div ng-if=\"nearby_bookings && !overlapping_bookings\">\n <p translate=\"ADMIN_BOOKING.CALENDAR.NEARBY_BOOKINGS\"></p>\n <div\n class=\"row\"\n ng-repeat=\"booking in nearby_bookings\">\n <div class=\"col-sm-12\">\n <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>\n <strong>{{booking.full_describe}}</strong>\n </div>\n </div>\n </div>\n\n <div ng-if=\"external_bookings\">\n <p translate=\"ADMIN_BOOKING.CALENDAR.EXTERNAL_BOOKINGS\"></p>\n <div\n class=\"row\"\n ng-repeat=\"booking in external_bookings\">\n <div class=\"col-sm-12\">\n <i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>\n <strong\n translate=\"ADMIN_BOOKING.CALENDAR.EXTERNAL_BOOKING_DESCRIPTION\"\n translate-values=\"{\n title: booking.title,\n from: (booking.start_time | datetime: \'lll\'),\n to: (booking.end_time | datetime: \'lll\')\n }\">\n </strong>\n </div>\n </div>\n </div>\n\n <div ng-if=\"best_earlier || best_later\">\n\n <div ng-if=\"step_mismatch\">\n\n <p\n ng-if=\"allow_overbook\"\n translate=\"ADMIN_BOOKING.CALENDAR.ALTERNATIVE_TIME_ALLOW_OVERBOOKING\">\n </p>\n <p\n ng-if=\"!allow_overbook\"\n translate=\"ADMIN_BOOKING.CALENDAR.ALTERNATIVE_TIME_NO_OVERBOOKING\"></p>\n <div class=\"text-center\">\n\n <button\n type=\"button\"\n class=\"btn btn-primary\"\n ng-click=\"pickTime(best_earlier)\">\n <i class=\"fa fa-calendar-check-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.CLOSEST_EARLIER_TIME_BTN\"\n translate-values=\"{closest_earlier: (best_earlier.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-warning\"\n ng-click=\"overBook()\" >\n <i class=\"fa fa-calendar-times-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.REQUESTED_TIME_BTN\"\n translate-values=\"{requested_time: (bb.current_item.defaults.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-primary\"\n ng-click=\"pickTime(best_later)\">\n <i class=\"fa fa-calendar-check-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.CLOSEST_LATER_TIME_BTN\"\n translate-values=\"{closest_later: (best_later.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-primary\"\n ng-click=\"pickOtherTime()\">\n <i class=\"fa fa-calendar-o\"></i>\n <span translate=\"ADMIN_BOOKING.CALENDAR.FIND_ANOTHER_TIME_BTN\"></span>\n </button>\n\n </div>\n\n </div>\n\n <div ng-if=\"!step_mismatch\">\n\n <p\n ng-if=\"allow_overbook\"\n translate=\"ADMIN_BOOKING.CALENDAR.CLOSEST_TIME_ALLOW_OVERBOOKING\">\n </p>\n <p\n ng-if=\"!allow_overbook\"\n translate=\"ADMIN_BOOKING.CALENDAR.CLOSEST_TIME_NO_OVERBOOKING\">\n </p>\n <div class=\"text-center\">\n\n <button\n type=\"button\"\n ng-if=\"best_earlier\"\n class=\"btn btn-primary\"\n ng-click=\"pickTime(best_earlier)\">\n <i class=\"fa fa-calendar-check-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.CLOSEST_EARLIER_TIME_BTN\"\n translate-values=\"{closest_earlier: (best_earlier.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-warning\"\n ng-click=\"overBook()\">\n <i class=\"fa fa-calendar-times-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.REQUESTED_TIME_BTN\"\n translate-values=\"{requested_time: (bb.current_item.defaults.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n ng-if=\"best_later\"\n class=\"btn btn-primary\"\n ng-click=\"pickTime(best_later)\">\n <i class=\"fa fa-calendar-check-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.CLOSEST_LATER_TIME_BTN\"\n translate-values=\"{closest_later: (best_later.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-primary\"\n ng-click=\"pickOtherTime()\">\n <i class=\"fa fa-calendar-o\"></i>\n <span translate=\"ADMIN_BOOKING.CALENDAR.FIND_ANOTHER_TIME_BTN\"></span>\n </button>\n\n </div>\n </div>\n </div>\n\n <div ng-if=\"!best_earlier && !best_later\">\n\n <p\n ng-if=\"allow_overbook\"\n translate=\"ADMIN_BOOKING.CALENDAR.ALTERNATIVE_TIME_ALLOW_OVERBOOKING\">\n </p>\n\n <p\n ng-if=\"!allow_overbook\"\n translate=\"ADMIN_BOOKING.CALENDAR.ALTERNATIVE_TIME_NO_OVERBOOKING\">\n </p>\n\n <div class=\"text-center\">\n\n <button\n type=\"button\"\n class=\"btn btn-warning\"\n ng-click=\"overBook()\">\n <i class=\"fa fa-calendar-times-o\"></i>\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.REQUESTED_TIME_BTN\"\n translate-values=\"{requested_time: (bb.current_item.defaults.datetime | datetime: \'LT\')}\">\n </span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-primary\"\n ng-click=\"pickOtherTime()\">\n <i class=\"fa fa-calendar-o\"></i>\n <span translate=\"ADMIN_BOOKING.CALENDAR.FIND_ANOTHER_TIME_BTN\"></span>\n </button>\n\n </div>\n\n </div>\n </div>\n\n </div>\n </div>\n </div>\n\n <div\n class=\"page-summary\"\n ng-show=\"!availability_conflict\">\n <span translate=\"ADMIN_BOOKING.CALENDAR.SELECT_A_TIME_FOR_BOOKING\"></span>\n </div>\n\n <!-- CALENDAR (with First available/Day/Week view)-->\n <div class=\"panel panel-default\" ng-show=\"!availability_conflict\">\n\n <div class=\"panel-heading\">\n <strong translate=\"ADMIN_BOOKING.CALENDAR.CALENDAR_PANEL_HEADING\"></strong>\n </div>\n\n <div class=\"panel-body\">\n\n <div class=\"row\">\n\n <div class=\"col-sm-8\">\n\n <div class=\"form-inline\">\n\n <div class=\"bb-label\">\n <span class=\"fa fa-filter\" aria-hidden=\"true\"></span>\n <span translate=\"ADMIN_BOOKING.CALENDAR.FILTER_BY_LBL\"></span>:\n </div>\n\n <div\n class=\"form-group\"\n ng-if=\"bb.company.$has(\'people\')\">\n <select\n bb-people\n class=\"form-control\"\n id=\"person\"\n ng-model=\"person\"\n ng-options=\"p.name for p in bookable_people | orderBy: \'name\'\">\n <option\n value=\"\"\n translate=\"ADMIN_BOOKING.CALENDAR.ANY_PERSON_OPTION\">\n </option>\n </select>\n </div>\n\n <div\n class=\"form-group\"\n ng-if=\"bb.company.$has(\'resources\')\">\n <select\n bb-resources=\"{allow_single_pick: true}\"\n class=\"form-control\"\n id=\"resource\"\n ng-model=\"resource\"\n ng-options=\"r.name for r in bookable_resources | orderBy: \'name\'\">\n <option\n value=\"\"\n translate=\"ADMIN_BOOKING.CALENDAR.ANY_RESOURCE_OPTION\">\n </option>\n </select>\n\n </div>\n\n </div>\n </div>\n\n <div class=\"col-sm-4\">\n\n <div class=\"bb-view-switcher hidden-xs\">\n <div class=\"btn-group pull-right\">\n\n <button\n type=\"button\"\n class=\"btn btn-sm btn-default\"\n ng-class=\"{active: calendar_view.next_available}\"\n ng-click=\"switchView(\'next_available\')\"\n ng-if=\"bb.item_defaults.pick_first_time\">\n <i class=\"fa fa-calendar-check-o\"></i>\n <span translate=\"ADMIN_BOOKING.CALENDAR.FIRST_FOUND_VIEW_BTN\"></span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-sm btn-default\"\n ng-class=\"{active: calendar_view.day}\"\n ng-click=\"switchView(\'day\')\">\n <i class=\"fa fa-calendar-times-o\"></i>\n <span translate=\"ADMIN_BOOKING.CALENDAR.DAY_VIEW_BTN\"></span>\n </button>\n\n <button\n type=\"button\"\n class=\"btn btn-sm btn-default\"\n ng-class=\"{active: calendar_view.multi_day}\"\n ng-click=\"switchView(\'multi_day\')\">\n <i class=\"fa fa-calendar-o\"></i>\n <span\n class=\"visible-sm-inline\"\n translate=\"ADMIN_BOOKING.CALENDAR.DAY_3_VIEW_BTN\">\n </span>\n <span\n class=\"visible-md-inline\"\n translate=\"ADMIN_BOOKING.CALENDAR.DAY_5_VIEW_BTN\">\n </span>\n <span\n class=\"visible-lg-inline\"\n translate=\"ADMIN_BOOKING.CALENDAR.DAY_7_VIEW_BTN\">\n </span>\n </button>\n </div>\n </div>\n </div>\n\n </div>\n\n <div\n ng-if=\"calendar_view.next_available\"\n select-first-slot>\n\n <div class=\"bb-day-nav\">\n\n <h2 class=\"hidden-xs bb-day-nav-heading\">\n {{selected_date | datetime: \'LL\'}}\n </h2>\n <h2 class=\"hidden-sm hidden-md hidden-lg bb-day-nav-heading\">\n {{selected_date | datetime: \'ll\'}}\n </h2>\n\n </div>\n\n <div class=\"bb-calendar\">\n\n <div class=\"panel-group\">\n <div class=\"bb-accordion-group\">\n <div class=\"panel panel-default\">\n\n <ul\n class=\"time-slots\"\n ng-if=\"slots.length > 0\">\n\n <li\n class=\"time-slot\"\n ng-class=\"{\'selected\': slot.selected, \'disabled\': slot.disabled, \'hide-later\': slot.hidden}\"\n ng-disabled=\"slot.disabled\"\n ng-click=\"highlightSlot(slot, selected_day)\"\n ng-repeat=\"slot in slots | in_the_future | limitTo: 10\">\n <span\n translate=\"ADMIN_BOOKING.CALENDAR.TIME_SLOT_WITH_COUNTDOWN\"\n translate-values=\"{datetime: (slot.datetime | datetime: \'LT\'), time: slot.time}\">\n </span>\n </li>\n\n </ul>\n\n <p\n class=\"text-center\"\n ng-if=\"slots.length == 0\">\n <span translate=\"ADMIN_BOOKING.CALENDAR.NOT_FOUND_TRY_DIFFERENT_TIME_RANGE\"></span>\n </p>\n\n </div>\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n <div ng-if=\"calendar_view.day\">\n\n <div class=\"bb-day-nav\">\n\n <button\n type=\"button\"\n class=\"btn btn-icon btn-lg\"\n ng-click=\"subtract(\'days\', 1)\">\n <span class=\"fa fa-chevron-left\"></span>\n <!-- <span class=\"hidden-xs\">Previous</span> -->\n </button>\n\n <h2 class=\"hidden-xs bb-day-nav-heading\">\n {{selected_date | datetime: \'Do MMMM YYYY\'}}\n </h2>\n <h2 class=\"hidden-sm hidden-md hidden-lg bb-day-nav-heading\">\n {{selected_date | datetime: \'Do MMMM\'}}\n </h2>\n\n <button\n type=\"button\"\n class=\"btn btn-icon btn-lg\"\n ng-click=\"add(\'days\', 1)\">\n <span class=\"fa fa-chevron-right\"></span>\n <!-- <span class=\"hidden-xs\">Next</span> -->\n </button>\n\n </div>\n\n <div class=\"bb-calendar\">\n\n <div ng-show=\"!slots || (slots && slots.length == 0)\">\n <p\n class=\"text-center\"\n translate=\"ADMIN_BOOKING.CALENDAR.NOT_FOUND\">\n </p>\n </div>\n\n <div ng-if=\"slots\">\n\n <div\n uib-accordion\n close-others=\"false\">\n\n <div\n bb-accordion-range-group=\"{\n heading: \'ADMIN_BOOKING.CALENDAR.MORNING_HEADER\',\n range: [0, 720],\n collapse_when_time_selected: true\n }\"\n day=\"selected_day\"\n slots=\"slots\"\n select-slot=\"highlightSlot\"\n ng-init=\"setFormDataStoreId($index)\"\n class=\"accordion-group\">\n </div>\n\n <div\n bb-accordion-range-group=\"{\n heading: \'ADMIN_BOOKING.CALENDAR.AFTERNOON_HEADER\',\n range: [720, 1020],\n collapse_when_time_selected: true\n }\"\n day=\"selected_day\"\n slots=\"slots\"\n select-slot=\"highlightSlot\"\n ng-init=\"setFormDataStoreId($index)\"\n class=\"accordion-group\">\n </div>\n\n <div\n bb-accordion-range-group=\"{\n heading: \'ADMIN_BOOKING.CALENDAR.EVENING_HEADER\',\n range: [1020, 1440],\n collapse_when_time_selected: true\n }\"\n day=\"selected_day\"\n slots=\"slots\"\n select-slot=\"highlightSlot\"\n ng-init=\"setFormDataStoreId($index)\"\n class=\"accordion-group\">\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n <div ng-if=\"calendar_view.multi_day\">\n <div bb-time-ranges=\"{selected_day: today}\" bb-scroll-to=\"time:selected\"></div>\n </div>\n\n <button\n type=\"button\"\n class=\"btn btn-primary pull-right\"\n ng-click=\"checkReady() && routeReady()\"\n bb-debounce\n ng-disabled=\"!bb.current_item.time\"\n translate=\"ADMIN_BOOKING.CALENDAR.SELECT_BTN\">\n </button>\n\n </div>\n\n </div>\n\n </div>\n\n <div class=\"bb-step-navigation\">\n <div class=\"row\">\n <div class=\"col-sm-9 col-sm-push-3 text-right\"></div>\n <div class=\"col-sm-3 col-sm-pull-9\">\n <button\n type=\"button\"\n class=\"btn btn-default\"\n bb-debounce\n ng-click=\"loadPreviousStep()\"\n ng-show=\"bb.current_step > 1\"\n translate=\"ADMIN_BOOKING.CALENDAR.BACK_BTN\">\n </button>\n </div>\n </div>\n </div>\n\n</div>\n");
$templateCache.put("check_items.html","<div bb-page>\n\n <div bb-include=\"_basket_item_summary\"></div>\n\n <form\n name=\"booking_form\"\n class=\"form-horizontal\"\n role=\"form\"\n bb-form>\n\n <div\n bb-custom-booking-text\n class=\"bb-message-node\">\n <div\n ng-repeat=\"msg in messages\"\n ng-bind-html=\"msg\">\n </div>\n </div>\n\n <h2\n class=\"booking-form-header\"\n translate=\"PUBLIC_BOOKING.CHECK_ITEMS.BOOKING_QUESTIONS_HEADING\">\n </h2>\n\n <div bb-item-details></div>\n\n <div class=\"question-node\">\n <label for=\"notes\">\n <span translate=\"ADMIN_BOOKING.CHECK_ITEMS.PRIVATE_BOOKING_NOTES_HEADING\"></span>:\n </label>\n <span>\n <textarea\n ng-model=\"item.private_note\"\n name=\"note\"\n id=\"note\"\n rows=\"3\"\n class=\"form-question form-control\">\n </textarea>\n <br>\n </span>\n </div>\n \n </div>\n\n <div class=\"bb-step-navigation\">\n <div class=\"row\">\n <div class=\"col-sm-9 col-sm-push-3 text-right\">\n \n <button\n type=\"submit\"\n class=\"btn btn-primary pull-right\"\n ng-click=\"validator.validateForm(booking_form) && checkReady() && routeReady()\"\n translate=\"ADMIN_BOOKING.CHECK_ITEMS.BOOK_BTN\">\n </button>\n\n </div>\n <div class=\"col-sm-3 col-sm-pull-9\">\n\n <button\n type=\"button\"\n class=\"btn btn-default pull-left\"\n ng-click=\"loadPreviousStep()\"\n ng-show=\"bb.current_step > 1\"\n translate=\"ADMIN_BOOKING.CHECK_ITEMS.BACK_BTN\">\n </button>\n\n </div>\n </div>\n </div>\n\n </form>\n\n</div>");
$templateCache.put("client.html","<div bb-admin-booking-clients></div>\n");
$templateCache.put("confirmation.html","<div\n bb-total\n class=\"bb-checkout\">\n\n <div class=\"row\">\n <div class=\"col-sm-offset-1 col-sm-10 col-md-offset-2 col-md-8\">\n\n <div class=\"bb-subcontent\">\n <div class=\"confirmation-header bb-confirmation-border-margin\">\n\n <h2\n id=\"bb-confirmation-summary-title\"\n translate=\"ADMIN_BOOKING.CONFIRMATION.TITLE\">\n </h2>\n\n <div ng-if=\"!total.containsWaitlistItems()\">\n\n <p\n id=\"bb-confirmation-summary-subtitle\"\n class=\"bb-confirmation-p-alignment\">\n <span translate=\"ADMIN_BOOKING.CONFIRMATION.BOOKING_CONFIRMATION\"></span>\n <span\n translate=\"ADMIN_BOOKING.CONFIRMATION.EMAIL_CONFIRMATION\"\n translate-values=\"{customer_name: total.client.getName()}\"\n ng-show=\"total.client.email\">\n </span>\n </p>\n\n </div>\n <div ng-if=\"total.containsWaitlistItems()\">\n\n <p\n id=\"bb-confirmation-summary-title\"\n class=\"bb-confirmation-p-alignment\">\n <span translate=\"ADMIN_BOOKING.CONFIRMATION.WAITLIST_CONFIRMATION\"></span>\n <span\n translate=\"ADMIN_BOOKING.CONFIRMATION.EMAIL_CONFIRMATION\"\n translate-values=\"{customer_name: total.client.getName()}\"\n ng-show=\"total.client.email\">\n </span>\n </p>\n\n </div>\n </div>\n\n <div>\n <ul class=\"confirmation-summary\">\n\n <li\n id=\"bb-confirmation-summary-reference\"\n class=\"row confirmation-summary-item\">\n <div\n class=\"col-sm-3 bb-summary-label\"\n translate=\"ADMIN_BOOKING.CONFIRMATION.PURCHASE_REF_LBL\">\n </div>\n <div class=\"col-sm-9 bb-summary-value\">\n {{total.id}}\n </div>\n </li>\n\n <li\n id=\"bb-confirmation-summary-customer\"\n class=\"row confirmation-summary-item\">\n <div\n class=\"col-sm-3 bb-summary-label\"\n translate=\"ADMIN_BOOKING.CONFIRMATION.CUSTOMER_LBL\">\n </div>\n <div class=\"col-sm-9 bb-summary-value\">\n {{total.client.getName()}}\n </div>\n </li>\n\n </ul>\n\n <ul\n class=\"confirmation-summary\"\n ng-repeat=\"i in total.items\">\n\n <li\n id=\"bb-confirmation-summary-service\"\n ng-if=\"i.full_describe\"\n class=\"row confirmation-summary-item\">\n <div\n class=\"col-sm-3 bb-summary-label\"\n translate=\"ADMIN_BOOKING.CONFIRMATION.SERVICE_LBL\">\n </div>\n <div class=\"col-sm-9 bb-summary-value\">\n {{i.full_describe}}\n </div>\n </li>\n\n <li\n id=\"bb-confirmation-summary-datetime\"\n ng-if=\"i.describe\"\n class=\"row confirmation-summary-item\">\n <div\n class=\"col-sm-3 bb-summary-label\"\n translate=\"ADMIN_BOOKING.CONFIRMATION.DATE_TIME_LBL\">\n </div>\n <div class=\"col-sm-9 bb-summary-value\">\n {{i.describe}}\n </div>\n </li>\n\n <li\n id=\"bb-confirmation-summary-price\"\n ng-if=\"i.price\"\n class=\"row confirmation-summary-item\">\n <div\n class=\"col-sm-3 bb-summary-label\"\n translate=\"ADMIN_BOOKING.CONFIRMATION.PRICE_LBL\">\n </div>\n <div class=\"col-sm-9 bb-summary-value\">\n {{i.price | currency}}\n </div>\n </li>\n\n </ul>\n\n <ul\n ng-show=\"total.bookings[0].address.lat\"\n class=\"confirmation-summary\">\n\n <div class=\"confirmation-summary-address\">\n <div>\n <span class=\'fa fa-map-marker\'></span>\n {{total.bookings[0].address | address_single_line}}\n </div>\n <div>\n <span class=\'fa fa-phone\'></span>\n {{total.bookings[0].address.phone | local_phone_number}}\n </div>\n </div>\n\n </ul>\n\n <div\n bb-custom-confirmation-text\n class=\"bb-message\">\n <div\n ng-repeat=\"msg in messages\"\n ng-bind-html=\"msg\">\n </div>\n </div>\n\n <div class=\"row hidden-print pull-right print-row\">\n <button\n type=\"button\"\n class=\"btn btn-link\"\n onclick=\"window.print()\">\n <span class=\"fa fa-print fa-2x\"></span>\n <span translate=\"ADMIN_BOOKING.CONFIRMATION.PRINT_BTN\"></span>\n </button>\n </div>\n\n <div\n class=\"row\"\n style=\"margin-top: 10px\"\n ng-click=\"cancel()\"\n ng-if=\"cancel\">\n <button\n type=\"button\"\n class=\"btn btn-primary pull-right\">\n <span translate=\"ADMIN_BOOKING.CONFIRMATION.CLOSE_BTN\"></span>\n </button>\n </div>\n\n </div>\n\n </div>\n\n </div>\n </div>\n\n</div>\n");
$templateCache.put("main.html","<div class=\"header\">\n\n <div bb-form-data-store></div>\n\n <div bb-language-picker></div>\n\n <!-- BREADCRUMB ROUTE\n <div\n bb-breadcrumbs\n class=\"breadcrumbs_holder\"\n ng-init=\"setRoute([\n {page:\'event_list\', title: \'Select an event\'},\n {page:\'event\', title: \'Event\'},\n {page:\'checkout\', title: \'Confirmation\'}\n ])\">\n -->\n\n <div\n class=\"alerts\"\n bb-scroll-to=\"alert:raised\"\n bb-always-scroll>\n <div\n uib-alert\n ng-repeat=\"alert in $root.alerts\"\n ng-class=\"\'alert-\' + alert.type\">\n <ul>\n <li ng-bind-html=\"alert.msg\"></li>\n </ul>\n </div>\n </div>\n\n</div>\n\n<div class=\"bb-content\">\n\n <div\n bb-content\n class=\"ng-cloak\">\n </div>\n\n <div\n bb-loading\n class=\"bb-loader\" >\n <div id=\"loading_icon\">\n <div id=\"wait_graphic\"> </div>\n </div>\n </div>\n\n</div>\n");
$templateCache.put("quick_pick.html","<div\n bb-form-data-store\n ng-if=\"all_done\"\n bb-page\n bb-wait-for=\"emptybasket()\"\n bb-wait-var=\"all_done\"\n class=\"bb-quick-pick\">\n\n <uib-tabset>\n\n <uib-tab>\n\n <uib-tab-heading>\n <i class=\"fa fa-calendar-plus-o\"></i>\n <span translate=\"ADMIN_BOOKING.QUICK_PICK.MAKE_BOOKING_TAB_HEADING\"></span>\n </uib-tab-heading>\n <br/>\n\n <!-- Make booking tab START -->\n <ng-form\n bb-form\n bb-form-route=\"calendar\"\n name=\"appointmentBookingForm\">\n\n <div\n bb-services=\"{allow_single_pick: true}\"\n class=\"form-group\"\n ng-class=\"{\n \'has-error\': appointmentBookingForm.service.$invalid &&\n (appointmentBookingForm.$submitted || appointmentBookingForm.service.$dirty)\n }\">\n\n <label translate=\"ADMIN_BOOKING.QUICK_PICK.SERVICE_LABEL\"></label>\n\n <select\n class=\" form-control\"\n name=\"service\"\n ng-model=\"$bbServicesCtrl.$scope.service\"\n ng-options=\"s.name for s in (filtered_items | orderBy:\'name\' ) track by s.id\"\n required=\"true\">\n <option\n translate=\"ADMIN_BOOKING.QUICK_PICK.SERVICE_DEFAULT_OPTION\"\n value=\"\">\n </option>\n </select>\n\n <div ng-messages=\"appointmentBookingForm.service.$error\" role=\"alert\">\n\n <div ng-if=\"appointmentBookingForm.service.$dirty || appointmentBookingForm.$submitted\">\n\n <div\n class=\"error-message\"\n ng-message=\"required\">\n <span translate=\"ADMIN_BOOKING.QUICK_PICK.SERVICE_REQUIRED_MSG\"></span>\n </div>\n\n </div>\n\n </div>\n\n </div>\n\n <div\n bb-people\n class=\"form-group\"\n ng-if=\"appointmentBookingForm.service.$modelValue && bb.company.$has(\'people\')\">\n\n <label translate=\"ADMIN_BOOKING.QUICK_PICK.PERSON_LABEL\"></label>\n\n <select class=\" form-control\"\n name=\"person\"\n ng-model=\"$bbPeopleCtrl.$scope.person\"\n ng-options=\"p.name for p in (bookable_people | orderBy:\'name\') track by p.id\">\n <option\n translate=\"ADMIN_BOOKING.QUICK_PICK.PERSON_DEFAULT_OPTION\"\n value=\"\">\n </option>\n </select>\n\n </div>\n\n <div\n bb-resources\n class=\"form-group\"\n ng-if=\"appointmentBookingForm.service.$modelValue && bb.company.$has(\'resources\')\">\n\n <label translate=\"ADMIN_BOOKING.QUICK_PICK.RESOURCE_LABEL\"></label>\n\n <select\n class=\"form-control\"\n name=\"person\"\n ng-model=\"$bbResourcesCtrl.$scope.resource\"\n ng-options=\"r.name for r in (bookable_resources | orderBy:\'name\') track by r.id\">\n <option\n translate=\"ADMIN_BOOKING.QUICK_PICK.RESOURCE_DEFAULT_OPTION\"\n value=\"\">\n </option>\n </select>\n\n </div>\n\n <button\n class=\"btn btn-primary\"\n ng-click=\"submitForm()\"\n type=\"button\"\n translate=\"ADMIN_BOOKING.QUICK_PICK.NEXT_BTN\">\n </button>\n\n </ng-form>\n\n <!-- Make booking tab END -->\n\n </uib-tab>\n\n <uib-tab ng-show=\"!bb.hide_block\">\n\n <uib-tab-heading>\n <i class=\"fa fa-calendar-minus-o\"></i>\n <span translate=\"ADMIN_BOOKING.QUICK_PICK.BLOCK_TIME_TAB_HEADING\"></span>\n </uib-tab-heading>\n <br/>\n\n <!-- Block time tab START -->\n <ng-form\n bb-block-time\n class=\"bb-block-time\"\n name=\"blockTimeForm\">\n\n <bb-admin-resources-dropdown form-ctrl=\"blockTimeForm\"></bb-admin-resources-dropdown>\n\n <div\n class=\"form-group\"\n ng-init=\"blockWholeDay = false\"\n ng-hide=\"hideBlockAllDay\">\n\n <label>\n <span translate=\"ADMIN_BOOKING.QUICK_PICK.BLOCK_WHOLE_DAY\"></span> \n <toggle-switch\n class=\"switch-primary switch-small\"\n ng-model=\"blockWholeDay\"\n ng-change=\"changeBlockDay(blockWholeDay)\"\n on-label=\"{{ \'ADMIN_BOOKING.QUICK_PICK.YES_OPTION\' | translate }}\"\n off-label=\"{{ \'ADMIN_BOOKING.QUICK_PICK.NO_OPTION\' | translate }}\">\n </toggle-switch>\n </label>\n\n </div>\n\n <div\n class=\"row\"\n ng-hide=\"blockWholeDay\">\n\n <div class=\"col-md-6\">\n\n <div class=\"form-group\">\n <label translate=\"ADMIN_BOOKING.QUICK_PICK.FROM_LBL\"></label>\n <div\n bb-date-time-picker\n date=\"bb.from_datetime\"\n max-date=\"bb.to_datetime\"\n min-date=\"bb.min_date\">\n </div>\n </div>\n\n </div>\n\n <div class=\"col-md-6\">\n\n <div class=\"form-group\">\n <label translate=\"ADMIN_BOOKING.QUICK_PICK.TO_LBL\"></label>\n <div\n bb-date-time-picker\n date=\"bb.to_datetime\"\n min-date=\"bb.from_datetime\"\n max-date=\"bb.max_date\">\n </div>\n </div>\n\n </div>\n\n </div>\n\n <div\n class=\"bb-form\"\n ng-show=\"block_questions && block_questions.hasQuestions\"\n ng-form\n name=\"booking_questions_form\"\n novalidate\n role=\"form\">\n\n <div\n bb-question-line\n class=\"form-group row\"\n ng-class=\"{\n \'has-error\': booking_questions_form[\'q\' + question.id].$invalid &&\n (booking_questions_form[\'q\' + question.id].$dirty || booking_form.submitted)\n }\"\n ng-if=\"question.currentlyShown\"\n ng-repeat=\"question in block_questions.questions\">\n\n <label\n class=\"control-label col-sm-4\"\n for=\"{{question.id}}\"\n bb-question-label=\"question\">\n {{question.name}}\n </label>\n\n <div class=\"col-sm-5\">\n <input\n bb-question=\"question\"\n class=\"form-control\"\n />\n </div>\n\n <div class=\"col-sm-offset-4 messages\">\n\n <div\n class=\"error-message\"\n ng-show=\"booking_questions_form[\'q\' + question.id].$invalid &&\n ( booking_questions_form[\'q\' + question.id].$dirty || booking_form.submitted )\"\n translate=\"ADMIN_BOOKING.QUICK_PICK.FIELD_REQUIRED\">\n </div>\n\n </div>\n\n </div>\n\n </div><!--booking_questions_form-->\n\n <button\n class=\"btn btn-primary\"\n ng-click=\"blockTime(blockTimeForm)\"\n ng-disabled=\"loading\"\n translate=\"ADMIN_BOOKING.QUICK_PICK.BLOCK_TIME_BTN\"\n type=\"button\">\n </button>\n\n </ng-form>\n <!-- Block time tab END -->\n\n </uib-tab>\n\n </uib-tabset>\n\n</div>");
$templateCache.put("admin_resources_dropdown.html","<div class=\"form-group\"\n ng-class=\"{\n \'has-error\': $bbAdminResourcesDropdownCtrl.formCtrl.resource.$invalid &&\n ($bbAdminResourcesDropdownCtrl.formCtrl.$submitted || $bbAdminResourcesDropdownCtrl.formCtrl.resource.$dirty)\n }\">\n\n <label translate=\"ADMIN_BOOKING.QUICK_PICK.FOR\"></label>\n\n <select\n class=\"form-control\"\n name=\"resource\"\n ng-model=\"$bbAdminResourcesDropdownCtrl.pickedResource\"\n ng-change=\"$bbAdminResourcesDropdownCtrl.changeResource()\"\n ng-options=\"resource.identifier as resource.name group by resource.group for resource in $bbAdminResourcesDropdownCtrl.resources track by resource.identifier\"\n required=\"true\">\n <option translate=\"ADMIN_BOOKING.QUICK_PICK.SELECT\" value=\"\"></option>\n </select>\n\n <div ng-messages=\"$bbAdminResourcesDropdownCtrl.formCtrl.resource.$error\" role=\"alert\">\n <div\n ng-if=\"$bbAdminResourcesDropdownCtrl.formCtrl.resource.$dirty || $bbAdminResourcesDropdownCtrl.formCtrl.$submitted\">\n <div class=\"error-message\" ng-message=\"required\">\n <span translate=\"ADMIN_BOOKING.QUICK_PICK.ASSET_REQUIRED_MSG\"></span>\n </div>\n </div>\n </div>\n\n</div>");}]);