浏览代码

thematic facultatif

develop
Charly 3 年前
父节点
当前提交
6a9912797d
共有 4 个文件被更改,包括 25 次插入13 次删除
  1. +6
    -3
      Form/Dream/DreamType.php
  2. +6
    -4
      Form/ProjectBoost/ProjectBoostType.php
  3. +7
    -3
      Form/ProjectInspiring/ProjectInspiringType.php
  4. +6
    -3
      Form/Revolt/RevoltType.php

+ 6
- 3
Form/Dream/DreamType.php 查看文件

@@ -40,8 +40,9 @@ class DreamType extends AbstractType
new NotBlank(),
],
]
)
->add(
);
if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,6 +57,7 @@ class DreamType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -83,7 +85,8 @@ class DreamType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(DreamInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true
]
);
}

+ 6
- 4
Form/ProjectBoost/ProjectBoostType.php 查看文件

@@ -40,8 +40,9 @@ class ProjectBoostType extends AbstractType
new NotBlank(),
],
]
)
->add(
);
if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,7 +57,7 @@ class ProjectBoostType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -84,7 +85,8 @@ class ProjectBoostType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(ProjectBoostInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true,
]
);
}

+ 7
- 3
Form/ProjectInspiring/ProjectInspiringType.php 查看文件

@@ -40,8 +40,10 @@ class ProjectInspiringType extends AbstractType
new NotBlank(),
],
]
)
->add(
);

if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,6 +58,7 @@ class ProjectInspiringType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -83,7 +86,8 @@ class ProjectInspiringType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(ProjectInspiringInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true
]
);
}

+ 6
- 3
Form/Revolt/RevoltType.php 查看文件

@@ -40,8 +40,9 @@ class RevoltType extends AbstractType
new NotBlank(),
],
]
)
->add(
);
if ($options['thematic'] == true) {
$builder->add(
'thematic',
EntityType::class,
[
@@ -56,6 +57,7 @@ class RevoltType extends AbstractType
]
]
);
}
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
@@ -84,7 +86,8 @@ class RevoltType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(RevoltInterface::class),
'context' => 'backend'
'context' => 'backend',
'thematic' => true
]
);
}

正在加载...
取消
保存