Skip to content
Snippets Groups Projects
Commit 01efe810 authored by Michael Fanini's avatar Michael Fanini
Browse files

Issue #3506437 by g4mbini: [4.0.0-beta2] Lint templates folder

parent cd947f64
Branches 3.2.x
No related tags found
1 merge request!81Issue #3506437 by g4mbini: [4.0.0-beta2] Lint templates folder
......@@ -25,5 +25,5 @@
{{ include('ui_suite_daisyui:button', {
url: item.url.toString(),
label: item.title,
}, with_context = false) }}
}, with_context: false) }}
{% endfor %}
......@@ -25,6 +25,6 @@
{{ include('ui_suite_daisyui:menu', {
items: items,
variant: 'horizontal__md',
collapsible: 'closed'
}, with_context = false) }}
collapsible: 'closed',
}, with_context: false) }}
{% endif %}
......@@ -11,6 +11,6 @@
#}
{% if breadcrumb %}
{{ include('ui_suite_daisyui:breadcrumbs', {
items: breadcrumb
}, with_context = false) }}
items: breadcrumb,
}, with_context: false) }}
{% endif %}
......@@ -20,5 +20,5 @@
{{ include('ui_suite_daisyui:tab', {
attributes: attributes,
active: is_active|default(false),
link: link
}, with_context = false) }}
link: link,
}, with_context: false) }}
......@@ -18,14 +18,14 @@
{{ include('ui_suite_daisyui:tabs', {
variant: 'lifted',
items: primary,
attributes: attributes.addClass('pb-3')
}, with_context = false) }}
attributes: attributes.addClass('pb-3'),
}, with_context: false) }}
{% endif %}
{% if secondary %}
<h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
{{ include('ui_suite_daisyui:tabs', {
variant: 'bordered',
items: secondary,
attributes: attributes.addClass('pb-3')
}, with_context = false) }}
attributes: attributes.addClass('pb-3'),
}, with_context: false) }}
{% endif %}
......@@ -50,8 +50,8 @@
{{ include('ui_suite_daisyui:navbar', {
start: page.navbar_start,
center: page.navbar_center,
end: page.navbar_end
}, with_context = false) }}
end: page.navbar_end,
}, with_context: false) }}
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
<main role="main">
......@@ -59,17 +59,17 @@
{{ include('ui_suite_daisyui:grid_2_regions', {
col_first: page.sidebar,
col_second: page.content,
col_span: ["col-span-3", "col-span-9"],
col_span_lg: ["lg:col-span-3", "lg:col-span-9"],
col_span_md: ["md:col-span-4", "md:col-span-8"],
col_span_sm: ["sm:col-span-12", "sm:col-span-12"],
}, with_context = false) }}
col_span: ['col-span-3', 'col-span-9'],
col_span_lg: ['lg:col-span-3', 'lg:col-span-9'],
col_span_md: ['md:col-span-4', 'md:col-span-8'],
col_span_sm: ['sm:col-span-12', 'sm:col-span-12'],
}, with_context: false) }}
{% else %}
{{ include('ui_suite_daisyui:grid_1_region', {
col_first: page.content,
grid_cols: "grid-cols-12",
col_span: "col-span-12",
}, with_context = false) }}
grid_cols: 'grid-cols-12',
col_span: 'col-span-12',
}, with_context: false) }}
{% endif %}
</main>
......
......@@ -35,6 +35,6 @@
#}
{% if items %}
{{ include('ui_suite_daisyui:pagination', {
items: items
}, with_context = false) }}
items: items,
}, with_context: false) }}
{% endif %}
......@@ -37,8 +37,8 @@
#}
{{ include('ui_suite_daisyui:alert', {
variant: variant,
message: message
}, with_context = false) }}
message: message,
}, with_context: false) }}
{% endfor %}
{% endfor %}
</div>
......@@ -7,7 +7,7 @@
{% if groups is not empty %}
<div class="grid grid-cols-12">
<div class="col-span-3">
{{ include('ui-patterns-overview-quicklinks.html.twig', {groups: groups}, with_context = false) }}
{{ include('ui-patterns-overview-quicklinks.html.twig', {groups: groups}, with_context: false) }}
</div>
<div class="col-span-9">
{% for components in groups %}
......@@ -17,11 +17,11 @@
<a href="{{ url('ui_patterns_library.single', {provider: component.provider, machineName: component.machineName}) }}"
class="component__link link">{{ component.name }}</a>
</h2>
{{ include('ui-patterns-component-metadata.html.twig', {component: component}, with_context = false) }}
{{ include('ui-patterns-component-table.html.twig', {component: component}, with_context = false) }}
{{ include('ui-patterns-component-metadata.html.twig', {component: component}, with_context: false) }}
{{ include('ui-patterns-component-table.html.twig', {component: component}, with_context: false) }}
{% if component.stories %}
<div>
{{ include('ui-patterns-stories-compact.html.twig', {component: component}, with_context = false) }}
{{ include('ui-patterns-stories-compact.html.twig', {component: component}, with_context: false) }}
</div>
{% endif %}
{% endfor %}
......
......@@ -26,4 +26,4 @@
{% if variant.description %}<p class="ui_patterns_variant__description my-4">{{ variant.description }}</p>{% endif %}
{{ component_story(component_id, story_id, {}, {variant: variant_id}, true) }}
</div>
{% endmacro %}
\ No newline at end of file
{% endmacro %}
......@@ -15,6 +15,6 @@
#}
{% if items %}
{{ include('ui_suite_daisyui:pagination', {
items: items
}, with_context = false) }}
items: items,
}, with_context: false) }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment