File tree Expand file tree Collapse file tree
kodingevents/src/main/resources/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html lang ="en " xmlns:th ="https://www.thymeleaf.org/ ">
33< head th:replace ="fragments :: head "> </ head >
4- < body >
4+ < body class ="container ">
5+
56< h1 > Create Event</ h1 >
67< nav th:replace ="fragments :: navigation "> </ nav >
78
89< form method ="post " action ="/events/create ">
9- < input type ="text " name ="eventName ">
10- < input type ="submit " value ="Create Event ">
10+ < div class ="form-group ">
11+ < label > Name
12+ < input type ="text " name ="eventName " class ="form-control ">
13+ </ label >
14+ </ div >
15+ < div class ="form=group ">
16+ < input type ="submit " value ="Create Event " class ="btn btn-success ">
17+ </ div >
18+
1119</ form >
1220
1321</ body >
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html lang ="en " xmlns:th ="https://www.thymeleaf.org/ ">
33< head th:replace ="fragments :: head "> </ head >
4- < body >
4+ < body class ="container ">
5+
56
67 < h1 > All Events</ h1 >
78 < nav th:replace ="fragments :: navigation "> </ nav >
89
910 < p th:unless ="${events} and ${events.size()} "> No events</ p >
1011
11- < ul >
12- < th:block th:each ="event : ${events} ">
13- < li th:text ="${event} "> </ li >
14- </ th:block >
15- </ ul >
12+ < table class ="table table-striped ">
13+ < thead >
14+ < Tr >
15+ < th > Name</ th >
16+ </ Tr >
17+ </ thead >
18+ < tr th:each ="event : ${events} ">
19+ < td th:text ="${event} "> </ td >
20+ </ tr >
21+ </ table >
22+
23+
1624
1725</ body >
1826</ html >
Original file line number Diff line number Diff line change 44 < meta charset ="UTF-8 "/>
55 < title > Coding Events</ title >
66
7- < script th:src =" @{/script.js} " > </ script >
8- < link th:href =" @{/styles.css} " rel =" stylesheet " >
7+ < link rel =" stylesheet " href =" https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css " > 8+ < script src =" https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.min.js " > </ script > 99
1010</ head >
1111< body >
1212
1313< nav th:fragment ="navigation ">
14- < ul >
15- < li > < a href ="/events "> All Events</ a > </ li >
16- < li > < a href ="/events/create "> Create Event</ a > </ li >
14+ < ul class =" nav " >
15+ < li class =" nav-item " > < a class =" nav-link " href ="/events "> All Events</ a > </ li >
16+ < li class =" nav-item " > < a class =" nav-link " href ="/events/create "> Create Event</ a > </ li >
1717 </ ul >
1818</ nav >
1919
Original file line number Diff line number Diff line change 33
44< head th:replace ="fragments :: head "> </ head >
55
6- < body >
6+ < body class ="container ">
7+
78
89< h1 > Coding Events</ h1 >
910
You can’t perform that action at this time.
0 commit comments