-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookingbug-angular-queue-templates.js
3 lines (3 loc) · 3.18 KB
/
bookingbug-angular-queue-templates.js
1
2
3
angular.module("BB").run(["$templateCache", function($templateCache) {$templateCache.put("queue_server_customer.html","<div ng-show=\"loading\"><img src=\'/BB_wait.gif\' class=\"loader\"></div>\n<div ng-hide=\"loading\">\n <div ng-if=\"server.serving\">\n <h3>Serving {{server.serving.first_name}}</h3>\n <p>Appointment started at {{server.serving.start | datetime: \"h:mma\":false}}</p>\n <p>Appointment due to finish at {{server.serving.end | datetime: \"h:mma\":false}}</p>\n <button ng-click=\"extendAppointment(5)\" class=\"btn btn-default\">\n Extend Appointment\n </button>\n <button ng-click=\"finishServing()\" class=\"btn btn-default\">\n Finish Serving\n </button>\n </div>\n <div ng-if=\"!server.serving\">\n <h3>Idle</h3>\n <div class=\"well well-lg\" jqyoui-droppable=\"{onDrop:\'serveCustomer\'}\"\n data-drop=\"true\" ng-model=\"selected_queuers\">\n Drag customer here to serve or click \'Serve next customer\'\n </div>\n <button ng-click=\"serveNext()\" class=\"btn btn-default\">\n Serve next customer\n </button>\n </div>\n</div>\n");
$templateCache.put("queuer_table.html","<div ng-show=\"loading\"><img src=\'/BB_wait.gif\' class=\"loader\"></div>\n<div ng-hide=\"loading\">\n <button class=\"btn btn-default\" ng-click=\"newQueuerModal()\">New Queuer</button>\n <table tr-ng-grid=\"\" items=\"queuers\" fields=\"fields\" ng-if=\"queuers\">\n <tbody>\n <tr>\n <td>\n <button class=\"btn btn-default btn-sm\" ng-click=\"edit(gridItem)\">Edit</button>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n");
$templateCache.put("queuer_position.html","<div id=\"queue-position-wrapper\" style=\"width: 500px; margin: 0 auto; border: grey 1px solid;\">\n <div id=\"company-header\" style=\"box-shadow: 0 4px 2px -2px grey; text-align: center; background-color: #cccccc; padding: 10px;\">Company header goes here</div>\n <div id=\"main-text\" style=\"padding: 20px; background-color: #eeeeee;\">\n Hi {{queuer.name}}, thanks for waiting. Your ticket number is {{queuer.ticketNumber}}.\n <br /><br />\n Keep an eye on your position, we will text you when we are almost ready to see you for your {{queuer.serviceName}}:\n <br /><br />\n <div id=\"queuer-rank\" style=\"text-align: center;\">\n <span id=\"position\" style=\"font-size: 30px;\">{{queuer.position}}</span><br /><br />\n <timer ng-if=\"queuer.dueTime\" language=\"en\" end-time=\"queuer.dueTime\">\n <span ng-show=\"years > 0\">{{years}} year{{yearsS}}, </span><span ng-show=\"months > 0\">{{months}} month{{monthsS}}, </span><span ng-show=\"days > 0\">{{days}} day{{daysS}}, </span><span ng-show=\"hours > 0\">{{hours}} hour{{hoursS}}, </span> {{minutes}} minute{{minutesS}}\n </timer>\n </div>\n </div>\n <div id=\"visit-us\" style=\"box-shadow: inset 0 -4px 2px -2px gray; text-align: center; padding: 20px; background-color: #eeeeee;\">\n <button href=\"http://www.example.com\" style=\"border-radius: 5px; background-color: #cccccc; border: 0;\">Visit our website</button>\n </div>\n <div id=\"leave-queue\" ng-click=\"removeFromQueue(queuer)\" style=\"text-align: center; background-color: #cccccc; padding: 10px;\">\n Leave queue\n </div>\n</div>");}]);