mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Use symfonys included bootstrap 5 forms styling
This commit is contained in:
parent
29fb59c76e
commit
017170e2d6
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
twig:
|
twig:
|
||||||
default_path: '%kernel.project_dir%/templates'
|
default_path: '%kernel.project_dir%/templates'
|
||||||
form_themes: ['bootstrap_4_horizontal_layout.html.twig', 'Form/extendedBootstrap4_layout.html.twig', 'Form/permissionLayout.html.twig' ]
|
form_themes: ['bootstrap_5_horizontal_layout.html.twig', 'Form/extendedBootstrap4_layout.html.twig', 'Form/permissionLayout.html.twig' ]
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
'%kernel.project_dir%/assets/css': css
|
'%kernel.project_dir%/assets/css': css
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
{% extends 'bootstrap_4_horizontal_layout.html.twig' %}
|
{% extends 'bootstrap_5_horizontal_layout.html.twig' %}
|
||||||
|
|
||||||
|
{# Make form rows smaller #}
|
||||||
|
{% block form_row -%}
|
||||||
|
{%- set row_attr = row_attr|merge({"class": "mb-2"}) -%}
|
||||||
|
{{- parent() -}}
|
||||||
|
{%- endblock form_row %}
|
||||||
|
|
||||||
{% block file_widget -%}
|
{% block file_widget -%}
|
||||||
{%- set type = type|default('file') -%}
|
{%- set type = type|default('file') -%}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue