From 70e3abdd8fb0617711c28eeb7c6d722916b56d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Sat, 14 Oct 2023 17:32:12 +0200 Subject: [PATCH] cleanup --- .../views/columns/cells/row-actions.blade.php | 4 +- .../views/fields/checkbox-option.blade.php | 2 +- resources/views/fields/checkbox.blade.php | 2 +- resources/views/fields/option.blade.php | 1 - routes/api.php | 3 ++ src/Fields/Checkbox.php | 16 ++++--- src/Fields/Dropdown.php | 34 +++++++------- src/Fields/File.php | 1 - src/Fields/{Options => }/Option.php | 13 +++++- src/Fields/Options/CheckboxOption.php | 45 ------------------- src/Fields/Options/DropdownOption.php | 11 ----- src/Fields/Options/RadioOption.php | 16 ------- src/Fields/Radio.php | 16 ++++--- src/Fields/Relation.php | 1 - src/Fields/Select.php | 1 - 15 files changed, 55 insertions(+), 111 deletions(-) delete mode 100644 resources/views/fields/option.blade.php rename src/Fields/{Options => }/Option.php (82%) delete mode 100644 src/Fields/Options/CheckboxOption.php delete mode 100644 src/Fields/Options/DropdownOption.php delete mode 100644 src/Fields/Options/RadioOption.php diff --git a/resources/views/columns/cells/row-actions.blade.php b/resources/views/columns/cells/row-actions.blade.php index 61cf1f9a4..4383598c8 100644 --- a/resources/views/columns/cells/row-actions.blade.php +++ b/resources/views/columns/cells/row-actions.blade.php @@ -1,12 +1,12 @@
@can('update', $model) - + @endcan @can('delete', $model) -
+ @csrf @method('DELETE')