templates/default/default.html.twig line 1

Open in your IDE?
  1. {% extends "layout.html.twig" %}
  2. {% block content %}
  3. <style>
  4.     .content .wrapper>section>article .content-top>section>div.left .search>div>section.searchicon,
  5.     .content .wrapper>section>article .content-top>section>div.left .search>div>section.input,
  6.     .content .wrapper>section>article .content-top>section>div.left .search>div>section.input input {
  7.         height: 52px !important;
  8.     }
  9.     .content .wrapper>section>article .content-top>section>div.left .search>div>section.searchicon {
  10.         width: 52px !important;
  11.     }
  12.     .content .wrapper>section>article .content-top>section>div.left .search>div>section.searchicon>img {
  13.         top: 0px !important;
  14.         left: 14px !important;
  15.     }
  16.     .content .wrapper>section>article .content-top>section>div.left .search .remabutton {
  17.         padding-left: 14px !important;
  18.         padding-right: 14px !important;
  19.         height: 52px !important;
  20.         padding-top: 2px !important;
  21.     }
  22.     .content .wrapper>section>article .content-top>section>div.left .search .remabutton>a,
  23.     .content .wrapper>section>article>section .catalog>div>ul>li>div.controls .remabutton>a,
  24.     header .wrapper>section>div.right ul li.remabutton>a {
  25.         display: inline-flex !important;
  26.         align-items: center !important;
  27.         justify-content: center !important;
  28.         gap: 8px !important;
  29.         min-height: 44px !important;
  30.         line-height: 1 !important;
  31.         white-space: nowrap !important;
  32.         padding-left:1em;
  33.     }
  34.     .content .wrapper>section>article .content-top>section>div.left .search .remabutton>a img,
  35.     .content .wrapper>section>article>section .catalog>div>ul>li>div.controls .remabutton>a img,
  36.     header .wrapper>section>div.right ul li.remabutton>a img {
  37.         position: relative !important;
  38.         top: 0 !important;
  39.         width: 18px !important;
  40.         height: 18px !important;
  41.         margin: 0 !important;
  42.         flex-shrink: 0 !important;
  43.     }
  44.     .content .wrapper>section>article>section .catalog>div>ul>li>div.controls .remabutton {
  45.         padding-left: 18px !important;
  46.         padding-right: 18px !important;
  47.         height: 50px !important;
  48.         padding-top: 2px !important;
  49.     }
  50.     header .wrapper>section>div.right ul li.remabutton {
  51.         padding-left: 20px !important;
  52.         padding-right: 20px !important;
  53.         padding-top: 0 !important;
  54.         height: 58px !important;
  55.         display: inline-flex !important;
  56.         align-items: center !important;
  57.     }
  58.     .content .wrapper>section>article>section.listing-panel .toolbar {
  59.         border-top: 0 !important;
  60.     }
  61.     .content .wrapper>section>article>section.listing-panel .listing-toolbar>section {
  62.         display: flex !important;
  63.         align-items: center !important;
  64.         flex-wrap: wrap !important;
  65.         gap: 24px !important;
  66.     }
  67.     .content .wrapper>section>article>section.listing-panel .listing-toolbar>section>div {
  68.         display: inline-flex !important;
  69.         align-items: center !important;
  70.         width: auto !important;
  71.     }
  72.     .content .wrapper>section>article>section.listing-panel .listing-toolbar>section>div label {
  73.         white-space: nowrap !important;
  74.     }
  75.     .content .wrapper>section>article>section.listing-panel .listing-toolbar>section>div>section>div {
  76.         min-height: 44px !important;
  77.         display: inline-flex !important;
  78.         align-items: center !important;
  79.     }
  80.     .content .wrapper>section>article>section.listing-panel .listing-toolbar>section>div>i {
  81.         margin-left: 8px !important;
  82.     }
  83.     @media screen and (max-width: 1400px) {
  84.         .content .wrapper>section>article>section.listing-panel .listing-toolbar>section {
  85.             gap: 18px !important;
  86.         }
  87.     }
  88. </style>
  89. <div class="wrapper">
  90.     <section>
  91.         <aside>
  92.             <div class="graph">
  93.             <img src="/static/img/graph.png">
  94.           </div>
  95.             <ul class="categories">
  96.                 <li>
  97.                     <strong>Katalog</strong>
  98.                 </li>
  99.                 <li>
  100.                     <a href="#">
  101.                         Material Processing
  102.                         <small>(1441)</small>
  103.                         <i>+</i>
  104.                     </a>
  105.                 </li>
  106.                 <li>
  107.                     <a href="#">
  108.                         Surface Protection
  109.                         <small>(177)</small>
  110.                         <i>-</i>
  111.                     </a>
  112.                     <ul>
  113.                         <li>
  114.                             <a href="#">Gummierungs-Systeme<small>(128)</small></a>
  115.                         </li>
  116.                         <li>
  117.                             <a href="#">Beschichtungs-Systeme<small>(49)</small></a>
  118.                         </li>
  119.                     </ul>
  120.                 </li>
  121.                 <li>
  122.                     <a href="#">
  123.                         Service
  124.                         <small>(706)</small>
  125.                         <i>+</i>
  126.                     </a>
  127.                 </li>
  128.             </ul>
  129.             <ul class="misc">
  130.                 <li>
  131.                     <strong>Sonstiges</strong>
  132.                 </li>
  133.                 <li>
  134.                     <a href="#">
  135.                         Downloads
  136.                         <small>(36)</small>
  137.                     </a>
  138.                 </li>
  139.                 <li>
  140.                     <a href="#">
  141.                         B-Ware
  142.                         <small>(36)</small>
  143.                     </a>
  144.                 </li>
  145.                 <li>
  146.                     <a href="#">
  147.                         CSV-Upload
  148.                         <small>(36)</small>
  149.                     </a>
  150.                 </li>
  151.                 <li>
  152.                     <a href="#">
  153.                         Offene Aufträge
  154.                         <small>(36)</small>
  155.                     </a>
  156.                 </li>
  157.                 <li>
  158.                     <a href="#">
  159.                         Abgeschlossene Aufträge
  160.                         <small>(36)</small>
  161.                     </a>
  162.                 </li>
  163.                 <li>
  164.                     <a href="#">
  165.                         Warenkörbe
  166.                         <small>(36)</small>
  167.                     </a>
  168.                 </li>
  169.                 <li>
  170.                     <a href="#">
  171.                         Media Center
  172.                         <small>(36)</small>
  173.                     </a>
  174.                 </li>
  175.             </ul>
  176.         </aside>
  177.         <article>
  178.             <div class="content-top">
  179.                 <section>
  180.                     <div class="left">
  181.                         <div class="search">
  182.                             <div>
  183.                                 <section class="searchicon">
  184.                                     <img src="/static/img/search.svg" />
  185.                                 </section>
  186.                                 <section class="input">
  187.                                     <input type="text" name="search-input" id="search-input" placeholder="Artikelnummer, Suchbegriffe" value="{{query}}" />
  188.                                 </section>
  189.                                 <div class="remabutton">
  190.                                     <a href="javascript:void(0)" id="search-link">
  191.                                         Artikel finden
  192.                                         <img src="/static/img/arrow-ic.svg" />
  193.                                     </a>
  194.                                 </div>
  195.                             </div>
  196.                         </div>
  197.                         <div class="countries">
  198.                             <div class="active">
  199.                                 <section>
  200.                                     <div>
  201.                                         <span><img src="/static/img/de.svg" height="16" />DE</span>
  202.                                     </div>
  203.                                 </section>
  204.                             </div>
  205.                             <div class="active">
  206.                                 <section>
  207.                                     <div>
  208.                                         <span><img src="/static/img/ch.svg" height="16" />CH</span>
  209.                                     </div>
  210.                                 </section>
  211.                             </div>
  212.                             <div class="active">
  213.                                 <section>
  214.                                     <div>
  215.                                         <span><img src="/static/img/lat.svg" height="16" />LAT</span>
  216.                                     </div>
  217.                                 </section>
  218.                             </div>
  219.                             <div>
  220.                                 <section>
  221.                                     <div>
  222.                                         <span><img src="/static/img/fr.svg" height="16" />FR</span>
  223.                                     </div>
  224.                                 </section>
  225.                             </div>
  226.                             <div>
  227.                                 <section>
  228.                                     <div>
  229.                                         <span><img src="/static/img/it.svg" height="16" />IT</span>
  230.                                     </div>
  231.                                 </section>
  232.                             </div>
  233.                             <div class="active">
  234.                                 <section>
  235.                                     <div>
  236.                                         <span><img src="/static/img/at.svg" height="16" />AT</span>
  237.                                     </div>
  238.                                 </section>
  239.                             </div>
  240.                             <div>
  241.                                 <section>
  242.                                     <div>
  243.                                         <span><img src="/static/img/esp.svg" height="16" />ESP</span>
  244.                                     </div>
  245.                                 </section>
  246.                             </div>
  247.                             <div class="allshops">
  248.                                 <section>
  249.                                     <div>
  250.                                         <span>Alle Shops</span>
  251.                                     </div>
  252.                                 </section>
  253.                             </div>
  254.                         </div>
  255.                     </div>
  256.                     <div class="right">
  257.                         <div class="addnew">
  258.                             <i>+</i>
  259.                             <strong>Produkt hinzufügen</strong>
  260.                         </div>
  261.                     </div>
  262.                 </section>
  263.             </div>
  264.             <section class="listing-panel">
  265.                 <section class="toolbar listing-toolbar">
  266.                     <section>
  267.                         <div>
  268.                             <label>Aktion</label>
  269.                             <section>
  270.                                 <div>
  271.                                     <span>Veröffentlichen</span>
  272.                                     <small>(3)</small>
  273.                                 </div>
  274.                             </section>
  275.                             <i class="chevron-arrow-down"></i>
  276.                         </div>
  277.                         <div>
  278.                             <label>Filter</label>
  279.                             <section>
  280.                                 <div>
  281.                                     <span> <i class="red"></i>Entwurf</span>
  282.                                 </div>
  283.                             </section>
  284.                             <i class="chevron-arrow-down"></i>
  285.                         </div>
  286.                         <div>
  287.                             <label>Sortieren</label>
  288.                             <section>
  289.                                 <div>
  290.                                     <span>Neueste</span>
  291.                                 </div>
  292.                             </section>
  293.                             <i class="chevron-arrow-down"></i>
  294.                         </div>
  295.                         <div>
  296.                             <label>Sprache</label>
  297.                             <section>
  298.                                 <div>
  299.                                     <span><img src="/static/img/de.svg" height="16" />DE</span>
  300.                                 </div>
  301.                             </section>
  302.                             <i class="chevron-arrow-down"></i>
  303.                         </div>
  304.                     </section>
  305.                 </section>
  306.                 {% if pagination %}
  307.                 <section class="catalog">
  308.                     <div>
  309.                         <ul>
  310.                             {% for product in pagination %}
  311.                             
  312.                             <li>
  313.                                 <div class="select-col">
  314.                                     <input type="checkbox">
  315.                                 </div>
  316.                                 <div class="photo">
  317.                                     {% if product.mainimage %}
  318.                                         <img src="{{ product.mainimage.thumbnail('product_listing') }}" alt="{{ product.name_de }}">
  319.                                     {% endif %}
  320.                                 </div>
  321.                                 <div class="infos">
  322.                                     <label>{{product.sku}}</label>
  323.                                     <h3>{{product.name_de}}</h3>
  324.                                     {% set creationdate = product.creationdate|date('U') %} 
  325.                                     <span>Erstellt: {{creationdate|date('d.m.Y - H:i')}}</span>
  326.                                     {% set modificationdate = product.modificationdate|date('U') %}
  327.                                     <span>Zuletzt bearbeitet:{{modificationdate|date('d.m.Y - H:i')}}</span>
  328.                                 </div>
  329.                                 <div class="controls">
  330.                                     <div class="status">
  331.                                         <section>
  332.                                             <div>
  333.                                                 <span> <i class="red"></i>Entwurf</span>
  334.                                             </div>
  335.                                         </section>
  336.                                         <i class="chevron-arrow-down"></i>
  337.                                     </div>
  338.                                     <div class="edit">
  339.                                         <div class="remabutton">
  340.                                             <a href="{{ path('product_detail', { 'id': product.id }) }}" style="padding-left:0px;">
  341.                                                 Bearbeiten
  342.                                                 <img src="/static/img/arrow-ic.svg" />
  343.                                             </a>
  344.                                         </div>
  345.                                     </div>
  346.                                     <div class="delete">
  347.                                         <a href="#">
  348.                                             <img src="/static/img/delete.svg" />
  349.                                             Löschung beantragen
  350.                                         </a>
  351.                                     </div>
  352.                                 </div>
  353.                             </li>  
  354.                             {% endfor %}                          
  355.                         </ul>
  356.                     </div>
  357.                 </section>
  358.                 {% endif %}
  359.                 <section class="priceinfo">
  360.                     Alle Preise sind inkl. MwSt ausgewiesen.
  361.                 </section>
  362.                 <section class="pagination">
  363.     <ul>
  364.         {% if pagination.previous is defined %}
  365.             <li><a href="{{ path(app.request.get('_route'), app.request.query.all|merge({'page': pagination.previous})) }}">&laquo; Previous</a></li>
  366.         {% endif %}
  367.         {% for page in pagination.paginationData.pagesInRange %}
  368.             <li>
  369.                 <a {% if page == pagination.currentPageNumber %} class="active"{% endif %} href="{{ path(app.request.get('_route'), app.request.query.all|merge({'page': page})) }}">{{ page }}</a>
  370.             </li>
  371.         {% endfor %}
  372.         {% if pagination.next is defined %}
  373.             <li><a href="{{ path(app.request.get('_route'), app.request.query.all|merge({'page': pagination.next})) }}">Next &raquo;</a></li>
  374.         {% endif %}
  375.     </ul>
  376. </section>
  377.                  
  378.             </section>
  379.         </article>
  380.     </section>
  381. </div>
  382. <script>
  383.         document.addEventListener('DOMContentLoaded', function() {
  384.             document.getElementById('search-link').addEventListener('click', function(event) {
  385.                 event.preventDefault();
  386.                 const query = document.getElementById('search-input').value;
  387.                 const url = new URL(window.location.href);
  388.                 url.searchParams.set('q', query);
  389.                 window.location.href = url.toString();
  390.             });
  391.         });
  392. </script>
  393. {% endblock %}