templates/location/detail-member.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-10 grid--hc">
  11.             <div class="grid__container">
  12.                 <div class="grid__column" data-columns="10">
  13.                     {%
  14.                         include 'includes/areabrick.html.twig' with {
  15.                             'id': 'top',
  16.                             'controlsAlign': 'top',
  17.                             'allowed': ['wysiwyg']
  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.member.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.member.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.                             {% if editmode or not pimcore_textarea('opening-hours').isEmpty() %}
  97.                             <div class="ingredients-list__group">
  98.                                 <h4 class="info-box__subtitle">{{ 'content.block.info-box.openinghours-title'|trans }}</h4>
  99.                                 <div class="info-box__content">
  100.                                     {{ pimcore_textarea('opening-hours', { nl2br: true, placeholder: 'Enter opening hours' }) }}
  101.                                 </div>
  102.                             </div>
  103.                             {% endif %}
  104.                         </div>
  105.                     </div>
  106.                     {%
  107.                             include 'includes/areabrick.html.twig' with {
  108.                             'id': 'left',
  109.                             'controlsAlign': 'top',
  110.                             'allowed': areabricks_content_allowed
  111.                         }
  112.                     %}
  113.                 </div>
  114.                 <div class="grid__column" data-columns="6">
  115.                     {%
  116.                         include 'includes/areabrick.html.twig' with {
  117.                             'id': 'right',
  118.                             'controlsAlign': 'top',
  119.                             'allowed': areabricks_content_allowed
  120.                         }
  121.                     %}
  122.                 </div>
  123.             </div>
  124.         </div>
  125.     </div>
  126.     {% include 'includes/areabrick.html.twig' with {'id': 'sections', 'controlsAlign': 'top' } %}
  127. {% endblock content %}