-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.pug
30 lines (28 loc) · 977 Bytes
/
notes.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
taskForm.pug
extends layout.pug
append head
link(rel="stylesheet" href="/stylesheets/main.css")
//- script(src="/javascripts/tasks.js" type="module" defer)
block content
input(type='hidden' name='_csrf' value=csrfToken)
h1(class="tasksTitle") Tasks
div
if (tasks)
each task in tasks
div(class="tasksContainer")
div(class="tasksFlexContainer")
p=task.name
a(href=`/tasks/${task.id}/edit`) Edit Task
editTask.pug
extends layout.pug
append head
link(rel="stylesheet" href="/stylesheets/main.css")
block content
h1(class='editedTask') Edit Your Task
form(action=`/tasks/${task.id}/edit/` method='post')
label(for="name") Name
input(type="text" value=task.name id="name")
label(for="description") Description
input(type="text" value=task.description id="description")
input(type="submit" value="submit")
a(href='/tasks' class='cancelEdit') Back to Tasks