Skip to content

Commit 1ecb7a1

Browse files
committed
work
1 parent 0977160 commit 1ecb7a1

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/main/resources/templates/project/id/edit.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ <h1>
5454
th:text="${err}" class="alert alert-danger"></div>
5555
</div>
5656
</div>
57+
<div class="col">
58+
<a th:href="@{/project/{projectId}(projectId=${thisProject.id})}"
59+
class="btn btn-secondary btn-block" role="button">
60+
<i class="fas fa-angle-double-left"></i>
61+
<span th:utext="#{task.show.button.close}">cancel and back</span>
62+
</a>
63+
</div>
5764
<div class="form-group">
5865
<input type="hidden" th:field="*{id}" />
5966
<button id="saveEditedProject" type="submit" class="btn btn-primary">

src/main/resources/templates/project/id/project/add.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ <h1>
2121
<form id="formId" class="was-validated" method="post"
2222
th:action="@{/project/{id}/project/add(id=${thisProject.id})}" th:object="${project}">
2323
<div th:replace="layout/project :: tw-project-form(project=${project},contexts=${contexts})"></div>
24+
<div class="col">
25+
<a th:href="@{/project/{projectId}(projectId=${thisProject.id})}"
26+
class="btn btn-secondary btn-block" role="button">
27+
<i class="fas fa-angle-double-left"></i>
28+
<span th:utext="#{task.show.button.close}">cancel and back</span>
29+
</a>
30+
</div>
2431
<div class="form-row">
2532
<div class="col-md-12 mb-12">
2633
<button id="createNewProject" type="submit" class="btn btn-block btn-primary">

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ <h1>
2121
<form id="formId" class="was-validated" method="post"
2222
th:action="@{/project/root/project/add}" th:object="${project}">
2323
<div th:replace="layout/project :: tw-project-form(project=${project},contexts=${contexts})"></div>
24+
<div class="col">
25+
<a th:href="@{/project/root}"
26+
class="btn btn-secondary btn-block" role="button">
27+
<i class="fas fa-angle-double-left"></i>
28+
<span th:utext="#{task.show.button.close}">cancel and back</span>
29+
</a>
30+
</div>
2431
<div class="form-row">
2532
<div class="col-md-12 mb-12">
2633
<button id="createNewProject" type="submit" class="btn btn-block btn-primary">

0 commit comments

Comments
 (0)