|
1 |
| -{% extends 'liveDemoBase.html.twig' %} |
| 1 | +{% extends 'liveDemoTabsBase.html.twig' %} |
2 | 2 |
|
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</button> |
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/meal_planner.html.twig</button> |
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</button> |
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> |
| 3 | +{% block demo_code_tabs %} |
| 4 | + <div class="tab-pane show active" id="demo_component"> |
| 5 | + {% component code_block with { filename: 'src/Twig/MealPlannerComponent.php', showFilename: false, height: '300px' } %} |
| 6 | + {% block content %} |
| 7 | + {{- source('@src/Twig/MealPlannerComponent.php')|cleanup_php_file -}} |
| 8 | + {% endblock %} |
| 9 | + {% endcomponent %} |
| 10 | + </div> |
| 11 | + <div class="tab-pane" id="demo_template"> |
| 12 | + {% component code_block with { filename: 'templates/components/meal_planner.html.twig', showFilename: false, height: '300px' } %} |
| 13 | + {% block content %} |
| 14 | + {{- source('components/meal_planner.html.twig') -}} |
| 15 | + {% endblock %} |
| 16 | + {% endcomponent %} |
| 17 | + </div> |
| 18 | + <div class="tab-pane" id="demo_form"> |
| 19 | + {% component code_block with { filename: 'src/Form/MealPlannerForm.php', showFilename: false, height: '300px' } %} |
| 20 | + {% block content %} |
| 21 | + {{- source('@src/Form/MealPlannerForm.php')|cleanup_php_file -}} |
| 22 | + {% endblock %} |
| 23 | + {% endcomponent %} |
40 | 24 | </div>
|
41 |
| -</div> |
42 | 25 | {% endblock %}
|
43 | 26 |
|
44 | 27 | {% block demo_content %}
|
|
0 commit comments