templates/areas/apk-snippet/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="uk-container apk-container-1200 uk-margin-medium">
  3.     <h2 class="uk-h2">Block lié à un snippet</h2>
  4.     <div class="uk-alert-primary" uk-alert>
  5.         
  6.         <div>Espacement en haut du block</div>
  7.         {{ pimcore_select("margin-top", {
  8.             "store" : [
  9.                 ['', 'Aucun'],
  10.                 ['uk-margin-small-top', 'Petit'],
  11.                 ['uk-margin-medium-top', 'Moyen'],
  12.                 ['uk-margin-large-top', 'Grand'],
  13.                 ['uk-margin-xlarge-top', 'Très grand'],
  14.             ],
  15.             "defaultValue" : ""
  16.         }) }}
  17.         <div>Espacement en bas du block</div>
  18.         {{ pimcore_select("margin-bottom", {
  19.             "store" : [
  20.                 ['', 'Aucun'],
  21.                 ['uk-margin-small-bottom', 'Petit'],
  22.                 ['uk-margin-medium-bottom', 'Moyen'],
  23.                 ['uk-margin-large-bottom', 'Grand'],
  24.                 ['uk-margin-xlarge-bottom', 'Très grand'],
  25.             ],
  26.             "defaultValue" : ""
  27.         }) }}
  28.     </div>
  29.     {{ pimcore_snippet('snippet') }}    
  30. </div>
  31. {% else %}
  32. <div class="{{ pimcore_select("margin-top") }} {{ pimcore_select("margin-bottom") }}">
  33.     {{ pimcore_snippet('snippet') }}
  34. </div>
  35.     
  36. {% endif %}