templates/location/detail-restaurant.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.     <div class="section section--content">
  10.         <div class="grid grid--t100 grid--100-12">
  11.             <div class="grid__container">
  12.                 <div class="grid__column" data-columns="12">
  13.                     {%
  14.                         include 'includes/areabrick.html.twig' with {
  15.                             'id': 'top',
  16.                             'controlsAlign': 'top',
  17.                             'allowed': ['image', 'imagegrid', 'gallery']
  18.                         }
  19.                     %}
  20.                 </div>
  21.             </div>
  22.         </div>
  23.     </div>
  24.     <div class="section section--content section--printable">
  25.         <div class="grid grid--t50 grid--50-4-6">
  26.             <div class="grid__container">
  27.                 <div class="grid__column" data-columns="4">
  28.                     {%
  29.                         include 'includes/areabrick.html.twig' with {
  30.                             'id': 'left-top',
  31.                             'controlsAlign': 'top',
  32.                             'allowed': areabricks_content_allowed
  33.                         }
  34.                     %}
  35.                     {% if editmode %}
  36.                     <div class="admin-container admin-container--limited-width admin-container--content">
  37.                         <div class="admin-container__section">
  38.                             <span class="admin-container__title">{{ 'admin.restaurant.object.location-title'|trans({}, 'admin') }}</span>
  39.                         </div>
  40.                         <div class="admin-container__configurations">
  41.                             <div class="admin-config-item">
  42.                                 <span class="admin-config-item__label">{{ 'admin.restaurant.object.location'|trans({}, 'admin') }}:</span>
  43.                                 {{
  44.                                     pimcore_relation('location', {
  45.                                         'types': ['object'],
  46.                                         'subtypes': {
  47.                                             'object': ['object']
  48.                                         },
  49.                                         'classes': ['Location']
  50.                                     })
  51.                                 }}
  52.                             </div>
  53.                         </div>
  54.                     </div>
  55.                     {% endif %}
  56.                     <div class="area info-box">
  57.                         <div class="info-box__title">
  58.                             <h3 class="headline headline--content-sans headline--2">{{ 'content.block.location-title'|trans }}</h3>
  59.                         </div>
  60.                         <div class="info-box__listing">
  61.                             {% if address %}
  62.                             <div class="info-box__group">
  63.                                 <h4 class="info-box__subtitle">{{ 'content.block.info-box.address-title'|trans }}</h4>
  64.                                 <div class="info-box__content">
  65.                                     {% if address.title is not empty %}
  66.                                         {{ address.title }}<br>
  67.                                     {% endif %}
  68.                                     {% if address.title is not empty %}
  69.                                         {{ address.street }}<br>
  70.                                     {% endif %}
  71.                                     {% if address.title is not empty %}
  72.                                         {{ address.zipCity }}<br>
  73.                                     {% endif %}
  74.                                 </div>
  75.                             </div>
  76.                             {% endif %}
  77.                             {% if contact %}
  78.                             <div class="info-box__group">
  79.                                 <h4 class="info-box__subtitle">{{ 'content.block.info-box.contact-title'|trans }}</h4>
  80.                                 <div class="info-box__content">
  81.                                     {% if contact.phone is not empty %}
  82.                                         {{ 'prefix.tel'|trans }} <a href="tel://{{ contact.phoneRaw }}">{{ contact.phone }}</a><br>
  83.                                     {% endif %}
  84.                                     {% if contact.fax is not empty %}
  85.                                         {{ 'prefix.fax'|trans }} {{ contact.fax }}<br>
  86.                                     {% endif %}
  87.                                     {% if contact.mail is not empty %}
  88.                                         <a href="mailto:{{ contact.mail }}">{{ contact.mail }}</a><br>
  89.                                     {% endif %}
  90.                                     {% if contact.web is not empty %}
  91.                                         <a href="{{ contact.web }}" rel="noopener" target="_blank">{{ contact.web }}</a><br>
  92.                                     {% endif %}
  93.                                 </div>
  94.                             </div>
  95.                             {% endif %}
  96.                             <div class="ingredients-list__group">
  97.                                 <h4 class="info-box__subtitle">{{ 'content.block.info-box.openinghours-title'|trans }}</h4>
  98.                                 <div class="info-box__content">
  99.                                     {{ pimcore_textarea('opening-hours', { nl2br: true, placeholder: 'Enter opening hours' }) }}
  100.                                 </div>
  101.                             </div>
  102.                         </div>
  103.                     </div>
  104.                     {%
  105.                             include 'includes/areabrick.html.twig' with {
  106.                             'id': 'left',
  107.                             'controlsAlign': 'top',
  108.                             'allowed': areabricks_content_allowed
  109.                         }
  110.                     %}
  111.                 </div>
  112.                 <div class="grid__column" data-columns="6">
  113.                     {%
  114.                         include 'includes/areabrick.html.twig' with {
  115.                             'id': 'right',
  116.                             'controlsAlign': 'top',
  117.                             'allowed': areabricks_content_allowed
  118.                         }
  119.                     %}
  120.                 </div>
  121.             </div>
  122.         </div>
  123.     </div>
  124.     {% include 'includes/areabrick.html.twig' with {'id': 'sections', 'controlsAlign': 'top' } %}
  125. {% endblock content %}