Skip to content
Snippets Groups Projects
Commit 4c2b9602 authored by Marek Cech's avatar Marek Cech
Browse files

Fixed links in JSPs.

parent 3f35a24c
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@
<tr>
<td><c:out value="${item.getEntityId()}"/></td>
<td><c:out value="${item.getName()}"/></td>
<td><a href="/naKup/${item.getName()}/edit" class="btn btn-primary">Edit</a></td>
<td><a href="<c:url value="/${item.getName()}/edit" />" class="btn btn-primary">Edit</a></td>
</tr>
</c:forEach>
</tbody>
......
......@@ -6,26 +6,26 @@
<jsp:body>
<h3><fmt:message key="category.title"/></h3>
<div class="panel-body row">
<h3><fmt:message key="category.title"/></h3>
<div class="panel-body row">
<div class="col-xs-12 col-sm-6 col-md-8">
<form class="form-horizontal" role="form" id="command" action="${pageContext.request.contextPath}/${category.getName()}/edit" method="POST">
<div class="form-group">
<label for="inputFirstname" class="col-lg-2 control-label"><fmt:message key="category.name" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<form class="form-horizontal" role="form" id="command" action="/naKup/${category.getName()}/edit" method="POST">
<div class="form-group">
<label for="inputFirstname" class="col-lg-2 control-label"><fmt:message key="category.name" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputFirstname" name="name" value="${category.getName()}">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-xs-12 col-sm-6 col-md-8">
<button type="submit" class="btn btn-primary" value="Submit"><fmt:message key="submit" /></button>
<a href="/naKup/categories" class="btn btn-default"><fmt:message key="cancel" /></a>
</div>
</div>
</form>
<input type="text" class="form-control" id="inputFirstname" name="name" value="${category.getName()}">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-xs-12 col-sm-6 col-md-8">
<button type="submit" class="btn btn-primary" value="Submit"><fmt:message key="submit" /></button>
<a href="${pageContext.request.contextPath}/categories" class="btn btn-default"><fmt:message key="cancel" /></a>
</div>
</div>
</form>
</div>
</div>
</jsp:body>
</t:content>>
\ No newline at end of file
......@@ -7,11 +7,11 @@
<c:if test="${user.login == principal}">
<div class="list-group col-xs-4 menu-left">
<a href="/naKup/profile/${user.entityId}/edit" class="list-group-item"><fmt:message key="profile.edit.profile"/></a>
<a href="/naKup/profile/${user.entityId}/products" class="list-group-item"><fmt:message key="profile.edit.products"/></a>
<a href="/naKup/profile/${user.entityId}/orders" class="list-group-item"><fmt:message key="profile.edit.orders"/></a>
<a href="<c:url value="/profile/${user.entityId}/edit" />" class="list-group-item"><fmt:message key="profile.edit.profile"/></a>
<a href="<c:url value="/profile/${user.entityId}/products" />" class="list-group-item"><fmt:message key="profile.edit.products"/></a>
<a href="<c:url value="/profile/${user.entityId}/orders" />" class="list-group-item"><fmt:message key="profile.edit.orders"/></a>
<sec:authorize ifAllGranted="Admin">
<a href="/naKup/categories" class="list-group-item"><fmt:message key="profile.edit.categories"/></a>
<a href="<c:url value="/categories" />" class="list-group-item"><fmt:message key="profile.edit.categories"/></a>
</sec:authorize>
</div>
</c:if>
......
......@@ -8,58 +8,58 @@
<jsp:body>
<h3><fmt:message key="profile.title"/></h3>
<div class="panel-body row">
<jsp:include page="/WEB-INF/jsp/includes/profileMenu.jsp" />
<h3><fmt:message key="profile.title"/></h3>
<div class="panel-body row">
<jsp:include page="/WEB-INF/jsp/includes/profileMenu.jsp" />
<div class="col-xs-12 col-sm-6 col-md-8">
<form class="form-horizontal" role="form" id="command" action="${pageContext.request.contextPath}/profile/${user.entityId}/edit" method="POST">
<div class="form-group">
<label for="inputFirstname" class="col-lg-2 control-label"><fmt:message key="register.firstname" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputFirstname" name="firstName" value="${user.firstName}">
</div>
</div>
<div class="form-group">
<label for="inputLastname" class="col-lg-2 control-label"><fmt:message key="register.lastname" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputLastname" name="lastName" value="${user.lastName}">
</div>
</div>
<div class="form-group">
<label for="inputStreet" class="col-lg-2 control-label"><fmt:message key="register.street" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputStreet" name="street" value="${user.street}">
</div>
</div>
<div class="form-group">
<label for="inputCity" class="col-lg-2 control-label"><fmt:message key="register.city" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputCity" name="city" value="${user.city}">
</div>
</div>
<div class="form-group">
<label for="inputCode" class="col-lg-2 control-label"><fmt:message key="register.zipcode" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputCode" name="psc" value="${user.zip}">
</div>
</div>
<div class="form-group">
<label for="inputDescription" class="col-lg-2 control-label"><fmt:message key="register.desctiption.field" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<form class="form-horizontal" role="form" id="command" action="/naKup/profile/${user.entityId}/edit" method="POST">
<div class="form-group">
<label for="inputFirstname" class="col-lg-2 control-label"><fmt:message key="register.firstname" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputFirstname" name="firstName" value="${user.firstName}">
</div>
</div>
<div class="form-group">
<label for="inputLastname" class="col-lg-2 control-label"><fmt:message key="register.lastname" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputLastname" name="lastName" value="${user.lastName}">
</div>
</div>
<div class="form-group">
<label for="inputStreet" class="col-lg-2 control-label"><fmt:message key="register.street" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputStreet" name="street" value="${user.street}">
</div>
</div>
<div class="form-group">
<label for="inputCity" class="col-lg-2 control-label"><fmt:message key="register.city" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputCity" name="city" value="${user.city}">
</div>
</div>
<div class="form-group">
<label for="inputCode" class="col-lg-2 control-label"><fmt:message key="register.zipcode" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<input type="text" class="form-control" id="inputCode" name="psc" value="${user.zip}">
</div>
</div>
<div class="form-group">
<label for="inputDescription" class="col-lg-2 control-label"><fmt:message key="register.desctiption.field" /></label>
<div class="col-xs-12 col-sm-6 col-md-8">
<textarea class="form-control" id="inputDescription" rows="3" name="popis">${user.description}</textarea>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-xs-12 col-sm-6 col-md-8">
<button type="submit" class="btn btn-primary" value="Submit"><fmt:message key="submit" /></button>
<a href="/naKup/profile/${user.entityId}" class="btn btn-default"><fmt:message key="cancel" /></a>
</div>
</div>
</form>
<textarea class="form-control" id="inputDescription" rows="3" name="popis">${user.description}</textarea>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-xs-12 col-sm-6 col-md-8">
<button type="submit" class="btn btn-primary" value="Submit"><fmt:message key="submit" /></button>
<a href="${pageContext.request.contextPath}/profile/${user.entityId}" class="btn btn-default"><fmt:message key="cancel" /></a>
</div>
</div>
</form>
</div>
</div>
</jsp:body>
</t:content>
......@@ -9,7 +9,7 @@
<jsp:body>
<div class="container">
<form class="form-horizontal" role="form" id="command" action="/naKup/addUser" method="POST">
<form class="form-horizontal" role="form" id="command" action="<c:url value="/addUser" />" method="POST">
<div class="page-header">
<h1><fmt:message key="register" /></h1>
......
var shown = false;
var baseUrl = "http://localhost:8080/naKup/";
//var baseUrl = "http://nakup.herokuapp.com/";
$( window ).load(function() {
$("#cart-noajax-button").css({"display" : "none"});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment