[Task:] Add documentation
This commit is contained in:
parent
42b5fecbaa
commit
0096736b3f
|
@ -31,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<h2 th:text="${product.name}">Product Name</h2>
|
<h2 th:text="${product.name}">Product Name</h2>
|
||||||
<img class="icon" th:src="${'https://stock.pub.warehost.de/api/good/availablity/'+product.itemNumber}"/>
|
<img class="icon" th:src="${'https://stock.pub.warehost.de/api/good/availablity/'+product.id}"/>
|
||||||
<p class="text-info text-uppercase" th:text="${product.price}">0,00 Euro</p>
|
<p class="text-info text-uppercase" th:text="${product.price}">0,00 Euro</p>
|
||||||
<p class="lead" th:text="${product.description}">Description.</p>
|
<p class="lead" th:text="${product.description}">Description.</p>
|
||||||
<div th:replace="fragments/reviews :: reviews"></div>
|
<div th:replace="fragments/reviews :: reviews"></div>
|
||||||
|
|
|
@ -150,15 +150,22 @@ private final String STOCKADMINFRONTENDTEMPLATE = "https://stock.pub.warehost.de
|
||||||
|
|
||||||
@RequestMapping(value = "/stockadmin", method = RequestMethod.GET)
|
@RequestMapping(value = "/stockadmin", method = RequestMethod.GET)
|
||||||
public String redirect(Model model) {return "redirect:"+ this.STOCKADMINFRONTENDTEMPLATE;
|
public String redirect(Model model) {return "redirect:"+ this.STOCKADMINFRONTENDTEMPLATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
Weiter wurde die Ampeldarstellung der Verfügbarkeit unter \texttt{products.html} eingefügt. Hierfür wurde das \texttt{ProductDTO.java} um die Rückgabe der Produkt-ID erweitert.
|
Weiter wurde die Ampeldarstellung der Verfügbarkeit unter \texttt{products.html} eingefügt. Hierfür wurde das \texttt{ProductDTO.java} um die Rückgabe der Produkt-ID erweitert.
|
||||||
|
|
||||||
\begin{lstlisting}[caption=Anpassung products.html, language=HTML]
|
\begin{lstlisting}[caption=Anpassung products.html, language=HTML]
|
||||||
|
<div class="col-md-8">
|
||||||
|
<h2 th:text="${product.name}">Product Name</h2>
|
||||||
|
|
||||||
|
<img class="icon" th:src="${'https://stock.pub.warehost.de/api/good/availablity/'+product.id}"/>
|
||||||
|
|
||||||
|
<p class="text-info text-uppercase" th:text="${product.price}">0,00 Euro</p>
|
||||||
|
<p class="lead" th:text="${product.description}">Description.</p>
|
||||||
|
<div th:replace="fragments/reviews :: reviews"></div>
|
||||||
|
</div>
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue