1
- {@java.lang.Integer itemsLeft}
2
- {@java.lang.Boolean all}
3
- {@java.lang.Boolean active}
4
- {@java.lang.Boolean completed}
5
- {#include base}
6
- {#title}Quarkus/htmx • TodoMVC{/title}
7
- {#body}
8
- < header class ="header ">
9
- < h1 > todos</ h1 >
10
- < form action ="/todos " method ="POST " hx-target ="#todo-list " hx-swap ="beforeend ">
11
- < input class ="new-todo " name ="title " placeholder ="What needs to be done? " autofocus >
12
- </ form >
13
- </ header >
14
- < section class ="main ">
15
- < form action ="/todos/toggle-all " method ="POST " hx-post ="/todos/toggle-all " hx-select ="#todo-list " hx-target ="#todo-list " hx-swap ="outerHTML ">
16
- < button type ="submit " id ="toggle-all " class ="toggle-all "> </ button >
17
- < label for ="toggle-all "> Mark all as complete</ label >
18
- </ form >
19
- < ul class ="todo-list " id ="todo-list ">
20
- {#for todo in todos}
21
- {#include TodoResource/item.html todo=todo /}
22
- {/for}
23
- </ ul >
24
- </ section >
25
- < footer class ="footer ">
26
- < span class ="todo-count ">
27
- < strong > {itemsLeft}</ strong > {#if itemsLeft == 1}item{#else}items{/if} left
28
- </ span >
29
- < ul class ="filters ">
30
- < li >
31
- < a class ="{all ? 'selected' : ''} " href ="/todos "> All</ a >
32
- </ li >
33
- < li >
34
- < a class ="{active ? 'selected' : ''} " href ="/todos/active "> Active</ a >
35
- </ li >
36
- < li >
37
- < a class ="{completed ? 'selected' : ''} " href ="/todos/completed "> Completed</ a >
38
- </ li >
39
- </ ul >
40
- < form action ="/todos/clear-completed " method ="POST ">
41
- < button class ="clear-completed "> Clear completed</ button >
42
- </ form >
43
- </ footer >
44
- {/body}
45
- {/include}
1
+ {@java.lang.Integer itemsLeft} {@java.lang.Boolean all} {@java.lang.Boolean active} {@java.lang.Boolean completed}
2
+ {#include base} {#title}Quarkus/htmx • TodoMVC{/title} {#body}
3
+ < header class ="header ">
4
+ < h1 > todos</ h1 >
5
+ < form action ="/todos " method ="POST " hx-target ="#todo-list " hx-swap ="beforeend ">
6
+ < input class ="new-todo " name ="title " placeholder ="What needs to be done? " autofocus />
7
+ </ form >
8
+ </ header >
9
+ < section class ="main ">
10
+ < form
11
+ action ="/todos/toggle-all "
12
+ method ="POST "
13
+ hx-post ="/todos/toggle-all "
14
+ hx-select ="#todo-list "
15
+ hx-target ="#todo-list "
16
+ hx-swap ="outerHTML "
17
+ >
18
+ < button type ="submit " id ="toggle-all " class ="toggle-all "> </ button >
19
+ < label for ="toggle-all "> Mark all as complete</ label >
20
+ </ form >
21
+ < ul class ="todo-list " id ="todo-list ">
22
+ {#for todo in todos} {#include TodoResource/item.html todo=todo /} {/for}
23
+ </ ul >
24
+ </ section >
25
+ < footer class ="footer ">
26
+ < span class ="todo-count "> < strong > {itemsLeft}</ strong > {#if itemsLeft == 1}item{#else}items{/if} left </ span >
27
+ < ul class ="filters ">
28
+ < li >
29
+ < a class ="{all ? 'selected' : ''} " href ="/todos "> All</ a >
30
+ </ li >
31
+ < li >
32
+ < a class ="{active ? 'selected' : ''} " href ="/todos/active "> Active</ a >
33
+ </ li >
34
+ < li >
35
+ < a class ="{completed ? 'selected' : ''} " href ="/todos/completed "> Completed</ a >
36
+ </ li >
37
+ </ ul >
38
+ < form action ="/todos/clear-completed " method ="POST ">
39
+ < button class ="clear-completed "> Clear completed</ button >
40
+ </ form >
41
+ </ footer >
42
+ {/body} {/include}
0 commit comments