Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Samuel Dudík
PA165 Winery Management System
Commits
adbfe131
Commit
adbfe131
authored
May 24, 2022
by
Ondřej Pavlica
Browse files
Merge branch 'feature/balga/userFix' into 'main'
self editing not allowed See merge request
!49
parents
f0eafff3
cd691553
Pipeline
#142384
passed with stages
in 2 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
winery/webapp/src/main/resources/templates/user/index.html
View file @
adbfe131
...
@@ -29,7 +29,10 @@
...
@@ -29,7 +29,10 @@
<td
th:text=
"${user.lastName}"
>
Last name
</td>
<td
th:text=
"${user.lastName}"
>
Last name
</td>
<td
th:text=
"${user.email}"
>
Email
</td>
<td
th:text=
"${user.email}"
>
Email
</td>
<td
th:text=
"${user.roles}"
>
Roles
</td>
<td
th:text=
"${user.roles}"
>
Roles
</td>
<td>
<a
th:href=
"@{/user/edit(id=${user.id})}"
>
Edit
</a>
|
<a
href=
"#"
th:attr=
"data-id=${user.id}"
onclick=
"deleteAndReload(this)"
>
Delete
</a></td>
<td
th:if=
'${model.currentUser} != ${user}'
>
<a
th:href=
"@{/user/edit(id=${user.id})}"
>
Edit
</a>
|
<a
href=
"#"
th:attr=
"data-id=${user.id}"
onclick=
"deleteAndReload(this)"
>
Delete
</a>
</td>
<td
th:if=
'${model.currentUser} == ${user}'
>
logged in
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment