Skip to content

Commit

Permalink
Minor changes user list page
Browse files Browse the repository at this point in the history
  • Loading branch information
kralmajster committed Jan 14, 2017
1 parent fcba9f2 commit 2f1b146
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions web/src/main/webapp/WEB-INF/jsp/user/list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<div class="row">
<br>
<div>
<a href="${pageContext.request.contextPath}/machine/new"
class="btn btn-success">New machine</a>
<a href="${pageContext.request.contextPath}/user/new"
class="btn btn-success">New user</a>
</div>
<br>
<table class=" table table-striped">
Expand All @@ -27,9 +27,9 @@
<td><c:out value="${user.role}"/> [CZK]</td>
<td><c:out value="${user.joinedDate}"/> </td>
<td>
<a href="${pageContext.request.contextPath}/machine/edit/${m.id}"
<a href="${pageContext.request.contextPath}/user/edit/${m.id}"
class="btn btn-default">Edit</a>
<a href="${pageContext.request.contextPath}/machine/delete/${m.id}"
<a href="${pageContext.request.contextPath}/user/delete/${m.id}"
class="btn btn-danger">Delete</a>
</td>
</tr>
Expand All @@ -41,7 +41,7 @@
<jsp:attribute name="script">
<script>
$(function () {
$('#list-machines').on('change', function () {
$('#list-users').on('change', function () {
var url = $(this).val();
if (url) {
window.location = url;
Expand Down
2 changes: 1 addition & 1 deletion web/src/main/webapp/WEB-INF/tags/template.tag
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</sec:authorize>
<li><a href="${pageContext.request.contextPath}/rental/list">Rentals</a></li>
<sec:authorize access="hasAuthority('ADMIN') or hasAuthority('EMPLOYEE')">
<li><a href="${pageContext.request.contextPath}/user/list">Users</a></li>
<li><a href="${pageContext.request.contextPath}/user/">Users</a></li>
</sec:authorize>
</ul>
<ul class="nav navbar-nav navbar-right">
Expand Down

0 comments on commit 2f1b146

Please sign in to comment.