From 4d5f217a1e36842fe1afaf85d177e6db903e4963 Mon Sep 17 00:00:00 2001 From: pushuo Date: Thu, 9 Mar 2023 18:46:36 +0800 Subject: [PATCH] Add a checkbox component to the plug-in edit page wip wip wip wip wip --- .../admin/views/pages/plugins/form.blade.php | 61 +++++++++++++++---- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/resources/beike/admin/views/pages/plugins/form.blade.php b/resources/beike/admin/views/pages/plugins/form.blade.php index 805f9a1d..d6dcf461 100644 --- a/resources/beike/admin/views/pages/plugins/form.blade.php +++ b/resources/beike/admin/views/pages/plugins/form.blade.php @@ -73,19 +73,39 @@ @endif @if ($column['type'] == 'rich-text') - - @if (isset($column['description'])) -
{{ $column['description'] }}
- @endif -
- @endif + + @if (isset($column['description'])) +
{{ $column['description'] }}
+ @endif +
+ @endif + @if ($column['type'] == 'checkbox') + +
+ @foreach ($column['options'] as $item) +
+ + +
+ @endforeach +
+
+ @endif @endforeach @@ -98,3 +118,20 @@ @endsection + +@push('footer') + +@endpush \ No newline at end of file