Commit 6dd615b1 by Patryk Czarnik

Dodatkowe linki do edycji klienta

parent 73403791
......@@ -4,3 +4,6 @@ spring.datasource.password=abc123
spring.mvc.view.prefix=/WEB-INF/templates/
spring.mvc.view.suffix=.jsp
# server.port=9090
# server.servlet.context-path=/sklep
......@@ -19,6 +19,7 @@
<tr><th>Adres:</th><td>${customer.address}</td></tr>
<tr><th>Miasto:</th><td>${customer.postalCode} ${customer.city}</td></tr>
</table>
<c:url var="adres_do_edycji" value="/customers/${customer.customerEmail}/edit"/>
<div class="action"><a href="${adres_edycji}">Edytuj</a></div>
</body>
</html>
......@@ -18,7 +18,7 @@ Obojętnie, czy aplikacja działabezpośrednio pod adresem localhost:8080/ , czy
<h1>Lista klientów</h1>
<table class="data-table">
<tr><th>Email</th><th>Nazwa</th><th>Telefon</th><th>Adres</th><th>Miasto</th></tr>
<tr><th>Email</th><th>Nazwa</th><th>Telefon</th><th>Adres</th><th>Miasto</th><th/></tr>
<c:forEach var="customer" items="${customers}">
<c:url var="adr" value="/customers/${customer.customerEmail}"/>
<tr>
......@@ -27,8 +27,14 @@ Obojętnie, czy aplikacja działabezpośrednio pod adresem localhost:8080/ , czy
<td>${customer.phoneNumber}</td>
<td>${customer.address}</td>
<td>${customer.postalCode} ${customer.city}</td>
<c:url var="adres_do_edycji" value="/customers/${customer.customerEmail}/edit"/>
<td class="action"><a href="${adres_do_edycji}">Edytuj</a></td>
</tr>
</c:forEach>
</table>
<c:url var="adres_new" value="/customers/new"/>
<div class="action"><a href="${adres_new}">Dodaj nowego klienta</a></div>
</body>
</html>
Markdown is supported
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