templates/recipe/detail.html.twig line 1

Open in your IDE?
  1. {#
  2. project: Pimcore - Schutzverband Nuernberg Rostbratwuerste
  3. User: erikb
  4. Year: 2022
  5. #}
  6. {% extends 'layouts/default.html.twig' %}
  7. {% block content %}
  8.     {% include 'navigation/breadcrumb.html.twig' %}
  9.     {%
  10.         include 'navigation/prev-next.html.twig' with {
  11.             'overview': overview|default(null),
  12.             'prev': prev|default(null),
  13.             'next': next|default(null)
  14.         }
  15.     %}
  16.     <div class="section section--content">
  17.         <div class="grid grid--t100 grid--100-10">
  18.             <div class="grid__container">
  19.                 <div class="grid__column" data-columns="10">
  20.                     {%
  21.                         include 'includes/areabrick.html.twig' with {
  22.                             'id': 'top',
  23.                             'controlsAlign': 'top',
  24.                             'allowed': ['image', 'imagegrid', 'gallery'],
  25.                             'columns': 10
  26.                         }
  27.                     %}
  28.                 </div>
  29.             </div>
  30.         </div>
  31.     </div>
  32.     <div class="section section--content section--printable">
  33.         <div class="grid grid--t50 grid--50-4-6">
  34.             <div class="grid__container">
  35.                 <div class="grid__column" data-columns="4">
  36.                     <div class="area buttons buttons--vertical">
  37.                         <div class="button button--icon button--serif button--multiline button--fw button--grey-red button--static">
  38.                             <div class="button__icon">
  39.                                 {{ get_svg_inline('watch') }}
  40.                             </div>
  41.                             <div class="button__label">
  42.                                 <span>{{ 'content.block.recipe-preparation'|trans }}</span>
  43.                                 <span>{{ pimcore_input('recipe-preparation', { placeholder: 'Enter text'}) }}</span>
  44.                             </div>
  45.                         </div>
  46.                         <div class="button button--icon button--serif button--multiline button--fw button--grey-red button--static">
  47.                             <div class="button__icon">
  48.                                 {{ get_svg_inline('persons') }}
  49.                             </div>
  50.                             <div class="button__label">
  51.                                 <span>{{ 'content.block.recipe-amount'|trans }}</span>
  52.                                 <span>{{ pimcore_input('recipe-amount', { placeholder: 'Enter text'}) }}</span>
  53.                             </div>
  54.                         </div>
  55.                     </div>
  56.                     <div class="area ingredients-list">
  57.                         <div class="ingredients-list__title">
  58.                             <h3 class="headline headline--content-sans headline--line-2">{{ 'content.block.ingredients-title'|trans }}</h3>
  59.                         </div>
  60.                         <div class="ingredients-list__listing">
  61.                             {% for i in pimcore_block('listing').iterator %}
  62.                             <div class="ingredients-list__group">
  63.                                 <h4 class="ingredients-list__subtitle">{{ pimcore_input('group', { placeholder: 'Enter text'}) }}</h4>
  64.                                 <ul class="ingredients-list__ingredients">
  65.                                     {% for x in pimcore_block('item').iterator %}
  66.                                     <li class="ingredients-list__ingredient">{{ pimcore_textarea('ingredient', { placeholder: 'Enter text'}) }}</li>
  67.                                     {% endfor %}
  68.                                 </ul>
  69.                             </div>
  70.                             {% endfor %}
  71.                         </div>
  72.                     </div>
  73.                     <div class="area buttons">
  74.                         <a href="#" class="button button--grey-red button--serif button--italic">Share + </a>
  75.                         <!--<a href="#" class="button button--grey-red button--serif button--italic">Print</a>-->
  76.                     </div>
  77.                     {%
  78.                             include 'includes/areabrick.html.twig' with {
  79.                             'id': 'left',
  80.                             'controlsAlign': 'top',
  81.                             'allowed': areabricks_content_allowed
  82.                         }
  83.                     %}
  84.                 </div>
  85.                 <div class="grid__column" data-columns="6">
  86.                     {%
  87.                         include 'includes/areabrick.html.twig' with {
  88.                             'id': 'right',
  89.                             'controlsAlign': 'top',
  90.                             'allowed': areabricks_content_allowed
  91.                         }
  92.                     %}
  93.                 </div>
  94.             </div>
  95.         </div>
  96.     </div>
  97.     {% include 'includes/areabrick.html.twig' with {'id': 'sections', 'controlsAlign': 'top' } %}
  98.     {%
  99.         include 'navigation/prev-next.html.twig' with {
  100.             'overview': overview|default(null),
  101.             'prev': prev|default(null),
  102.             'next': next|default(null),
  103.             'bottom': true
  104.         }
  105.     %}
  106. {% endblock content %}