2020-02-01 23:43:44 +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 > Bearbeiten: Artikel< / 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 > Artikel bearbeiten< / h1 >
< script th:src = "@{/js/back.js}" > < / script >
< div class = "back" data-group = "intern" data-insert = "true" > < / div >
< / div >
< / div >
< main class = "sidebar-layout content-width" >
< nav th:replace = "fragments/intern :: sidebar" > < / nav >
< div class = "content-width" >
< h2 > Gelisteter Artikel ID < span th:text = "${ArticleID.id}" > < / span > < / h2 >
< form class = "detailgrid" action = "#" th:action = "@{/intern/articles/{id}/saveChanges(id = ${ArticleID.id})}" th:object = "${ArticleID}" method = "POST" enctype = "multipart/form-data" >
< p class = "m" >
< label for = "title" > Titel< / label >
2020-05-21 10:27:26 +02:00
< input class = " full-width" type = "text" id = "title" name = "title" th:value = "${ArticleID.title}" / >
2020-05-16 22:48:20 +02:00
< / p >
< p class = "s" >
< label for = "ref-article" > Refernzierter Artikel< / label >
2020-05-21 10:27:26 +02:00
< input class = "" type = "text" id = "ref_disabled" th:value = "${ArticleID.offer_id}" disabled / >
2020-05-19 16:30:27 +02:00
2020-05-21 10:27:26 +02:00
< input type = "hidden" id = "ref_hidden" th:value = "${ArticleID.offer_id}" name = "ref-article" / >
2020-05-19 16:30:27 +02:00
2020-05-16 22:48:40 +02:00
< td > < a th:href = "${'/intern/supplierOffers/#q=' + {ArticleID.id}}" > Details< / a > < / td >
2020-05-16 22:48:20 +02:00
< / p >
< div class = "spacer" > < / div >
< div class = "m" >
< p >
< label for = "img" > Bild Hochladen< / label >
2020-05-21 10:27:26 +02:00
< input class = "full-width" type = "file" id = "image" name = "img" / >
2020-05-16 22:48:20 +02:00
< / p >
< p >
< img th:src = "@{/shop/articles/{id}/image.jpg(id=${ArticleID.id})}" class = "m" / >
< / p >
< / div >
< div class = "s" >
< p >
< label for = "price" > Preis (Netto)< / label >
< input class = "" type = "number" step = "0.01" name = "price_netto" th:value = "${ArticleID.price_netto}" / > EUR < br / >
(19% Mwst.)
<!-- Info von article ref --> < br / >
= < span th:text = "${ArticleID.price}" > < / span > EUR Brutto
< / p >
< p >
< label for = "max-price-buy" > Maximaler Einkaufspreis (Netto)< / label >
2020-05-21 10:27:26 +02:00
< input class = "" type = "number" id = "reorderMaxPrice" step = "0.01" name = "reorderMaxPrice" th:value = "${ArticleID.reorderMaxPrice}" / > EUR
2020-05-16 22:48:20 +02:00
< / p >
< div >
< fieldset >
2020-05-11 11:58:26 +02:00
< input type = "radio" name = "autobuy" value = "true" id = "autobuy-yes" th:checked = "${ArticleID.shouldReorder}" required >
2020-04-27 09:48:24 +02:00
< label for = "autobuy-yes" > Automatisch nachbestellen.< / label > < br / >
2020-05-11 11:58:26 +02:00
< input type = "radio" name = "autobuy" value = "false" id = "autobuy-no" th:checked = "${!ArticleID.shouldReorder}" required >
2020-04-27 09:48:24 +02:00
< label for = "autobuy-no" > Nicht mehr nachkaufen.< / label > < br / >
2020-05-16 22:48:20 +02:00
< / fieldset >
< / div >
< / div >
< div class = "m" >
< label for = "tags" > Kategorien< / label >
< p >
Bitte jede Kategorien in eine eigene Zeile
< / p >
2020-05-21 10:27:26 +02:00
< textarea name = "categories" id = "categories" class = "full-width" rows = "6" th:inline = "text" > [[${ArticleID.categorie}]]
2020-05-11 11:58:26 +02:00
2020-02-01 23:43:44 +01:00
< / textarea >
2020-05-16 22:48:20 +02:00
< / div >
< div class = "s" >
< p >
< label for = "price" > Einheiten pro Lagerplatz< / label >
2020-05-21 10:27:26 +02:00
< input class = "" type = "number" id = "units-per-slot" name = "units-per-slot" th:value = "${ArticleID.warehouseUnitsPerSlot}" / >
2020-05-16 22:48:20 +02:00
< / p >
< p >
< b > Lagerbestand: < span th:text = "${ArticleID.stock}" > < / span > < / b >
< / p >
< p >
Der Wert wird nur für zukünftige Lagerbuchungen verwendet.
Bei Problemen kann können Einheiten aus- und wieder eingebucht werden.
<!-- TODO: set link g -->
< / p >
< p >
< a href = "/todo" class = "button smaller" > Lagerbuchung< / a >
< / p >
< / div >
< p class = "l" >
< label for = "description" > Beschreibung< / label >
2020-05-21 10:27:26 +02:00
< textarea name = "description" id = "description" class = "full-width" rows = "15" th:inline = "text" > [[${ArticleID.description}]]
2020-05-16 22:48:20 +02:00
< / textarea >
< / p >
< div class = "l" >
< button type = "submit" > Änderungen speichern< / button >
< button type = "reset" > Zurücksetzen< / button >
< button onclick = "history.back()" > Änderungen verwerfen< / button >
< / div >
< / form >
< / div >
< / main >
< footer th:replace = "fragments/footer :: footer" > < / footer >
< / body >
2020-05-21 10:27:26 +02:00
< / html >