{% extends "layout.html.twig" %}
{% block content %}
<style>
/* ── Header alignment (same as listing page) ──────────────────────────── */
header .wrapper>section>div.right ul li.remabutton {
padding-left: 20px !important;
padding-right: 20px !important;
padding-top: 0 !important;
height: 58px !important;
vertical-align: middle !important;
display: inline-flex !important;
align-items: center !important;
}
header .wrapper>section>div.right ul li.remabutton>a {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
min-height: 44px !important;
line-height: 1 !important;
white-space: nowrap !important;
}
header .wrapper>section>div.right ul li.remabutton>a img {
position: relative !important;
top: 0 !important;
width: 18px !important;
height: 18px !important;
margin: 0 !important;
flex-shrink: 0 !important;
}
/* ── Content-top: border + compact height ────────────────────────────── */
.content .wrapper>section>article .content-top {
margin-bottom: 0 !important;
}
.content .wrapper>section>article .content-top>section {
border: 1px solid #ddd;
border-bottom: 2px solid #ddd;
border-radius: 2px;
margin-bottom: 20px;
}
.content .wrapper>section>article .content-top>section>div.left {
background: #fff !important;
padding: 20px 28px !important;
}
.content .wrapper>section>article .content-top>section>div.right {
background: #f3f4f5 !important;
border-left: none !important;
}
/* ── Shops row: flags + delete on same line ──────────────────────────── */
.pdp-shops-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 6px;
}
.pdp-shops-title {
margin-top: 12px;
margin-bottom: 2px;
}
.pdp-shops-title strong {
font-family: 'pill gothic 600mg rg';
font-weight: bold;
color: #222;
font-size: 15px;
}
.pdp-flags-list {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.pdp-flags-list > div {
opacity: 0.5;
cursor: pointer;
transition: all 0.4s;
}
.pdp-flags-list > div.active {
opacity: 1;
}
.pdp-flags-list > div:hover {
opacity: 1;
}
.pdp-flags-list > div > section {
display: inline-block;
}
.pdp-flags-list > div > section > div {
padding: 5px 10px;
background: #f3f4f5;
border-radius: 2px;
display: inline-block;
}
.pdp-flags-list > div > section > div span {
font-family: 'pill gothic 600mg rg';
font-weight: bold;
color: #888;
font-size: 13px;
text-transform: uppercase;
display: inline-flex;
align-items: center;
gap: 4px;
}
.pdp-flags-list > div > section > div span img {
position: relative;
top: 0;
}
.pdp-delete-label {
font-family: 'pill gothic 600mg rg';
font-weight: bold;
color: #888;
font-size: 13px;
text-transform: uppercase;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
text-decoration: none;
transition: color 0.3s;
white-space: nowrap;
flex-shrink: 0;
}
.pdp-delete-label:hover { color: #e40017; }
/* ── Back button (Zurück) ─────────────────────────────────────────────── */
.remabutton.alt {
height: 48px !important;
padding-top: 0 !important;
padding-left: 20px !important;
padding-right: 20px !important;
}
.remabutton.alt a {
display: flex !important;
align-items: center !important;
justify-content: center !important;
height: 100% !important;
min-height: 0 !important;
font-size: 14px !important;
gap: 8px !important;
white-space: nowrap !important;
}
.remabutton.alt a img {
width: 16px !important;
height: 16px !important;
position: static !important;
flex-shrink: 0 !important;
filter: brightness(0) invert(1) !important;
}
/* ── Speichern button (toolbar) ───────────────────────────────────────── */
.pdp-toolbar .remabutton.safeproduct {
height: 48px !important;
padding-top: 0 !important;
padding-left: 20px !important;
padding-right: 20px !important;
width: 155px !important;
}
.pdp-toolbar .remabutton.safeproduct a {
display: flex !important;
align-items: center !important;
justify-content: center !important;
height: 100% !important;
min-height: 0 !important;
font-size: 14px !important;
gap: 8px !important;
white-space: nowrap !important;
}
.pdp-toolbar .remabutton.safeproduct a img {
width: 20px !important;
height: 20px !important;
position: static !important;
flex-shrink: 0 !important;
}
/* ── Toolbar: flex layout, Speichern & button pushed right ───────────── */
.pdp-toolbar > section {
display: flex !important;
align-items: center !important;
width: 100% !important;
}
.pdp-toolbar > section > div {
display: flex !important;
align-items: center !important;
width: auto !important;
vertical-align: unset !important;
}
.pdp-toolbar > section > div:nth-child(1),
.pdp-toolbar > section > div:nth-child(2) {
margin-right: 40px;
}
.pdp-toolbar > section > div:nth-child(3) {
margin-left: auto;
margin-right: 24px;
}
</style>
<div class="wrapper pdp-page">
<section>
<aside>
<div class="graph">
<img src="/static/img/graph.png">
</div>
<ul class="categories">
<li>
<strong>Katalog</strong>
</li>
<li>
<a href="#">Material Processing <small>(1441)</small><i>+</i></a>
</li>
<li>
<a href="#">Surface Protection <small>(177)</small><i>-</i></a>
<ul>
<li>
<a href="#">Gummierungs-Systeme <small>(128)</small></a>
</li>
<li>
<a href="#">Beschichtungs-Systeme <small>(49)</small></a>
</li>
</ul>
</li>
<li>
<a href="#">Service <small>(706)</small><i>+</i></a>
</li>
</ul>
<ul class="misc">
<li>
<strong>Sonstiges</strong>
</li>
<li>
<a href="#">Downloads <small>(36)</small></a>
</li>
<li>
<a href="#">B-Ware <small>(36)</small></a>
</li>
<li>
<a href="#">CSV-Upload <small>(36)</small></a>
</li>
<li>
<a href="#">Offene Aufträge <small>(36)</small></a>
</li>
<li>
<a href="#">Abgeschlossene Aufträge <small>(36)</small></a>
</li>
<li>
<a href="#">Warenkörbe <small>(36)</small></a>
</li>
<li>
<a href="#">Media Center <small>(36)</small></a>
</li>
</ul>
</aside>
<article>
<div class="content-top">
<section>
<div class="left">
<div class="fluid">
<div class="span8">
<div class="remabutton alt">
<a href="/">
<img src="/static/img/back.svg">
Zurück
</a>
</div>
</div>
<div class="span4">
<div class="pdp-lastmodified">
<input type="hidden" id="id" value="{{product.id}}" />
{% set creationdate = product.creationdate|date('U') %}
{% set modificationdate = product.modificationdate|date('U') %}
<label>Erstellt: {{creationdate|date('d.m.Y - H:i')}}</label>
<label>Zuletzt bearbeitet: {{modificationdate|date('d.m.Y - H:i')}}</label>
<label>Bearbeitet von: Hans Peter</label>
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="pdp-shops-title">
<strong>Produkt verfügbar für folgende Shops</strong>
</div>
<div class="pdp-shops-row">
<div class="pdp-flags-list">
<div class="active">
<section><div><span><img src="/static/img/de.svg" height="14">DE</span></div></section>
</div>
<div class="active">
<section><div><span><img src="/static/img/ch.svg" height="14">CH</span></div></section>
</div>
<div class="active">
<section><div><span><img src="/static/img/lat.svg" height="14">LAT</span></div></section>
</div>
<div>
<section><div><span><img src="/static/img/fr.svg" height="14">FR</span></div></section>
</div>
<div>
<section><div><span><img src="/static/img/it.svg" height="14">IT</span></div></section>
</div>
<div class="active">
<section><div><span><img src="/static/img/at.svg" height="14">AT</span></div></section>
</div>
<div>
<section><div><span><img src="/static/img/esp.svg" height="14">ESP</span></div></section>
</div>
</div>
<a href="#" class="pdp-delete-label">
<img src="/static/img/delete.svg" width="14"> Löschung beantragen
</a>
</div>
<div class="clearleft"></div>
</div>
<div class="right">
<div class="addnew">
<i>+</i>
<strong>Neues Produkt</strong>
</div>
</div>
</section>
</div>
<section>
<section class="toolbar pdp-toolbar" style="border-top: 0;">
<section>
<div>
<label>Sprache</label>
<section>
<div>
<span><img src="/static/img/de.svg" height="16">DE</span>
</div>
</section>
<i class="chevron-arrow-down"></i>
</div>
<div>
<label>Status</label>
<section>
<div>
<span><i class="red"></i>Entwurf</span>
</div>
</section>
<i class="chevron-arrow-down"></i>
</div>
<div>
<label class="toolbar-ai-label"><img src="/static/img/ai_icon.svg"> Speichern & Übersetzen</label>
</div>
<div>
<div class="remabutton safeproduct">
<a href="#">
<img src="/static/img/safe_icon.svg">
Speichern
</a>
</div>
</div>
</section>
</section>
<section class="pdp">
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Artikelnummer</label>
<div class="checkbox">
<input type="checkbox">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="{{product.sku}}">
</div>
</div>
</div>
<div class="span8">
<div class="input padding-left">
<label>Produkttitel</label>
<div class="checkbox">
<input type="checkbox">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="{{product.name_de}}">
</div>
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="fluid">
<div class="span6">
<div class="standalone-inputlabel">Bilder & Videos</div>
<div class="photos">
<div class="fluid">
<div class="span5 left">
<div style="background-image: url({{ product.mainimage.thumbnail('product_listing') }});"></div>
</div>
<div class="span7 right">
<div style="background-image: url({{ product.mainimage.thumbnail('product_listing') }});"></div>
<div style="background-image: url({{ product.mainimage.thumbnail('product_listing') }});"></div>
<div style="background-image: url({{ product.mainimage.thumbnail('product_listing') }});"></div>
<div style="background-image: url({{ product.mainimage.thumbnail('product_listing') }});"></div>
</div>
</div>
</div>
</div>
<div class="span6">
<div class="standalonecheckbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="upload">
<img src="/static/img/upload.png" height="200">
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="fluid">
<div class="span2">
<div class="input padding-right label">
<label>Preis</label>
<div class="field">
<i>CHF</i>
<input type="text" placeholder="" value="1'456.00">
</div>
</div>
</div>
<div class="span2">
<div class="input padding-right label">
<label> </label>
<div class="field">
<i>€</i>
<input type="text" placeholder="" value="1'456.00">
</div>
</div>
</div>
<div class="span2">
<div class="input padding-right label">
<label> </label>
<div class="field">
<i>$</i>
<input type="text" placeholder="" value="1'456.00">
</div>
</div>
</div>
<div class="span2">
<div class="input padding-right label">
<label> </label>
<div class="field">
<i>ARS</i>
<input type="text" placeholder=" " value="1'456.00">
</div>
</div>
</div>
<div class="span2">
<div class="magicbutton">
<label><img src="/static/img/ai_icon.svg" width="16"> Umrechnen</label>
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="fluid">
<div class="span3">
<div class="input padding-right">
<label>Anzahl Lager</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.qty}}">
</div>
</div>
</div>
<div class="span7">
<div class="input padding-left">
<label>Lagernotiz</label>
<div class="checkbox">
<input type="checkbox">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="Artikel auf Lager">
</div>
</div>
</div>
<div class="span2">
<div class="magicbutton">
<label><img src="/static/img/lager_icon.svg" width="18"> Erweitert</label>
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Kurzbeschreibung</label>
<div class="checkbox">
<input type="checkbox">
<span>Global</span>
</div>
<div class="textarea-ai-button-row">
<div class="magicbutton textarea-ai-button">
<label class="textarea-ai-button-label">
</label>
<div class="textarea-ai-button-menu">
<div class="magic-action"><img src="/static/img/abc.svg"> Text komprimieren</div>
<div class="magic-action"><img src="/static/img/longer.svg"> Text länger machen</div>
<div class="magic-action"><img src="/static/img/shorter.svg"> Text kürzen</div>
<div class="magic-action"><img src="/static/img/grammatik.svg"> Grammatik</div>
</div>
</div>
</div>
<div class="field">
<textarea name="short_description_de" id="editor2">{{product.short_description_de | raw}}</textarea>
<script>
CKEDITOR.replace('editor2', {
toolbar: [
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList' ] },
{ name: 'links', items: [ 'Link', 'Unlink' ] }
],
removePlugins: 'elementspath,resize,contextmenu',
resize_enabled: false,
allowedContent: true
});
</script>
</div>
</div>
</div>
<div class="span8">
<div class="input padding-left">
<label>Beschreibung</label>
<div class="checkbox">
<input type="checkbox">
<span>Global</span>
</div>
<div class="textarea-ai-button-row">
<div class="magicbutton textarea-ai-button">
<label class="textarea-ai-button-label">
</label>
<div class="textarea-ai-button-menu">
<div class="magic-action"><img src="/static/img/abc.svg"> Text komprimieren</div>
<div class="magic-action"><img src="/static/img/longer.svg"> Text länger machen</div>
<div class="magic-action"><img src="/static/img/shorter.svg"> Text kürzen</div>
<div class="magic-action"><img src="/static/img/grammatik.svg"> Grammatik</div>
</div>
</div>
</div>
<div class="field">
<textarea name="description_de" id="editor1">{{ product.description_de | raw }}</textarea>
<script>
CKEDITOR.replace('editor1', {
toolbar: [
{ name: 'clipboard', items: [ 'Undo', 'Redo' ] },
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList' ] },
{ name: 'links', items: [ 'Link', 'Unlink' ] }
],
removePlugins: 'elementspath,resize,contextmenu',
resize_enabled: false,
removeButtons: '',
allowedContent: true
});
</script>
</div>
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="fluid">
<div class="span3 span3-alt">
<div class="input label padding-right">
<label>
<img src="/static/img/pdf.svg" style="width:18px;height:auto;vertical-align:middle;margin-right:5px;">
Dokumente
</label>
<div class="checkbox">
<input type="checkbox">
<span>Global</span>
</div>
<div class="field">
<a href="{{product.safety_data_sheet_en}}" target="_blank"><i>PDF</i></a>
<input type="text" placeholder="" value="Sicherheitsdatenblatt">
</div>
<p><a href="{{product.safety_data_sheet_en}}" target="_blank">Open document</a></p>
</div>
</div>
<div class="span3 span3-alt">
<div class="input label padding-right">
<label> </label>
<div class="field">
<a href="{{product.safety_data_sheet_de}}" target="_blank"><i>PDF</i></a>
<input type="text" placeholder="" value="Anleitung">
</div>
<p><a href="{{product.safety_data_sheet_de}}" target="_blank">Open document</a></p>
</div>
</div>
<div id="addnewdocumentouter" class="span3 span3-alt">
<div class="input padding-right label">
<div id="addnewdocument" class="newdocument">+</div>
</div>
</div>
</div>
<div class="clearleft"></div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Gewicht</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.spezifisches_gewicht}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Inhalt</label>
<div class="checkbox">
<input type="checkbox" checked="" >
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.content}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Masse</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.warengruppenstruktur}}">
</div>
</div>
</div>
</div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Maximale Bestellmenge</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.maximale_bestellmenge}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Packungsmenge</label>
<div class="checkbox">
<input type="checkbox" checked="" >
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.packungsmenge}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Lieferbar am</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.lieferbar_am}}">
</div>
</div>
</div>
</div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Wieder lieferbar</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.wieder_lieferbar}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Polymerbasis</label>
<div class="checkbox">
<input type="checkbox" checked="" >
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.polymerbasis}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>UN Nummer</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.un_nummer}}">
</div>
</div>
</div>
</div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Solvent</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.losungsmittel}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Bezeichnung</label>
<div class="checkbox">
<input type="checkbox" checked="" >
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.bezeichnung}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Zolltarifnummer</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.zolltarifnummer}}">
</div>
</div>
</div>
</div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Warengruppenstruktur</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.warengruppenstruktur}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Nettogewicht</label>
<div class="checkbox">
<input type="checkbox" checked="" >
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.nettogewicht}}">
</div>
</div>
</div>
<div class="span4">
<div class="input padding-left">
<label>Gefahrgut</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.gefahrgut}}">
</div>
</div>
</div>
</div>
<div class="fluid">
<div class="span4">
<div class="input padding-right">
<label>Formularart</label>
<div class="checkbox">
<input type="checkbox" checked="">
<span>Global</span>
</div>
<div class="field">
<input type="text" placeholder="" value="{{product.formularart}}">
</div>
</div>
</div>
</div>
<div class="clearleft"></div>
</section>
<section class="toolbar pdp-toolbar" style="border-bottom: 0;">
<section>
<div>
<label>Sprache</label>
<section>
<div>
<span><img src="/static/img/de.svg" height="16">DE</span>
</div>
</section>
<i class="chevron-arrow-down"></i>
</div>
<div>
<label>Status</label>
<section>
<div>
<span><i class="red"></i>Entwurf</span>
</div>
</section>
<i class="chevron-arrow-down"></i>
</div>
<div>
<label class="toolbar-ai-label"><img src="/static/img/ai_icon.svg"> Speichern & Übersetzen</label>
</div>
<div>
<div class="remabutton safeproduct">
<a href="#">
<img src="/static/img/safe_icon.svg">
Speichern
</a>
</div>
</div>
</section>
</section>
</section>
</article>
</section>
</div>
<script>
$(document).ready(function() {
$(document).on('click', '.textarea-ai-button-label', function(e) {
e.stopPropagation();
var $menu = $(this).closest('.textarea-ai-button').find('.textarea-ai-button-menu');
$('.textarea-ai-button-menu').not($menu).hide();
$menu.toggle();
});
$(document).on('click', function(e) {
if (!$(e.target).closest('.textarea-ai-button').length) {
$('.textarea-ai-button-menu').hide();
}
});
});
</script>
{% endblock %}