@(orderQs: List[Task], taskForm: Form[Task], taskForm2: Form[Task]) @* Written by: Rohit Lakshmanatirthakatte *@ @* Tested by: Rohit Lakshmanatirthakatte *@ @* Debugged by: Rohit Lakshmanatirthakatte *@ @* This is the template that defines the restaurant Order Queue interface. *@ @* Receives the orders that are stored in a List data structure from *@ @* OrderQueue.java. Also receives the Form definition to input orders.*@ @import helper._ @* Main template begins here. *@ @main("Order Queue"){ } {

Order Queue

@* The number of orders in the queue. *@

@orderQs.size() orders in order queue.

@* Lists the order IDs and order items. *@

Add a New Order

@* Create 2 textboxes and a button for submission for the input of new orders and table numbers. *@ @form(routes.OrderQueue.newTask()) { Enter Order Item @inputText(taskForm("label")) Enter Table Number @inputText(taskForm2("label2")) } @* HTML code to refresh the page automatically every 20 seconds. *@ }