move internal pages from employee to intern

This commit is contained in:
CodeSteak 2020-01-16 20:17:48 +01:00
parent a0da07df66
commit d7161d3796
5 changed files with 37 additions and 33 deletions

View File

@ -52,19 +52,19 @@ public class RequestController {
return "searchResults";
}
@GetMapping("/employee/articles")
@GetMapping("/intern/articles")
public String articles() {
return "articles";
return "intern/articles";
}
@GetMapping("/employee/listedarticles")
@GetMapping("/intern/listedarticles")
public String listedarticles() {
return "listedArticles";
return "intern/listedArticles";
}
@GetMapping("/employee/listedarticlesedit")
@GetMapping("/intern/listedarticlesedit")
public String listedarticlesedit() {
return "listedArticlesEdit";
return "intern/listedArticlesEdit";
}
@GetMapping("/customer/accountsettings")

View File

@ -8,15 +8,15 @@
</head>
<body>
<nav th:replace="fragments/header :: header">Header</nav>
<nav th:replace="/fragments/header :: header">Header</nav>
<main class="sidebar-layout content-width">
<nav th:replace="fragments/employee :: sidebar">Header</nav>
<nav th:replace="/fragments/intern :: sidebar">Header</nav>
<div class="content-width">
<h1> Artikel</h1>
<p>TODO</p>
</div>
</main>
<footer th:replace="fragments/footer :: footer"></footer>
<footer th:replace="/fragments/footer :: footer"></footer>
</body>
</html>

View File

@ -11,9 +11,9 @@
</head>
<body>
<nav th:replace="fragments/header :: header">Header</nav>
<nav th:replace="/fragments/header :: header">Header</nav>
<main class="sidebar-layout content-width">
<nav th:replace="fragments/employee :: sidebar">Header</nav>
<nav th:replace="/fragments/intern :: sidebar">Header</nav>
<div class="content-width">
<h1> Gelistete Artikel </h1>
@ -38,7 +38,7 @@
<h2>Artikel Hinzufügen</h2>
<p>
Weitere Artikel können über Artikelübersicht gelistet werden.
<a class="button smaller" th:href="@{/employee/articles}"> Jetzt Hinzufügen </a>
<a class="button smaller" th:href="@{/intern/articles}"> Jetzt Hinzufügen </a>
</p>
<p>
@ -54,7 +54,7 @@
<th>Preis</th>
<th>(Netto)</th>
<th>Kategorien</th>
<th>Aktiv</th>
<th>Lagerbestand (Aktiv)</th>
<th>Artikel</th>
<th>Id (bearbeiten)</th>
</tr>
@ -65,9 +65,9 @@
<td>100,50 €</td>
<td> (84.45 €) </td>
<td>Úberwachung, Elektronik</td>
<td><span class="checked"></span></td>
<td><a th:href="@{/employee/articles}">A-5051</a></td>
<td><a th:href="@{/employee/listedarticlesedit}">L-890</a></td>
<td>301 <span class="checked"></span></td>
<td><a th:href="@{/intern/articles}">A-5051</a></td>
<td><a th:href="@{/intern/listedarticlesedit}">L-890</a></td>
</tr>
<tr>
<td><img th:src="@{/img/product-2.jpg}" class="s" /></td>
@ -75,9 +75,9 @@
<td>63,95 €</td>
<td>(53,73 €)</td>
<td>Kopfhörer, Elektronik</td>
<td><span class="checked"></span></td>
<td><a th:href="@{/employee/articles}">A-840</a></td>
<td><a th:href="@{/employee/listedarticlesedit}">L-13850</a></td>
<td>12 <span class="checked"></span></td>
<td><a th:href="@{/intern/articles}">A-840</a></td>
<td><a th:href="@{/intern/listedarticlesedit}">L-13850</a></td>
</tr>
<tr>
<td><img th:src="@{/img/product-3.jpg}" class="s" /></td>
@ -85,9 +85,9 @@
<td>11,90 €</td>
<td> (10,00 €) </td>
<td>Sonstiges, Elektronik</td>
<td><span class="unchecked"></span></td>
<td><a th:href="@{/employee/articles}">A-8401</a></td>
<td><a th:href="@{/employee/listedarticlesedit}">L-5784</a></td>
<td>3<span class="unchecked"></span></td>
<td><a th:href="@{/intern/articles}">A-8401</a></td>
<td><a th:href="@{/intern/listedarticlesedit}">L-5784</a></td>
</tr>
<tr>
<td><img th:src="@{/img/product-4.jpg}" class="s" /></td>
@ -95,9 +95,9 @@
<td>15,99 €</td>
<td> (13.44 €) </td>
<td>Úberwachung, Elektronik</td>
<td><span class="checked"></span></td>
<td><a th:href="@{/employee/articles}">A-2135</a></td>
<td><a th:href="@{/employee/listedarticlesedit}">L-4564</a></td>
<td>4<span class="checked"></span></td>
<td><a th:href="@{/intern/articles}">A-2135</a></td>
<td><a th:href="@{/intern/listedarticlesedit}">L-4564</a></td>
</tr>
<tr>
<td><img th:src="@{/img/product-5.jpg}" class="s" /></td>
@ -105,15 +105,15 @@
<td>7,95 €</td>
<td> (6.68 €) </td>
<td>Úberwachung, Elektronik</td>
<td><span class="checked"></span></td>
<td><a th:href="@{/employee/articles}">A-4565</a></td>
<td><a th:href="@{/employee/listedarticlesedit}">L-4566</a></td>
<td>0<span class="checked"></span></td>
<td><a th:href="@{/intern/articles}">A-4565</a></td>
<td><a th:href="@{/intern/listedarticlesedit}">L-4566</a></td>
</tr>
</table>
<p>
</div>
</main>
<footer th:replace="fragments/footer :: footer"></footer>
<footer th:replace="/fragments/footer :: footer"></footer>
</body>
</html>

View File

@ -11,9 +11,9 @@
</head>
<body>
<nav th:replace="fragments/header :: header">Header</nav>
<nav th:replace="/fragments/header :: header">Header</nav>
<main class="sidebar-layout content-width">
<nav th:replace="fragments/employee :: sidebar">Header</nav>
<nav th:replace="/fragments/intern :: sidebar">Header</nav>
<div class="content-width">
<h1> Gelistete Artikel </h1>
@ -88,13 +88,17 @@ Elektronik
</div>
<div class="s">
<p>
Lagerbestand: 12
</p>
<p>
<label for="price">Einheiten pro Lagherplatz</label>
<input class="linestyle" type="number" name="units-per-slot" value="20" />
</p>
<p>
Der Wert wird nur für zukünftige Lagerbuchungen verwendet.
Bei Problemen kann können Einheiten aus und wieder eingebucht werden.
Bei Problemen kann können Einheiten aus- und wieder eingebucht werden.
<!-- TODO: set link g-->
<a href="/todo" class="button smaller">Lagerbuchung</a>
</p>
</div>
@ -115,7 +119,7 @@ Indianerehrenwort!
</form>
</div>
</main>
<footer th:replace="fragments/footer :: footer"></footer>
<footer th:replace="/fragments/footer :: footer"></footer>
</body>
</html>