From 5254c9500c9ab68044d39087b03689138041c12d Mon Sep 17 00:00:00 2001 From: tanthammar Date: Wed, 5 Aug 2020 19:44:36 +0200 Subject: [PATCH] form spinner blade component --- .../components/spinners/button.blade.php | 53 +++++++++++++++++++ resources/views/form-layout.blade.php | 2 +- src/FormServiceProvider.php | 1 + 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 resources/views/components/spinners/button.blade.php diff --git a/resources/views/components/spinners/button.blade.php b/resources/views/components/spinners/button.blade.php new file mode 100644 index 0000000..df5fcf7 --- /dev/null +++ b/resources/views/components/spinners/button.blade.php @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/views/form-layout.blade.php b/resources/views/form-layout.blade.php index 1498bb4..75df8d9 100644 --- a/resources/views/form-layout.blade.php +++ b/resources/views/form-layout.blade.php @@ -30,7 +30,7 @@ class="text-gray-500">{{ trans(config('tall-forms.saved')) }} @endif - + @lang(config('tall-forms.save-and-stay')) diff --git a/src/FormServiceProvider.php b/src/FormServiceProvider.php index e56c9c1..20f41a7 100644 --- a/src/FormServiceProvider.php +++ b/src/FormServiceProvider.php @@ -30,6 +30,7 @@ protected function bootViews() { $this->loadViewsFrom(__DIR__ . '/../resources/views', 'tall-forms'); Blade::component('tall-forms::components.button', 'button'); + Blade::component('tall-forms::components.spinners.button', 'tall-spinner'); Blade::component('tall-forms::components.input', 'tall-input'); Blade::component('tall-forms::components.checkbox', 'tall-checkbox'); Blade::component('tall-forms::components.radio', 'tall-radio');