Skip to content

Commit b36cf79

Browse files
committed
work
1 parent cd66aa3 commit b36cf79

File tree

4 files changed

+30
-25
lines changed

4 files changed

+30
-25
lines changed

src/main/resources/templates/layout/breadcrumb.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
55
xmlns:sd="http://www.thymeleaf.org/spring-data">
66

7-
<section th:fragment="breadcrumb(breadcrumb)">
8-
<div class="container" sec:authorize="isAuthenticated()" th:if="${breadcrumb != null}">
7+
<div th:fragment="breadcrumb(breadcrumb)">
8+
<section class="container" sec:authorize="isAuthenticated()" th:if="${breadcrumb != null}">
9+
910
<nav aria-label="breadcrumb" class="m-1 mb-1 p-2">
1011
<ol class="breadcrumb">
1112
<li th:each="bc,iterStat : ${breadcrumb.getBreadcrumb()}"
@@ -18,7 +19,7 @@
1819
</li>
1920
</ol>
2021
</nav>
21-
</div>
22-
</section>
22+
</section>
23+
</div>
2324

2425
</html>

src/main/resources/templates/layout/page.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@
3333
</div>
3434
</header>
3535

36+
<!-- Breadcrumb -->
37+
<div th:replace="layout/breadcrumb :: breadcrumb(breadcrumb=${breadcrumb})">
38+
</div>
39+
40+
<!-- taskstates -->
3641
<section th:replace="layout/taskstates :: navigation-taskstates(rootProjects=${rootProjects},thisProject=${thisProject})">
3742
</section>
3843

39-
<!-- Breadcrumb -->
40-
<section th:replace="layout/breadcrumb :: breadcrumb(breadcrumb=${breadcrumb})">
41-
</section>
4244

4345
<!-- Menu on Left Column and Document Window on the Right Column -->
4446
<section id="tw-main-section">

src/main/resources/templates/project/root/show.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
<div id="tw-content-title">
1414
<h1>
1515
<i class="fas fa-folder-open"></i>
16-
<span th:text="#{project.show.h1}">Project</span>
16+
<span th:text="#{project.show.h1}" class="mx-1">Project</span>
1717
</h1>
18-
<div id="tw-content-title-actionbuttons" class="row">
19-
<div class="col-md-3 mb-3">
20-
<a class="btn btn-block btn-primary" role="button" th:href="@{/project/root/task/add}">
21-
<i class="fas fa-plus-square"></i>
22-
<span th:text="#{project.show.addTask}">Add a Task</span>
23-
</a>
24-
</div>
25-
<div class="col-md-3 mb-3">
26-
<a class="btn btn-block btn-secondary" role="button" th:href="@{/project/root/project/add}">
27-
<i class="fas fa-plus-square"></i>
28-
<span th:text="#{layout.page.addProject}">Add a Project</span>
29-
</a>
30-
</div>
18+
<div id="tw-content-title-actionbuttons" class="d-grid col-2 mx-auto d-md-block">
19+
<div class="col-md-3 mb-3">
20+
<a class="btn btn-block btn-primary" role="button" th:href="@{/project/root/task/add}">
21+
<i class="fas fa-plus-square"></i>
22+
<span th:text="#{project.show.addTask}">Add a Task</span>
23+
</a>
24+
</div>
25+
<div class="col-md-3 mb-3">
26+
<a class="btn btn-block btn-secondary" role="button" th:href="@{/project/root/project/add}">
27+
<i class="fas fa-plus-square"></i>
28+
<span th:text="#{layout.page.addProject}">Add a Project</span>
29+
</a>
30+
</div>
3131
</div>
3232
</div>
3333
</div>

src/main/resources/templates/user/login/loginForm.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ <h2><span th:utext="#{user.loginForm.h2}">Your Todo-List for Getting Things Done
2525
<span th:text="#{user.loginForm.loginError}">Your login attempt was not successful, try again.</span>
2626
</div>
2727
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
28-
<div class="m-2">
29-
<label for="j_username" th:text="#{user.loginForm.email.label}" class="form-label">Email</label>
28+
<label for="j_username" th:text="#{user.loginForm.email.label}" class="form-label">Email</label>
29+
<div class="m-2 input-group">
30+
<span class="input-group-text"><i class="fa-solid fa-user"></i></span>
3031
<input id="j_username" type="email" class="form-control" name="j_username"
3132
th:placeholder="#{user.loginForm.email.placeholder}"/>
3233
</div>
33-
<div class="m-2">
34-
<label for="j_password" th:text="#{user.loginForm.password.label}" class="form-label">Password</label>
34+
<label for="j_password" th:text="#{user.loginForm.password.label}" class="form-label">Password</label>
35+
<div class="m-2 input-group">
36+
<span class="input-group-text"><i class="fa-solid fa-lock"></i></span>
3537
<input id="j_password" type="password" class="form-control" name="j_password"
3638
th:placeholder="#{user.loginForm.password.placeholder}"/>
3739
</div>

0 commit comments

Comments
 (0)