diff --git a/components/EditHelpBundle/bundle/Command/CreateContentTypeCommand.php b/components/EditHelpBundle/bundle/Command/CreateContentTypeCommand.php
index 8808b0fcd..4d93b3c8c 100644
--- a/components/EditHelpBundle/bundle/Command/CreateContentTypeCommand.php
+++ b/components/EditHelpBundle/bundle/Command/CreateContentTypeCommand.php
@@ -14,11 +14,11 @@
namespace Novactive\Bundle\NovaeZEditHelpBundle\Command;
-use eZ\Publish\API\Repository\Exceptions\ForbiddenException;
-use eZ\Publish\API\Repository\Exceptions\NotFoundException;
-use eZ\Publish\API\Repository\Exceptions\UnauthorizedException;
-use eZ\Publish\API\Repository\Repository;
-use eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroupCreateStruct;
+use Ibexa\Contracts\Core\Repository\Exceptions\ForbiddenException;
+use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException;
+use Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException;
+use Ibexa\Contracts\Core\Repository\Repository;
+use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeGroupCreateStruct;
use Novactive\Bundle\NovaeZEditHelpBundle\Services\FetchDocumentation;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -26,10 +26,7 @@
final class CreateContentTypeCommand extends Command
{
- /**
- * @var Repository
- */
- private $repository;
+ private Repository $repository;
/**
* @required
@@ -140,9 +137,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$contentTypeDraft->id
)
);
- } catch (UnauthorizedException $e) {
- $output->writeln(sprintf('
- {{ "content.field.non_editable"|trans|desc('Field type is not editable') }}
-
identifier: {{ identifier }}+ {% endblock %} + {% endembed %} - {% endblock %} + {# Déplacement du boutton juste après le label #} + + {% endfor %} +{% endblock %} diff --git a/components/EditHelpBundle/bundle/Resources/views/themes/admin/content/edit/tophelp.html.twig b/components/EditHelpBundle/bundle/Resources/views/themes/admin/content/edit/tophelp.html.twig index 2091707a2..0c083a6f6 100644 --- a/components/EditHelpBundle/bundle/Resources/views/themes/admin/content/edit/tophelp.html.twig +++ b/components/EditHelpBundle/bundle/Resources/views/themes/admin/content/edit/tophelp.html.twig @@ -1,59 +1,70 @@ {% trans_default_domain 'ezedithelp' %} {% if documentation is defined %} -
{{ "edithelp.alert"|trans }}:
-