42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
extends layout
|
|
|
|
block content
|
|
div.card
|
|
h1= title
|
|
p Welcome to Sandwiches Order Doua
|
|
form#command(action="/command" method="POST")
|
|
div.field
|
|
label(for="department") Department:
|
|
input#department(type="list" list="department-list" name="department" value=user ? user.DepartmentName : "" autocomplete="off" required)
|
|
datalist#department-list
|
|
each department in departments
|
|
option(value=department.name)
|
|
|
|
div.field
|
|
label(for="firstname") First name:
|
|
input#firstname(type="text" name="firstName" value=user ? user.firstName : "" required)
|
|
div.field
|
|
label(for="lastname") Last name:
|
|
input#lastname(type="text" name="lastName" value=user ? user.lastName : "" required)
|
|
|
|
div#command1.command
|
|
h2 Command 1
|
|
div.field
|
|
label(for="sandwich") Sandwich:
|
|
input#sandwich(type="list" list="sandwich-list" name="sandwich1" autocomplete="off" required)
|
|
div.field
|
|
label(for="day") Day:
|
|
input#day(type="date" name="date1" required)
|
|
|
|
div#command-action
|
|
a#add-command +
|
|
a#remove-command.hide -
|
|
|
|
div.field
|
|
input#send(type="submit" value="Pay")
|
|
|
|
datalist#sandwich-list
|
|
each sandwich in sandwiches
|
|
option(value=sandwich.name)
|
|
|
|
script(src="/javascripts/index.js")
|