templates/content/editable_roundup.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3.     <div id="main-content" class="main-content" >
  4.         {{ include('includes/content-headline.html.twig') }}
  5.         <div class="lead">
  6.             {{ pimcore_wysiwyg('lead') }}
  7.         </div>
  8.         {% if editmode %}
  9.             <style type="text/css">
  10.                 .alert {
  11.                     margin-top: 60px;
  12.                 }
  13.             </style>
  14.             <div class="editable-roundup">
  15.                 <div class="alert alert-secondary">
  16.                     <h4>Checkbox</h4>
  17.                 </div>
  18.                 {{ pimcore_checkbox('myCheckbox') }}
  19.                 <div class="clearfix"></div>
  20.                 <div class="alert alert-secondary">
  21.                     <h4>Date</h4>
  22.                 </div>
  23.                 {{ pimcore_date('myDate') }}
  24.                 <div class="alert alert-secondary">
  25.                     <h4>Relation (Many-To-One)</h4>
  26.                 </div>
  27.                 {{ pimcore_relation("myRelation") }}
  28.                 <div class="alert alert-secondary">
  29.                     <h4>Relation (Many-To-Many)</h4>
  30.                 </div>
  31.                 {{ pimcore_relations("myRelations") }}
  32.                 <div class="alert alert-secondary">
  33.                     <h4>Image</h4>
  34.                 </div>
  35.                 {{ pimcore_image('myImage') }}
  36.                 <div class="alert alert-secondary">
  37.                     <h4>Input</h4>
  38.                 </div>
  39.                 {{ pimcore_input('myInput') }}
  40.                 <div class="alert alert-secondary">
  41.                     <h4>Link</h4>
  42.                 </div>
  43.                 {{ pimcore_link('myLink') }}
  44.                 <div class="alert alert-secondary">
  45.                     <h4>Multi-Select</h4>
  46.                 </div>
  47.                 {{ pimcore_multiselect('myMultiselect', {
  48.                     width: 200,
  49.                     height: 100,
  50.                     store: [
  51.                         ["cars", "Cars"],
  52.                         ["motorcycles", "Motorcycles"],
  53.                         ["accessories", "Accessories"]
  54.                     ]
  55.                 }) }}
  56.                 <div class="alert alert-secondary">
  57.                     <h4>Numeric</h4>
  58.                 </div>
  59.                 {{ pimcore_numeric('myNumeric') }}
  60.                 <div class="alert alert-secondary">
  61.                     <h4>Embed</h4>
  62.                 </div>
  63.                 {{ pimcore_embed("myWidgets") }}
  64.                 <div class="alert alert-secondary">
  65.                     <h4>Renderlet (drop an asset folder)</h4>
  66.                 </div>
  67.                 {{ pimcore_renderlet('myRenderlet', {
  68.                     controller: 'App\\Controller\\DefaultController::galleryRenderletAction'
  69.                 }) }}
  70.                 <div class="alert alert-secondary">
  71.                     <h4>Select</h4>
  72.                 </div>
  73.                 {{ pimcore_select('mySelect', {
  74.                     store: [
  75.                         ['one-month', 'One month'],
  76.                         ['three-months', 'Three months'],
  77.                         ['unlimited', 'Unlimited']
  78.                     ]
  79.                 }) }}
  80.                 <div class="alert alert-secondary">
  81.                     <h4>Snippet</h4>
  82.                     <p>drop a document snippet here</p>
  83.                 </div>
  84.                 {{ pimcore_snippet('mySnippet') }}
  85.                 <div class="alert alert-secondary">
  86.                     <h4>Table</h4>
  87.                     <p>of course you can create tables in the wysiwyg too</p>
  88.                 </div>
  89.                 {{ pimcore_table('tableName', {
  90.                     width: 700,
  91.                     height: 400,
  92.                     defaults: {
  93.                         cols: 6,
  94.                         rows: 10,
  95.                         data: [
  96.                             ["Value 1", "Value 2", "Value 3"],
  97.                             ["this", "is", "test"]
  98.                         ]
  99.                     }
  100.                 }) }}
  101.                 <div class="alert alert-secondary">
  102.                     <h4>Textarea</h4>
  103.                 </div>
  104.                 {{ pimcore_textarea('myTextarea') }}
  105.                 <div class="alert alert-secondary">
  106.                     <h4>Video</h4>
  107.                 </div>
  108.                 {{ pimcore_video('myVideo', {
  109.                     attributes: {
  110.                         class: 'video-js vjs-default-skin vjs-big-play-centered',
  111.                         'data-setup': '{}'
  112.                     },
  113.                     thumbnail: 'content',
  114.                     height: 380
  115.                 }) }}
  116.                 <div class="alert alert-secondary">
  117.                     <h4>WYSIWYG</h4>
  118.                 </div>
  119.                 {{ pimcore_wysiwyg('myWysiwyg') }}
  120.                 <div class="alert alert-secondary">
  121.                     <h4>PDF</h4>
  122.                 </div>
  123.                 {{ pimcore_pdf("myPdf", {"width": 640, height: 100}) }}
  124.                 <div class="alert alert-secondary">
  125.                     <h4>EDITABLE DIALOG BOX</h4>
  126.                     <p>Configured on the Image w. metadata brick class "App\Document\Areabrick\ImageMetadata". Click on the edit button(pencil) for editable box:</p>
  127.                 </div>
  128.                 {{ pimcore_area('content', { 'type' : 'image-metadata'}) }}
  129.             </div>
  130.         {% endif %}
  131.     </div>
  132. {% endblock %}