Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/views/index.pug

43 lines
1.3 KiB
Text
Raw Normal View History

2020-06-26 16:59:54 +02:00
extends layout
block content
2020-08-14 20:08:00 +02:00
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)
2020-08-14 20:08:00 +02:00
datalist#department-list
each department in departments
option(value=department.name)
2020-08-14 20:08:00 +02:00
div.field
label(for="firstname") First name:
input#firstname(type="text" name="firstName" value=user ? user.firstName : "" required)
2020-08-14 20:08:00 +02:00
div.field
label(for="lastname") Last name:
input#lastname(type="text" name="lastName" value=user ? user.lastName : "" required)
2020-08-14 20:08:00 +02:00
div#command1.command
h2 Command 1
div.field
label(for="sandwich") Sandwich:
input#sandwich(type="list" list="sandwich-list" name="sandwich1" autocomplete="off" required)
2020-08-14 20:08:00 +02:00
div.field
label(for="day") Day:
input#day(type="date" name="date1" required)
2020-08-14 20:08:00 +02:00
div#command-action
2020-08-15 11:47:36 +02:00
a#add-command +
a#remove-command.hide -
2020-08-14 20:08:00 +02:00
div.field
input#send(type="submit" value="Pay")
datalist#sandwich-list
2020-08-16 12:48:43 +02:00
each sandwich in sandwiches
option(value=sandwich.name)
2020-08-15 11:47:36 +02:00
2020-08-17 19:19:13 +02:00
script(src="/javascripts/index.js")