From f7066549d1cdd0db7a1139f620a2cf6564dc7516 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Tue, 22 Jun 2021 23:00:14 +0200 Subject: [PATCH] Add validation errors --- resources/css/app.css | 1 + resources/css/layout.css | 3 +++ resources/js/components/Notification.vue | 33 ++++++++++++++++++++++++ resources/js/layouts/App.vue | 6 ++++- resources/js/views/member/Form.vue | 6 ++--- resources/lang/de/validation.php | 8 ++++++ 6 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 resources/css/layout.css create mode 100644 resources/js/components/Notification.vue diff --git a/resources/css/app.css b/resources/css/app.css index 12181874..a889f574 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -3,3 +3,4 @@ @import "tailwindcss/utilities"; @import "base"; @import "switch"; +@import "layout"; diff --git a/resources/css/layout.css b/resources/css/layout.css new file mode 100644 index 00000000..5ec154fe --- /dev/null +++ b/resources/css/layout.css @@ -0,0 +1,3 @@ +.has-contents > div { + display: contents; +} diff --git a/resources/js/components/Notification.vue b/resources/js/components/Notification.vue new file mode 100644 index 00000000..d7f4cdaf --- /dev/null +++ b/resources/js/components/Notification.vue @@ -0,0 +1,33 @@ + + + diff --git a/resources/js/layouts/App.vue b/resources/js/layouts/App.vue index 2e6e1cc3..8cd03114 100644 --- a/resources/js/layouts/App.vue +++ b/resources/js/layouts/App.vue @@ -1,6 +1,8 @@