|
1 | 1 | {% extends 'liveDemoBase.html.twig' %} |
2 | 2 |
|
3 | | -{% block code_block_left %} |
4 | | - {% component code_block with { filename: 'src/Twig/MealPlannerComponent.php', height: '300px' } %} |
5 | | - {% block content %} |
6 | | - {{- source('@src/Twig/MealPlannerComponent.php')|cleanup_php_file -}} |
7 | | - {% endblock %} |
8 | | - {% endcomponent %} |
9 | | -{% endblock %} |
10 | | - |
11 | | -{% block code_block_right %} |
12 | | - {% component code_block with { filename: 'templates/components/registration_form.html.twig', height: '300px' } %} |
13 | | - {% block content %} |
14 | | - {{- source('components/meal_planner.html.twig') -}} |
15 | | - {% endblock %} |
16 | | - {% endcomponent %} |
| 3 | +{% block code_block_full %} |
| 4 | +<div class="row mb-5"> |
| 5 | + <div class="terminal-code"> |
| 6 | + <ul class="nav nav-tabs"> |
| 7 | + <li class="nav-item" role="presentation"> |
| 8 | + <button class="nav-link active" data-bs-toggle="tab" data-bs-target="#demo_component" type="button" role="tab" aria-controls="demo_component" aria-selected="true">src/Twig/MealPlannerComponent.php</a> |
| 9 | + </li> |
| 10 | + <li class="nav-item" role="presentation"> |
| 11 | + <button class="nav-link" data-bs-toggle="tab" data-bs-target="#demo_template" type="button" role="tab" aria-controls="demo_template">templates/components/registration_form.html.twig</a> |
| 12 | + </li> |
| 13 | + <li class="nav-item" role="presentation"> |
| 14 | + <button class="nav-link" data-bs-toggle="tab" data-bs-target="#demo_form" type="button" role="tab" aria-controls="demo_form">src/Form/MealPlannerForm.php</a> |
| 15 | + </li> |
| 16 | + </ul> |
| 17 | + <div class="tab-content" id="code-tabs"> |
| 18 | + <div class="tab-pane show active" id="demo_component"> |
| 19 | + {% component code_block with { filename: 'src/Twig/MealPlannerComponent.php', showFilename: false, height: '300px' } %} |
| 20 | + {% block content %} |
| 21 | + {{- source('@src/Twig/MealPlannerComponent.php')|cleanup_php_file -}} |
| 22 | + {% endblock %} |
| 23 | + {% endcomponent %} |
| 24 | + </div> |
| 25 | + <div class="tab-pane" id="demo_template"> |
| 26 | + {% component code_block with { filename: 'templates/components/meal_planner.html.twig', showFilename: false, height: '300px' } %} |
| 27 | + {% block content %} |
| 28 | + {{- source('components/meal_planner.html.twig') -}} |
| 29 | + {% endblock %} |
| 30 | + {% endcomponent %} |
| 31 | + </div> |
| 32 | + <div class="tab-pane" id="demo_form"> |
| 33 | + {% component code_block with { filename: 'src/Form/MealPlannerForm.php', showFilename: false, height: '300px' } %} |
| 34 | + {% block content %} |
| 35 | + {{- source('@src/Form/MealPlannerForm.php')|cleanup_php_file -}} |
| 36 | + {% endblock %} |
| 37 | + {% endcomponent %} |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | +</div> |
17 | 42 | {% endblock %} |
18 | 43 |
|
19 | 44 | {% block demo_content %} |
|
0 commit comments