2020-02-01 15:02:19 +01:00
<!DOCTYPE html>
< html lang = "de" dir = "ltr" xmlns:th = "http://www.thymeleaf.org" >
2020-05-16 22:48:20 +02:00
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=0.75, user-scalable=no" >
< title > Händlerangebote< / title >
< script th:src = "@{/js/filterTable.js}" > < / script >
< link rel = "stylesheet" th:href = "@{/css/ecom.css}" / >
< / head >
< body >
< nav th:replace = "fragments/header :: header" > Header< / nav >
< div class = "sidebar-layout content-width" >
< nav > < / nav >
< div >
< h1 > Übersicht der Angebote von Lieferanten< / h1 >
< script th:src = "@{/js/back.js}" > < / script >
< div class = "back" data-group = "intern" data-name = "Zurück zur Übersicht der von Lieferanten angebotenen Artikel."
data-insert="false">< / div >
< / div >
< / div >
< main class = "sidebar-layout content-width" >
< nav th:replace = "fragments/intern :: sidebar" > < / nav >
< div class = "content-width" >
< p >
< table id = "main-table" >
< tr >
< th colspan = "7" >
< input type = "text" placeholder = "Filtern" class = "smaller jsFilterTable full-width" data-target-id = "main-table" > < / input >
< / th >
< / tr >
< thead >
< tr >
< th > Name< / th >
< th > Hersteller< / th >
< th > Artikelnummer< / th >
< th > Lieferant< / th >
< th > Kaufpreis (Netto)< / th >
< th > Werbungs-< br / > anfrage< / th >
< th > Status< / th >
< / tr >
< / thead >
< tbody >
< tr th:each = "article : ${OfferedArticles}" >
< td > < span th:text = "${article.title}" > < / span > < / td >
< td > < span th:text = "${article.manufacturer}" > < / span > < / td >
< td > < span th:text = "${article.articlenumber}" > < / span > < / td >
< td > < a th:href = "@{/intern/suppliers/{id}(id = ${article.supplierId})}" th:text = "${article.supplierName}" > < / a > < / td >
2020-05-19 00:12:26 +02:00
< td > < span th:text = "${article.price}" > < / span > €< / td >
2020-05-16 22:48:20 +02:00
< td > < span th:text = "${article.ads}" > < / span > < / td >
2020-05-19 16:30:27 +02:00
< td >
< div th:if = "${article.offerIsListed}" >
< a th:href = "@{/intern/articles/{id}(id = ${article.listedArticleId})}" > Artikel gelistet< / a >
< / div >
<!-- ELSE -->
< div th:unless = "${article.offerIsListed}" >
< form class = "detailgrid" action = "#" th:action = "@{/intern/articles/addArticle/{id}(id = ${article.offer_id})}" method = "POST" >
2020-05-27 21:53:58 +02:00
< input class = "button smaller" type = "submit" value = "Hinzufügen" / >
2020-05-19 16:30:27 +02:00
< / form >
< / div >
< / td >
2020-05-16 22:48:20 +02:00
< / tr >
< / tbody >
< / table >
< / p >
< / div >
< / main >
< footer th:replace = "fragments/footer :: footer" > < / footer >
< / body >
< / html >