baks-dev / field-tire
HTML轮胎字段包
v7.1.12
2024-09-15 23:09 UTC
Requires
- php: >=8.3
- baks-dev/core: ^7.1
Requires (Dev)
- roave/security-advisories: dev-latest
- dev-master
- v7.1.12
- v7.1.11
- v7.1.10
- v7.1.9
- v7.1.8
- v7.1.7
- v7.1.6
- v7.1.5
- v7.1.4
- v7.1.3
- v7.1.2
- 7.1.1
- 7.1.0
- v7.0.26
- v7.0.25
- v7.0.24
- v7.0.23
- v7.0.22
- v7.0.21
- v7.0.20
- v7.0.19
- v7.0.18
- v7.0.17
- v7.0.16
- v7.0.15
- v7.0.14
- v7.0.13
- v7.0.12
- v7.0.11
- v7.0.10
- v7.0.9
- v7.0.8
- v7.0.7
- v7.0.6
- v7.0.5
- v7.0.4
- v7.0.3
- v7.0.2
- v7.0.1
- 7.0.0
- v6.3.9
- v6.3.8
- v6.3.7
- v6.3.6
- v6.3.5
- v6.3.4
- v6.3.3
- v6.3.2
This package is auto-updated.
Last update: 2024-09-15 23:09:39 UTC
README
HTML轮胎字段包
安装
composer require baks-dev/field-tire
设置
要在下拉列表中显示字段,请将服务设置添加到配置文件中
config/packages/field.php
<?php use Symfony\Config\TwigConfig; return static function (TwigConfig $twig) { /** Шаблоны полей в форме */ $twig->formThemes([ '@field-tire-season/form.row.html.twig', '@field-tire-studs/form.row.html.twig', '@field-tire-cartype/form.row.html.twig', '@field-tire-euro/form.row.html.twig', ]); };
模板重写
模板在templates目录中以文本表示(content.html.twig)和模板表示(template.html.twig)的形式重写
轮胎直径
- /templates/field-tire/radius/content.html.twig
- /templates/field-tire/radius/template.html.twig
轮胎轮廓
- /templates/field-tire/profile/content.html.twig
- /templates/field-tire/profile/template.html.twig
轮胎宽度
- /templates/field-tire/width/content.html.twig
- /templates/field-tire/width/template.html.twig
季节性
- /templates/field-tire/season/content.html.twig
- /templates/field-tire/season/template.html.twig
钉子
- /templates/field-tire/studs/content.html.twig
- /templates/field-tire/studs/template.html.twig
车型
- /templates/field-tire/cartype/content.html.twig
- /templates/field-tire/cartype/template.html.twig
欧洲标签
- /templates/field-tire/euro/content.html.twig
- /templates/field-tire/euro/template.html.twig
许可证 
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。