diff --git a/composer.lock b/composer.lock index 60808e0..87437bc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "c36eb8d383245ee20c916d26a93e4a35", + "content-hash": "87a4aec72e248761b399efb41f2dcfcf", "packages": [ { "name": "craue/formflow-bundle", @@ -3584,6 +3584,61 @@ "homepage": "https://symfony.com", "time": "2019-07-24T14:47:54+00:00" }, + { + "name": "twig/extensions", + "version": "v1.5.4", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig-extensions.git", + "reference": "57873c8b0c1be51caa47df2cdb824490beb16202" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig-extensions/zipball/57873c8b0c1be51caa47df2cdb824490beb16202", + "reference": "57873c8b0c1be51caa47df2cdb824490beb16202", + "shasum": "" + }, + "require": { + "twig/twig": "^1.27|^2.0" + }, + "require-dev": { + "symfony/phpunit-bridge": "^3.4", + "symfony/translation": "^2.7|^3.4" + }, + "suggest": { + "symfony/translation": "Allow the time_diff output to be translated" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_Extensions_": "lib/" + }, + "psr-4": { + "Twig\\Extensions\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Common additional features for Twig that do not directly belong in core", + "keywords": [ + "i18n", + "text" + ], + "time": "2018-12-05T18:34:18+00:00" + }, { "name": "twig/twig", "version": "v2.11.3", diff --git a/config/packages/twig_extensions.yaml b/config/packages/twig_extensions.yaml new file mode 100644 index 0000000..da780f5 --- /dev/null +++ b/config/packages/twig_extensions.yaml @@ -0,0 +1,11 @@ +services: + _defaults: + public: false + autowire: true + autoconfigure: true + + # Uncomment any lines below to activate that Twig extension + #Twig\Extensions\ArrayExtension: null + #Twig\Extensions\DateExtension: null + #Twig\Extensions\IntlExtension: null + #Twig\Extensions\TextExtension: null diff --git a/src/Form/ComposeType.php b/src/Form/ComposeType.php index 5794801..93ab715 100644 --- a/src/Form/ComposeType.php +++ b/src/Form/ComposeType.php @@ -43,9 +43,12 @@ class ComposeType extends AbstractType { $checkbox = [ 'required' => false, 'attr' => ['checked' => 'checked'], + 'label' => 'page.schedule.form.sensitive', + 'translation_domain' => 'fediplan' ]; }else { - $checkbox = ['required' => false]; + $checkbox = ['required' => false, 'label' => 'page.schedule.form.sensitive', + 'translation_domain' => 'fediplan']; } $builder->add('content_warning', TextType::class, [