Skip to content

Commit 4db3a38

Browse files
committed
work in progres
1 parent 1acff32 commit 4db3a38

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>
1919

2020
<div th:fragment="mytwcontent">
2121
<div>
22-
<form id="formId" th:action="@{/project/{id}/add/project(id=${thisProject.id})}" th:object="${project}" method="post">
22+
<form id="formId" th:action="@{/project/{id}/project/add(id=${thisProject.id})}" th:object="${project}" method="post">
2323
<div class="form-group">
2424
<label th:for="${#ids.next('name')}" class="control-label">Name</label>
2525
<input type="text" th:field="*{name}" class="form-control" />

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,27 @@ <h1>
1919
</small>
2020
</h1>
2121
<div id="tw-content-title-actionbuttons">
22-
<a class="btn btn-sm btn-primary" data-toggle="collapse" href="#collapseDescription" role="button" aria-expanded="false" aria-controls="collapseExample">
22+
<a class="btn btn-sm btn-primary" data-toggle="collapse"
23+
href="#collapseDescription" role="button" aria-expanded="false" aria-controls="collapseExample">
2324
<div th:text="#{project.show.description}">Project Description</div>
2425
</a>
25-
<a class="btn btn-sm btn-secondary" role="button" th:href="@{/project/{thisProjectId}/edit(thisProjectId=${thisProject.id})}" href="#">
26+
<a class="btn btn-sm btn-secondary" role="button" href="#"
27+
th:href="@{/project/{thisProjectId}/edit(thisProjectId=${thisProject.id})}">
2628
<i class="fas fa-edit"></i>
2729
<span th:text="#{project.show.edit}">Edit Project</span>
2830
</a>
29-
<a class="btn btn-sm btn-secondary" role="button" th:href="@{/project/{thisProjectId}/delete(thisProjectId=${thisProject.id})}" href="#">
31+
<a class="btn btn-sm btn-secondary" role="button" href="#"
32+
th:href="@{/project/{thisProjectId}/delete(thisProjectId=${thisProject.id})}">
3033
<i class="fas fa-trash-alt"></i>
3134
<span th:text="#{project.show.delete}">Delete Project</span>
32-
</a>
33-
<a class="btn btn-sm btn-secondary" role="button" th:href="@{/project/{thisProjectId}/add/project(thisProjectId=${thisProject.id})}">
35+
</a>s
36+
<a class="btn btn-sm btn-secondary" role="button" href="#"
37+
th:href="@{/project/{thisProjectId}/project/add(thisProjectId=${thisProject.id})}">
3438
<i class="fas fa-plus-square"></i>
3539
<span th:text="#{layout.page.addProject}">Add a Project</span>
3640
</a>
37-
<a class="btn btn-sm btn-secondary" role="button" th:href="@{/project/{thisProjectId}/add/task(thisProjectId=${thisProject.id})}" href="#">
41+
<a class="btn btn-sm btn-secondary" role="button" href="#"
42+
th:href="@{/project/{thisProjectId}/task/add(thisProjectId=${thisProject.id})}">
3843
<i class="fas fa-plus-square"></i>
3944
<span th:text="#{project.show.addTask}">Add a Task</span>
4045
</a>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>
1818
</div>
1919

2020
<div th:fragment="mytwcontent">
21-
<form id="formId" th:action="@{/project/{projectId}/add/task(projectId=${thisProject.id})}" th:object="${task}" method="post">
21+
<form id="formId" th:action="@{/project/{projectId}/task/add(projectId=${thisProject.id})}" th:object="${task}" method="post">
2222
<input type="hidden" th:field="*{taskState}" />
2323
<input type="hidden" th:field="*{context.id}" />
2424
<input type="hidden" th:field="*{rowCreatedAt.time}" />

0 commit comments

Comments
 (0)