diff --git a/src/core/DependencyInjection/Configuration.php b/src/core/DependencyInjection/Configuration.php index e007c9c..86ef226 100644 --- a/src/core/DependencyInjection/Configuration.php +++ b/src/core/DependencyInjection/Configuration.php @@ -51,12 +51,10 @@ class Configuration implements ConfigurationInterface ->scalarNode('name') ->defaultValue('Murph') ->isRequired() - ->cannotBeEmpty() ->end() ->scalarNode('logo') ->defaultValue('build/images/core/logo.svg') ->isRequired() - ->cannotBeEmpty() ->end() ->arrayNode('controllers') ->prototype('array') diff --git a/src/core/Resources/views/account/admin/edit.html.twig b/src/core/Resources/views/account/admin/edit.html.twig index fca56d1..2de0219 100644 --- a/src/core/Resources/views/account/admin/edit.html.twig +++ b/src/core/Resources/views/account/admin/edit.html.twig @@ -2,7 +2,7 @@ {% import _self as macros %} -{% block title %}{{ 'My account'|trans }} - {{ parent() }}{% endblock %} +{% block title %}{{ 'My account'|trans }} {{ parent() ? ('- ' ~ parent()) : '' }}{% endblock %} {% block body %}
diff --git a/src/core/Resources/views/admin/crud/edit.html.twig b/src/core/Resources/views/admin/crud/edit.html.twig index 027b699..72372a8 100644 --- a/src/core/Resources/views/admin/crud/edit.html.twig +++ b/src/core/Resources/views/admin/crud/edit.html.twig @@ -4,7 +4,7 @@ {% block body_class %}has-form{% endblock %} -{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} - {{ parent() }}{% endblock %} +{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} {{ parent() ? ('- ' ~ parent()) : '' }}{% endblock %} {% block body %} {% block header %} diff --git a/src/core/Resources/views/admin/crud/index.html.twig b/src/core/Resources/views/admin/crud/index.html.twig index 7a588cc..34e5eaf 100644 --- a/src/core/Resources/views/admin/crud/index.html.twig +++ b/src/core/Resources/views/admin/crud/index.html.twig @@ -2,7 +2,7 @@ {% set context = context ?? 'index' %} -{% block title %}{{ configuration.pageTitle(context)|trans }} - {{ parent() }}{% endblock %} +{% block title %}{{ configuration.pageTitle(context)|trans }} {{ parent() ? ('- ' ~ parent()) : '' }}{% endblock %} {% block body %} {% block header %} diff --git a/src/core/Resources/views/admin/crud/new.html.twig b/src/core/Resources/views/admin/crud/new.html.twig index f3b8cfe..1936986 100644 --- a/src/core/Resources/views/admin/crud/new.html.twig +++ b/src/core/Resources/views/admin/crud/new.html.twig @@ -4,7 +4,7 @@ {% block body_class %}has-form{% endblock %} -{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} - {{ parent() }}{% endblock %} +{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} {{ parent() ? ('- ' ~ parent()) : '' }}{% endblock %} {% block body %} {% block header %} diff --git a/src/core/Resources/views/admin/crud/show.html.twig b/src/core/Resources/views/admin/crud/show.html.twig index 365653e..2cefa56 100644 --- a/src/core/Resources/views/admin/crud/show.html.twig +++ b/src/core/Resources/views/admin/crud/show.html.twig @@ -2,7 +2,7 @@ {% set context = context ?? 'show' %} -{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} - {{ parent() }}{% endblock %} +{% block title %}{{ configuration.pageTitle(context)|trans|build_string(entity) }} {{ parent() ? ('- ' ~ parent()) : '' }}{% endblock %} {% block body %} {% block header %} diff --git a/src/core/Resources/views/admin/layout.html.twig b/src/core/Resources/views/admin/layout.html.twig index ffd170c..f6195ed 100644 --- a/src/core/Resources/views/admin/layout.html.twig +++ b/src/core/Resources/views/admin/layout.html.twig @@ -15,7 +15,9 @@