File tree Expand file tree Collapse file tree
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 ="http://www.thymeleaf.org/ ">
33< head th:replace ="fragments :: head "> </ head >
4- < body >
4+ < body class =" container " >
55
66< h1 > Create Event</ h1 >
77
88< nav th:replace ="fragments :: navigation "> </ nav >
99
1010< form method ="post ">
11- < input type ="text " name ="eventName ">
12- < input type ="submit " value ="Create Event ">
11+ < div class ="form-group ">
12+ < label > Name
13+ < input type ="text " name ="eventName " class ="form-control ">
14+ </ label >
15+ </ div >
16+ < div class ="form-group ">
17+ < input type ="submit " value ="Create Event " class ="btn btn-success ">
18+ </ div >
1319</ form >
1420
1521</ body >
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html lang ="en " xmlns:th ="http://www.thymeleaf.org/ ">
33< head th:replace ="fragments :: head "> </ head >
4- < body >
4+ < body class =" container " >
55
66< h1 > All Events</ h1 >
77
@@ -10,11 +10,16 @@ <h1>All Events</h1>
1010< p th:unless ="${events} and ${events.size()} "> No Events!</ p >
1111
1212
13- < ul >
14- < th:block th:each ="event : ${events} ">
15- < li th:text ="${event} "> </ li >
16- </ th:block >
17- </ ul >
13+ < table class ="table table-striped ">
14+ < thead >
15+ < tr >
16+ < th > Name</ th >
17+ </ tr >
18+ </ thead >
19+ < tr th:each ="event : ${events} ">
20+ < td th:text ="${event} "> </ td >
21+ </ tr >
22+ </ table >
1823
1924</ body >
2025</ 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+ < script src ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.min.js "
> </ script > 8+ < link href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min. css"
rel ="
stylesheet "
> 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 11<!DOCTYPE html>
22< html lang ="en " xmlns:th ="http://www.thymeleaf.org/ ">
33< head th:replace ="fragments :: head "> </ head >
4- < body >
4+ < body class =" container " >
55
66< h1 > Coding Events</ h1 >
77
You can’t perform that action at this time.
0 commit comments