From 026b3f5a20a7326b5b976293de2da25d4e0bd2a1 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 15 Jan 2025 18:32:41 +1100 Subject: [PATCH] Use components for form buttons and file notes --- .../architect/views/auth/login.blade.php | 9 +-- resources/views/components/error.blade.php | 11 +++ .../views/components/file-note.blade.php | 12 ++++ .../views/components/form/cancel.blade.php | 9 +++ .../views/components/form/reset.blade.php | 9 +++ .../views/components/form/submit.blade.php | 9 +++ resources/views/components/note.blade.php | 7 ++ resources/views/components/success.blade.php | 12 ++++ resources/views/frames/dn.blade.php | 56 +++------------ resources/views/frames/import.blade.php | 12 ++-- resources/views/home.blade.php | 16 +---- resources/views/update.blade.php | 68 ++++--------------- 12 files changed, 101 insertions(+), 129 deletions(-) create mode 100644 resources/views/components/error.blade.php create mode 100644 resources/views/components/file-note.blade.php create mode 100644 resources/views/components/form/cancel.blade.php create mode 100644 resources/views/components/form/reset.blade.php create mode 100644 resources/views/components/form/submit.blade.php create mode 100644 resources/views/components/note.blade.php create mode 100644 resources/views/components/success.blade.php diff --git a/resources/themes/architect/views/auth/login.blade.php b/resources/themes/architect/views/auth/login.blade.php index fbbc3f6..3510679 100644 --- a/resources/themes/architect/views/auth/login.blade.php +++ b/resources/themes/architect/views/auth/login.blade.php @@ -11,14 +11,7 @@
- - + +
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index f2a0ad7..7eb82ac 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -12,7 +12,7 @@ --}} @section('main-content') -
+
@@ -38,19 +38,7 @@
- @if(file_exists('home-note.html')) -
-
-
-
-
NOTE
- - {!! file_get_contents('home-note.html') !!} - -
-
-
- @endif + @endsection @section('page-scripts') diff --git a/resources/views/update.blade.php b/resources/views/update.blade.php index 25f1daf..da62654 100644 --- a/resources/views/update.blade.php +++ b/resources/views/update.blade.php @@ -34,44 +34,15 @@ @endsection @section('main-content') - @if(session()->has('note')) -
-

Note:

-
-

{{ session()->pull('note') }}

-
- @endif - - @if(session()->has('success')) -
-

Success!

-
-

{{ session()->pull('success') }}

-
    - @foreach (session()->pull('updated') as $key => $values) -
  • {{ $key }}: {{ join(',',$values) }}
  • - @endforeach -
-
- @endif - - @if($errors->any()) -
-

Error?

-
-
    - @foreach ($errors->all() as $error) -
  • {{ $error }}
  • - @endforeach -
-
- @endif + + +
@csrf - +
@@ -104,28 +75,15 @@
- -
-
- @lang('Reset') - @lang('Update') -
-
+ +
+
+ + +
+
+
-@endsection - -@section('page-scripts') - -@append \ No newline at end of file +@endsection \ No newline at end of file