genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0

[Task:] Add documentation

This commit is contained in:
mlabusch 2017-05-19 11:26:12 +02:00
parent 42b5fecbaa
commit 0096736b3f
2 changed files with 11 additions and 4 deletions

View File

@ -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>

View File

@ -157,8 +157,15 @@ private final String STOCKADMINFRONTENDTEMPLATE = "https://stock.pub.warehost.de
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}