templates/areas/section/view.html.twig line 1

Open in your IDE?
  1. {#
  2. project: Pimcore - Devicenow
  3. User: EBiermann
  4. Year: 2022
  5. #}
  6. {% if editmode %}
  7. <div class="admin-container admin-container--limited-width admin-container--section">
  8.     <div class="admin-container__section">
  9.         <span class="admin-container__title">{{ 'brick.section.title'|trans({}, 'admin') }}</span>
  10.     </div>
  11.     <div class="admin-container__configurations">
  12.         <div class="admin-config-item">
  13.             <span class="admin-config-item__label">{{ 'brick.section.option.no-margin-top'|trans({}, 'admin') }}:</span>
  14.             {{
  15.                 pimcore_checkbox('nmt', { 'reload': true })
  16.             }}
  17.             <br>
  18.             <span class="admin-config-item__label">{{ 'brick.section.option.no-margin-bottom'|trans({}, 'admin') }}:</span>
  19.             {{
  20.                 pimcore_checkbox('nmb', { 'reload': true })
  21.             }}
  22.         </div>
  23.         <div class="admin-config-item">
  24.             <span class="admin-config-item__label">{{ 'brick.section.option.jump-id'|trans({}, 'admin') }}:</span>
  25.             {{
  26.                 pimcore_input('jump-id', { 'reload': false })
  27.             }}
  28.             <br>
  29.             <span class="admin-config-item__label">{{ 'brick.section.option.bgc'|trans({}, 'admin') }}:</span>
  30.             {{
  31.                 pimcore_select('bgc', {
  32.                     'store': [
  33.                         ['', 'None'],
  34.                         ['section--background section--bgc-0', 'brick.general.value.bgc.0'|trans({}, 'admin')],
  35.                         ['section--background section--bgc-1', 'brick.general.value.bgc.1'|trans({}, 'admin')],
  36.                         ['section--background section--bgc-2', 'brick.general.value.bgc.2'|trans({}, 'admin')],
  37.                         ['section--background section--bgc-3', 'brick.general.value.bgc.3'|trans({}, 'admin')],
  38.                         ['section--background section--bgc-4', 'brick.general.value.bgc.4'|trans({}, 'admin')],
  39.                     ],
  40.                     'defaultValue': '',
  41.                     'reload': true
  42.                 })
  43.             }}
  44.         </div>
  45.     </div>
  46. </div>
  47. {% endif %}
  48. <div class="section section--content {{ cssClasses|join(' ') }}" id="{{ jumpid }}" data-bgc="{{ backgroundColorClass|default('') }}">
  49.     {%
  50.         include 'includes/areabrick.html.twig' with {
  51.             'id': id,
  52.             'controlsAlign': 'top',
  53.             'sectionIndex': info.index,
  54.             'allowed': allowed
  55.         }
  56.     %}
  57. </div>