Procházet zdrojové kódy

thematic facultatif

develop
Charly před 3 roky
rodič
revize
6a9912797d
4 změnil soubory, kde provedl 25 přidání a 13 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

Načítá se…
Zrušit
Uložit