+
+ <c:forEach var="product" items="${controller.availableProductsIterator}">
+ <c:choose>
+ <c:when test="${controller.basket.isAdded(product)}">
+ <c:set var="item" value="${controller.basket.item}" />
+ <table class="table">
+ <tbody>
+ <tr>
+ <td class="table_data_column">
+ <a href="${basePath}/basket.jsp" title="Zum Warenkorb">Warenkorb</a>
+ </td>
+ <td class="table_data_column">
+ ${item.amount}
+ </td>
+ <td class="table_data_column">
+ ${product.title}
+ </td>
+ <td class="table_data_column" align="right">
+ <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </c:when>
+ <c:otherwise>
+ <form action="${basePath}/form_handler/add_item.jsp" accept-charset="utf-8" id="form" method="post">
+ <table class="table">
+ <tbody>
+ <tr>
+ <td class="table_data_column">
+ <input class="submit" type="submit" name="add" value="Hinzufügen" />
+ <input type="hidden" name="itemId" value="${product.itemId}" />
+ <input type="hidden" name="itemType" value="Product" />
+ </td>
+ <td class="table_data_column">
+ <input class="input" type="text" name="amount" size="3" maxlength="20" />
+ </td>
+ <td class="table_data_column">
+ ${product.title}
+ </td>
+ <td class="table_data_column" align="right">
+ <fmt:formatNumber type="currency" minFractionDigits="2" maxFractionDigits="2" value="${product.price}" />
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </form>
+ </c:otherwise>
+ </c:choose>
+ </c:forEach>