瀏覽代碼

[Backend] Adaptation form setting

develop
Guillaume 3 年之前
父節點
當前提交
6f73936efe
共有 2 個檔案被更改,包括 3 行新增5 行删除
  1. +2
    -2
      Form/Setting/BaseSettingType.php
  2. +1
    -3
      Resources/views/admin/setting/form.html.twig

+ 2
- 2
Form/Setting/BaseSettingType.php 查看文件

@@ -15,8 +15,8 @@ use Symfony\Component\Form\Extension\Core\Type\TimeType;

abstract class BaseSettingType extends AbstractType
{
protected $em;
protected $settingDefinition;
protected EntityManagerInterface $em;
protected SiteSettingDefinitionInterface $settingDefinition;

public function __construct(
EntityManagerInterface $entityManager,

+ 1
- 3
Resources/views/admin/setting/form.html.twig 查看文件

@@ -44,9 +44,7 @@
{% endblock %}
{% endembed %}

{# {% for child in form.settings %}#}
{# {% do child.setRendered() %}#}
{# {% endfor %}#}
{% do form.settings.setRendered %}

{{ form_end(form) }}
{% endblock %}

Loading…
取消
儲存