|
5 | 5 | xmlns:sec="http://www.thymeleaf.org/extras/spring-security" |
6 | 6 | xmlns:sd="http://www.thymeleaf.org/spring-data"> |
7 | 7 | <head th:replace="layout/page :: tw-page-head(headtitle=~{::title},links=~{},refreshMessages=false)"> |
8 | | - <title th:text="'SimpleWorklist | ' + #{searchRequest.resultlist.h1}">Title</title> |
| 8 | + <title th:text="'SimpleWorklist | ' + #{searchRequest.resultlist.h1}">Title</title> |
9 | 9 | </head> |
10 | 10 | <body th:replace="layout/page :: tw-page-body(twcontent=~{::mytwcontent},twtitle=~{::mytwtitle},scripts=~{})"> |
11 | 11 |
|
12 | 12 | <div th:fragment="mytwtitle"> |
13 | | - <h1> |
14 | | - <span th:utext="#{searchRequest.resultlist.h1}">Search Result for searchterm</span> |
15 | | - <i>${searchResult.searchterm}</i> |
16 | | - </h1> |
| 13 | + <h1> |
| 14 | + <span th:utext="#{searchRequest.resultlist.h1}">Search Result for searchterm</span> |
| 15 | + <i>${searchResult.searchterm}</i> |
| 16 | + </h1> |
17 | 17 | </div> |
18 | 18 |
|
19 | 19 | <div th:fragment="mytwcontent"> |
20 | | - <h2 th:if="${searchResult.taskList != null}"> |
21 | | - <span th:utext="#{searchRequest.resultlist.h2.noTasks}">No Tasks found</span> |
| 20 | + <h2 th:if="${searchResult.taskList != null}"> |
| 21 | + <span th:utext="#{searchRequest.resultlist.h2.noTasks}">No Tasks found</span> |
| 22 | + </h2> |
| 23 | + <div th:if="${searchResult.taskList != null}"> |
| 24 | + <h2> |
| 25 | + <span th:utext="#{searchRequest.resultlist.h2.tasks}">Tasks</span> |
22 | 26 | </h2> |
23 | | - <div th:if="${searchResult.taskList != null}"> |
24 | | - <h2> |
25 | | - <span th:utext="#{searchRequest.resultlist.h2.tasks}">Tasks</span> |
26 | | - </h2> |
27 | | - <div th:replace="layout/tasks :: tw-tasks-table(dataList=${searchResult.taskList},myTaskState='ALL')"> |
28 | | - </div> |
| 27 | + <div th:replace="layout/tasks :: tw-tasks-table(dataList=${searchResult.taskList},myTaskState='ALL')"> |
29 | 28 | </div> |
30 | | - <h2 th:if="${searchResult.projectList == null}"> |
31 | | - <span th:utext="#{searchRequest.resultlist.projects.h2.noProjects}">No Projects found</span> |
| 29 | + </div> |
| 30 | + <h2 th:if="${searchResult.projectList == null}"> |
| 31 | + <span th:utext="#{searchRequest.resultlist.projects.h2.noProjects}">No Projects found</span> |
| 32 | + </h2> |
| 33 | + <div th:if="${searchResult.projectList != null}"> |
| 34 | + <h2> |
| 35 | + <span th:utext="#{searchRequest.resultlist.projects.h2.projects}">Projects</span> |
32 | 36 | </h2> |
33 | | - <div th:if="${searchResult.projectList != null}"> |
34 | | - <h2> |
35 | | - <span th:utext="#{searchRequest.resultlist.projects.h2.projects}">Projects</span> |
36 | | - </h2> |
37 | | - <table class="table table-striped table-hover"> |
38 | | - <tr> |
39 | | - <th><span th:utext="#{searchRequest.resultlist.projects.name}">Name</span></th> |
40 | | - <th><span th:utext="#{searchRequest.resultlist.projects.description}">Description</span></th> |
41 | | - </tr> |
42 | | - <tr th:each="cat : ${searchResult.projectList}"> |
43 | | - <td> |
44 | | - <a th:href="@{/project/{id}(id=${cat.id})}" th:id="'searchResultProject_' + ${cat.id}"> |
45 | | - <span th:text="${cat.name}">name</span> |
46 | | - </a> |
47 | | - </td> |
48 | | - <td> |
49 | | - <span th:text="${cat.description}">description</span> |
50 | | - </td> |
51 | | - </tr> |
52 | | - </table> |
53 | | - </div> |
| 37 | + <table class="table table-striped table-hover"> |
| 38 | + <tr> |
| 39 | + <th><span th:utext="#{searchRequest.resultlist.projects.name}">Name</span></th> |
| 40 | + <th><span th:utext="#{searchRequest.resultlist.projects.description}">Description</span></th> |
| 41 | + </tr> |
| 42 | + <tr th:each="cat : ${searchResult.projectList}"> |
| 43 | + <td> |
| 44 | + <a th:href="@{/project/{id}(id=${cat.id})}" th:id="'searchResultProject_' + ${cat.id}"> |
| 45 | + <span th:text="${cat.name}">name</span> |
| 46 | + </a> |
| 47 | + </td> |
| 48 | + <td> |
| 49 | + <span th:text="${cat.description}">description</span> |
| 50 | + </td> |
| 51 | + </tr> |
| 52 | + </table> |
| 53 | + </div> |
54 | 54 | </div> |
55 | 55 |
|
56 | | - |
57 | 56 | </body> |
58 | 57 | </html> |
0 commit comments