From 4781b670d57fe69d6c04748e5a9dfd4e04d854d2 Mon Sep 17 00:00:00 2001 From: Didier Date: Tue, 31 Oct 2023 09:01:47 +0100 Subject: [PATCH] fix delete file with wrong URL --- resources/views/controls/edit.blade.php | 2 +- resources/views/controls/make.blade.php | 74 ++++++++++++------------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/resources/views/controls/edit.blade.php b/resources/views/controls/edit.blade.php index 078ba4c5..77955549 100644 --- a/resources/views/controls/edit.blade.php +++ b/resources/views/controls/edit.blade.php @@ -217,7 +217,7 @@ 'X-CSRF-TOKEN': '{{csrf_token()}}' }, type: 'GET', - url: '{{ url( "/doc/delete" ) }}'+"/"+file.id, + url: '/doc/delete/'+file.id, success: function (data) { console.log("File has been successfully removed"); }, diff --git a/resources/views/controls/make.blade.php b/resources/views/controls/make.blade.php index 348a7220..0512e35a 100644 --- a/resources/views/controls/make.blade.php +++ b/resources/views/controls/make.blade.php @@ -52,23 +52,23 @@ {{ trans('cruds.control.fields.realisation_date') }}
-
{{ trans('cruds.control.fields.plan_date') }}
-
- +
@@ -102,7 +102,7 @@
{{ $control->model }}
- +
{{ trans('cruds.control.fields.note') }} @@ -122,7 +122,7 @@
-
+
{{ trans('cruds.control.fields.score') }} @@ -130,9 +130,9 @@
score==3 ? "selected" : "" }} > {{ trans('common.green') }}   - score==2 ? "selected" : "" }}> + score==2 ? "selected" : "" }}> {{ trans('common.orange') }}   - score==1 ? "selected" : "" }}> + score==1 ? "selected" : "" }}> {{ trans('common.red') }}
@@ -151,10 +151,10 @@ {{ trans('cruds.control.fields.periodicity') }}
- ( - @if ($control->periodicity==1) - {{ trans("common.monthly") }} - @elseif ($control->periodicity==3) - {{ trans("common.quarterly") }} - @elseif ($control->periodicity==6) - {{ trans("common.biannually") }} - @elseif ($control->periodicity==12) - {{ trans("common.annually") }} + @if ($control->periodicity==1) + {{ trans("common.monthly") }} + @elseif ($control->periodicity==3) + {{ trans("common.quarterly") }} + @elseif ($control->periodicity==6) + {{ trans("common.biannually") }} + @elseif ($control->periodicity==12) + {{ trans("common.annually") }} @else {{ $control->periodicity }} @endif @@ -190,7 +190,7 @@
  @@ -221,7 +221,7 @@