ソースを参照

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
]
);
}

読み込み中…
キャンセル
保存