templates/digitalwandler/DocumentType/successStorieSnipped.html.twig line 1

Open in your IDE?
  1. {% set successStory = pimcore_relation('successStory').getElement() %}
  2. {% if editmode %}
  3. <!doctype html>
  4. <html lang="{{ app.request.locale }}">
  5. <head>
  6.     {% block stylesheets deferred %}
  7.     {{ encore_entry_link_tags('app') }}
  8.     {{ pimcore_head_link() }}
  9.     {% endblock %}
  10. </head>
  11. <body class="bg-black text-white font-sans{% if editmode %} editmode{% endif %}">
  12. <main role="main">
  13.     <div class="text-white bg-black main-content">
  14.         {% endif %}
  15.         {{ pimcore_image("header_image") }}
  16.         <div class="relative max-w-md px-4 mx-auto sm:px-6 lg:px-8 sm:max-w-3xl lg:max-w-7xl">
  17.             {% if editmode %}
  18.                 <span>Set SuccessStory to fill release date:</span>
  19.                 {{ pimcore_relation("successStory",{
  20.                     "types": ["object"],
  21.                     "classes": ["SuccessStories"]
  22.                 }) }}
  23.             {% endif %}
  24.             <span class="block py-4 mt-8">{{ successStory is empty ? "" : successStory.ReleaseDate|date("d.m.Y", "Europe/Berlin") }}</span>
  25.             <h1 class="pl-4 mb-8 -ml-6 text-3xl text-white border-l-8 sm:leading-none xl:text-4xl border-rs-red">
  26.                 <span class="md:block">{{ pimcore_input('headline') }}</span>
  27.             </h1>
  28.             <div class="grid grid-cols-1 text-white sm:grid-cols-12">
  29.                 <div class="col-span-12 mt-10">
  30.                     <h3 class="col-span-2 text-2xl font-bold text-white">
  31.                         <span class="md:block">{{ pimcore_input('subheadline', {placeholder: 'Projektüberblick zusammengefasst' }) }}</span>
  32.                     </h3>
  33.                 </div>
  34.                 <dl class="grid grid-cols-2 col-span-12 gap-4 mt-5 mr-2 sm:col-span-6">
  35.                     <div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
  36.                         <p class="text-lg">
  37.                             <span class="block w-6 h-6 mx-auto text-2xl heroicon heroicon-calander"></span>
  38.                             <span class="mb-1 font-bold leading-6">Projekt Entstehungsdatum</span><br>
  39.                             <span>{{ pimcore_input('project_year') }}</span>
  40.                         </p>
  41.                     </div>
  42.                     <div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
  43.                         <p class="text-lg">
  44.                             <svg class="block w-6 h-6 mx-auto text-white" width="24" height="24" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  45.                                 <path stroke="none" d="M0 0h24v24H0z" />
  46.                                 <path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10" />
  47.                                 <polyline points="1 4 1 10 7 10" />
  48.                                 <polyline points="12 7 12 12 15 15" />
  49.                             </svg>
  50.                             <span class="mb-1 font-bold leading-6">Projektdauer</span><br>
  51.                             <span>{{ pimcore_input('project_duration') }}</span>
  52.                         </p>
  53.                     </div>
  54.                     <div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
  55.                         <p class="text-lg">
  56.                             <span class="block w-6 h-6 mx-auto text-2xl heroicon heroicon-store"></span>
  57.                             <span class="mb-1 font-bold leading-6">Branche</span><br>
  58.                             <span>{{ pimcore_input('project_industry') }}</span>
  59.                         </p>
  60.                     </div>
  61.                     <div class="relative flex items-center justify-center p-2 text-center bg-rs-red">
  62.                         <p class="text-lg">
  63.                             <span class="block w-6 h-6 mx-auto text-2xl heroicon heroicon-calander"></span>
  64.                             <span class="mb-1 font-bold leading-6">Technologie-Einsatz</span><br>
  65.                             <span>{{ pimcore_input('project_technology_use') }}</span>
  66.                         </p>
  67.                     </div>
  68.                 </dl>
  69.                 <div></div>
  70.                 <div class="col-span-5">
  71.                     <p class="pl-2 mt-3 text-lg text-white sm:mt-5 sm:text-m lg:text-m xl:text-l">
  72.                         {{ pimcore_textarea('description') }}
  73.                     </p>
  74.                 </div>
  75.             </div>
  76.         </div>
  77.         {{ pimcore_areablock('default_snippet_template_content', toolbox_areablock_config('default_snippet_template_content')) }}
  78.         <div class="">
  79.             <div class="relative max-w-md px-4 py-10 mx-auto text-white bg-rs-red sm:px-6 lg:px-8 sm:max-w-3xl lg:max-w-7xl">
  80.                 <h3 class="text-2xl font-bold">
  81.                     <span class="md:block">Der Nutzen, den wir unseren Kunden verschafft haben</span>
  82.                 </h3>
  83.                 <dl class="mt-8 ">
  84.                     <dd class="flex text-lg text-white">
  85.                         <span class="text-2xl heroicon heroicon-check-circle"></span>
  86.                         <span class="w-full ml-3">{{ pimcore_input('use_one') }}</span>
  87.                     </dd>
  88.                     <dd class="flex text-lg text-white">
  89.                         <span class="text-2xl heroicon heroicon-check-circle"></span>
  90.                         <span class="w-full ml-3">{{ pimcore_input('use_two') }}</span>
  91.                     </dd>
  92.                     {% if editmode or pimcore_input("use_three") != "" %}
  93.                         <dd class="flex text-lg text-white">
  94.                             <span class="text-2xl heroicon heroicon-check-circle"></span>
  95.                             <span class="w-full ml-3">{{ pimcore_input('use_three') }}</span>
  96.                         </dd>
  97.                     {% endif %}
  98.                     {% for i in pimcore_block('usecasesBlock').iterator %}
  99.                         <dd class="flex text-lg text-white">
  100.                             <span class="text-2xl heroicon heroicon-check-circle"></span>
  101.                             <span class="w-full ml-3">{{ pimcore_input('use_x') }}</span>
  102.                         </dd>
  103.                     {% endfor %}
  104.                 </dl>
  105.             </div>
  106.         </div>
  107.         {{ pimcore_areablock('default_snippet_template_content_two', toolbox_areablock_config('default_snippet_template_content_tw')) }}
  108.         {% if editmode %}
  109.     </div>
  110. </main>
  111. {# output scripts added before #}
  112. {% block scripts deferred %}
  113. {{ encore_entry_script_tags('app') }}
  114. {{ pimcore_head_script() }}
  115. {% endblock %}
  116. </body>
  117. </html>
  118. {% endif %}