From af4dbaa570e04e966c6952f399dc426a527d7d45 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 14 May 2021 17:16:53 +0200 Subject: [PATCH] backports murph-skeleton --- assets/css/admin.scss | 7 +++++++ core/Command/UserCreateCommand.php | 8 +++++++- .../Resources/views/form/bootstrap_4_form_theme.html.twig | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/assets/css/admin.scss b/assets/css/admin.scss index 41dad08..e6af956 100644 --- a/assets/css/admin.scss +++ b/assets/css/admin.scss @@ -258,6 +258,13 @@ th { } } +.bg-tiles { + background-color: #c1c1c1; + background-image: linear-gradient(45deg, #646464 25%, transparent 25%, transparent 75%, #646464 75%), linear-gradient(45deg, #646464 25%, transparent 25%, transparent 75%, #646464 75%); + background-size: 20px 20px; + background-position: 0 0, 10px 10px; +} + .tab-form { padding: 15px; } diff --git a/core/Command/UserCreateCommand.php b/core/Command/UserCreateCommand.php index 5715663..2248210 100644 --- a/core/Command/UserCreateCommand.php +++ b/core/Command/UserCreateCommand.php @@ -42,7 +42,13 @@ class UserCreateCommand extends Command $emailQuestion = new Question('E-mail: '); $emailQuestion->setValidator(function ($value) { - return !empty($value); + if (empty($value)) { + throw new \RuntimeException( + 'The email must not be empty.' + ); + } + + return $value; }); $passwordQuestion = new Question('Password (leave empty to generate a random password): '); diff --git a/core/Resources/views/form/bootstrap_4_form_theme.html.twig b/core/Resources/views/form/bootstrap_4_form_theme.html.twig index d309a9a..8f05398 100644 --- a/core/Resources/views/form/bootstrap_4_form_theme.html.twig +++ b/core/Resources/views/form/bootstrap_4_form_theme.html.twig @@ -6,9 +6,9 @@ {% set value = form.vars.data %} {% if value %} - {% if value and value.extension in ['jpeg', 'jpg', 'gif', 'png'] %} + {% if value and value.extension in ['jpeg', 'jpg', 'gif', 'png', 'svg'] %}
-
+