|
31 | 31 | <th class="task_col task_col_title" th:text="#{tasks.col.title}"> |
32 | 32 | Title |
33 | 33 | </th> |
34 | | - <th class="task_col task_col_due_date" |
35 | | - th:if="${myTaskState eq 'SCHEDULED' or myTaskState eq 'TODAY' or myTaskState eq 'PROJECT'}" |
36 | | - th:text="#{tasks.col.dueDate}"> |
37 | | - Due Date |
38 | | - </th> |
| 34 | + <th class="task_col task_col_energy_and_time" th:utext="#{tasks.col.energyandtime}"> </th> |
39 | 35 | <th class="task_col task_col_taskstate" |
40 | 36 | th:if="${myTaskState eq 'FOCUS' or myTaskState eq 'ALL' or myTaskState eq 'PROJECT'}" |
41 | 37 | th:text="#{tasks.col.taskState}"> |
42 | 38 | Task State |
43 | 39 | </th> |
| 40 | + <th class="task_col task_col_due_date" |
| 41 | + th:text="#{tasks.col.dueDate}"> |
| 42 | + Due Date |
| 43 | + </th> |
44 | 44 | <th class="task_col task_col_project" |
45 | 45 | th:if="${myTaskState ne 'PROJECT'}" th:text="#{tasks.col.project}"> |
46 | 46 | Project |
47 | 47 | </th> |
48 | | - <th class="task_col task_col_energy_and_time" th:utext="#{tasks.col.energyandtime}"> </th> |
49 | | - <th class="task_col task_col_context" |
50 | | - th:if="${myTaskState eq 'ALL'}"> |
51 | | - <span th:text="#{tasks.col.context}">Context</span> |
52 | | - </th> |
53 | 48 | </tr> |
54 | 49 | </thead> |
55 | 50 | <tbody> |
|
92 | 87 | <td th:id="'task_' + ${task.id} + '_col_title'" class="task_col task_col_title"> |
93 | 88 | <div th:replace="this :: tw-tasks-modal(task=${task},myUrlPath=${myUrlPath})"></div> |
94 | 89 | </td> |
95 | | - <td th:id="'task_' + ${task.id} + '_col_due_date'" class="task_col task_col_due_date" |
96 | | - th:if="${myTaskState eq 'SCHEDULED' or myTaskState eq 'TODAY' or myTaskState eq 'PROJECT'}"> |
97 | | - <span th:if="${#locale.language eq 'de'}" |
98 | | - th:id="'task_' + ${task.id} + '_col_due_date'" |
99 | | - draggable="true" ondragstart="dragTask(event)" |
100 | | - th:alt-title="#{task.col.twtooltip.duedate}" |
101 | | - class="task_col_content task_col_content_duedate twtooltip" |
102 | | - th:text="${#calendars.format(task.dueDate,'dd.MM.yyyy')}"> |
103 | | - </span> |
104 | | - <span th:if="${#locale.language eq 'en'}" |
105 | | - th:id="'task_' + ${task.id} + '_col_due_date'" |
106 | | - draggable="true" ondragstart="dragTask(event)" |
107 | | - th:alt-title="#{task.col.twtooltip.duedate}" |
108 | | - class="task_col_content task_col_content_duedate twtooltip" |
109 | | - th:text="${#calendars.format(task.dueDate,'MM/dd/yyyy')}"> |
110 | | - </span> |
| 90 | + <td th:id="'task_' + ${task.id} + '_col_energy_and_time'" class="task_col task_col_energy_and_time"> |
| 91 | + <span class="badge bg-dark task_col_content task_col_content_taskenergy twtooltip" |
| 92 | + th:if="${task.taskEnergy.value ne 'NONE'}" |
| 93 | + th:id="'task_' + ${task.id} + '_col_energy_and_time_badge'" |
| 94 | + draggable="true" ondragstart="dragTask(event)" |
| 95 | + th:text="${#messages.msgOrNull(task.taskEnergy.code)}" |
| 96 | + th:alt-title="#{task.col.twtooltip.badge.taskEnergy}"> |
| 97 | + </span> |
| 98 | + <span class="badge bg-dark task_col_content task_col_content_tasktime twtooltip" |
| 99 | + th:if="${task.taskTime.value ne 'NONE'}" |
| 100 | + th:id="'task_' + ${task.id} + '_col_energy_and_time_badge'" |
| 101 | + draggable="true" ondragstart="dragTask(event)" |
| 102 | + th:text="${#messages.msgOrNull(task.taskTime.code)}" |
| 103 | + th:alt-title="#{task.col.twtooltip.badge.taskTime}"> |
| 104 | + </span> |
111 | 105 | </td> |
112 | 106 | <td th:id="'task_' + ${task.id} + '_col_taskstate'" class="task_col task_col_taskstate" |
113 | 107 | th:if="${myTaskState eq 'FOCUS' or myTaskState eq 'ALL' or myTaskState eq 'PROJECT'}"> |
|
118 | 112 | <span th:utext="${#messages.msgOrNull(task.taskState.getMsgCode())}">Inbox</span> |
119 | 113 | </a> |
120 | 114 | </td> |
| 115 | + <td th:id="'task_' + ${task.id} + '_col_due_date'" class="task_col task_col_due_date"> |
| 116 | + <span class="task_col_content task_col_content_duedate twtooltip" |
| 117 | + draggable="true" ondragstart="dragTask(event)" |
| 118 | + th:if="${#locale.language eq 'de'}" |
| 119 | + th:id="'task_' + ${task.id} + '_col_due_date'" |
| 120 | + th:alt-title="#{task.col.twtooltip.duedate}" |
| 121 | + th:text="${#calendars.format(task.dueDate,'dd.MM.yyyy')}"> |
| 122 | + </span> |
| 123 | + <span class="task_col_content task_col_content_duedate twtooltip" |
| 124 | + draggable="true" ondragstart="dragTask(event)" |
| 125 | + th:if="${#locale.language eq 'en'}" |
| 126 | + th:id="'task_' + ${task.id} + '_col_due_date'" |
| 127 | + th:alt-title="#{task.col.twtooltip.duedate}" |
| 128 | + th:text="${#calendars.format(task.dueDate,'MM/dd/yyyy')}"> |
| 129 | + </span> |
| 130 | + </td> |
121 | 131 | <td th:id="'task_' + ${task.id} + '_col_project'" class="task_col task_col_project" |
122 | 132 | th:if="${myTaskState ne 'PROJECT'}"> |
123 | 133 | <a th:href="@{/project/{id}(id=${task.project.id})}" |
|
130 | 140 | <span th:text="${task.project.name}"></span> |
131 | 141 | </a> |
132 | 142 | </td> |
133 | | - <td th:id="'task_' + ${task.id} + '_col_energy_and_time'" class="task_col task_col_energy_and_time"> |
134 | | - <span class="badge bg-dark task_col_content task_col_content_taskenergy twtooltip" |
135 | | - th:if="${task.taskEnergy.value ne 'NONE'}" |
136 | | - th:id="'task_' + ${task.id} + '_col_energy_and_time_badge'" |
137 | | - draggable="true" ondragstart="dragTask(event)" |
138 | | - th:text="${#messages.msgOrNull(task.taskEnergy.code)}" |
139 | | - th:alt-title="#{task.col.twtooltip.badge.taskEnergy}"> |
140 | | - </span> |
141 | | - <span class="badge bg-dark task_col_content task_col_content_tasktime twtooltip" |
142 | | - th:if="${task.taskTime.value ne 'NONE'}" |
143 | | - th:id="'task_' + ${task.id} + '_col_energy_and_time_badge'" |
144 | | - draggable="true" ondragstart="dragTask(event)" |
145 | | - th:text="${#messages.msgOrNull(task.taskTime.code)}" |
146 | | - th:alt-title="#{task.col.twtooltip.badge.taskTime}"> |
147 | | - </span> |
148 | | - </td> |
149 | | - <td th:id="'task_' + ${task.id} + '_col_context'" class="task_col task_col_context" |
150 | | - th:if="${myTaskState eq 'ALL'}"> |
151 | | - <span th:if="${#locale.language eq 'de'}" |
152 | | - th:id="'task_' + ${task.id} + '_col_context_txt'" |
153 | | - draggable="true" ondragstart="dragTask(event)" |
154 | | - class="task_col_content task_col_content_context twtooltip" |
155 | | - th:alt-title="#{task.col.twtooltip.context}" |
156 | | - th:text="${task.context.nameDe}">task.context.nameDe</span> |
157 | | - <span th:if="${#locale.language ne 'de'}" |
158 | | - th:id="'task_' + ${task.id} + '_col_context_txt'" |
159 | | - draggable="true" ondragstart="dragTask(event)" |
160 | | - class="task_col_content task_col_content_context twtooltip" |
161 | | - th:alt-title="#{task.col.twtooltip.context}" |
162 | | - th:text="${task.context.nameEn}">task.context.nameEn</span> |
163 | | - </td> |
164 | 143 | </tr> |
165 | 144 | </tbody> |
166 | 145 | </table> |
@@ -241,7 +220,7 @@ <h5 class="modal-title" id="taskModalScrollableTitle"> |
241 | 220 | <span th:utext="${#messages.msgOrNull(task.taskState.getMsgCode())}">Inbox</span> |
242 | 221 | </a> |
243 | 222 | </div> |
244 | | - <div th:if="${myTaskState eq 'SCHEDULED' or myTaskState eq 'TODAY' or myTaskState eq 'PROJECT'}"> |
| 223 | + <div> |
245 | 224 | <b th:utext="#{tasks.focus.dueDate}">Due Date</b> |
246 | 225 | <span th:if="${#locale.language eq 'de'}" |
247 | 226 | th:text="${#calendars.format(task.dueDate,'dd.MM.yyyy')}"> |
|
0 commit comments