From 19596cd4125b815ffad97166bb060abeb9cfdea9 Mon Sep 17 00:00:00 2001 From: CarliPinell Date: Fri, 31 Oct 2025 09:24:48 -0400 Subject: [PATCH] Saving clean code for PR --- .../Http/Controllers/TaskController.php | 1 + resources/views/layouts/layoutnext.blade.php | 1 + resources/views/tasks/edit.blade.php | 42 ++++++++++--------- .../tasks/partials/hitl-iframe.blade.php | 22 ++++++++++ 4 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 resources/views/tasks/partials/hitl-iframe.blade.php diff --git a/ProcessMaker/Http/Controllers/TaskController.php b/ProcessMaker/Http/Controllers/TaskController.php index d920c27dbc..1195c1d59a 100755 --- a/ProcessMaker/Http/Controllers/TaskController.php +++ b/ProcessMaker/Http/Controllers/TaskController.php @@ -204,6 +204,7 @@ public function edit(ProcessRequestToken $task, string $preview = '') 'screenFields' => $screenFields, 'taskDraftsEnabled' => $taskDraftsEnabled, 'userConfiguration' => $userConfiguration, + 'hitlEnabled' => config('smart-extract.hitl_enabled', false), ]); } } diff --git a/resources/views/layouts/layoutnext.blade.php b/resources/views/layouts/layoutnext.blade.php index 0645a3573d..e21f1fc8c9 100644 --- a/resources/views/layouts/layoutnext.blade.php +++ b/resources/views/layouts/layoutnext.blade.php @@ -133,6 +133,7 @@ class="main flex-grow-1 h-100 @endif @yield('js') +@stack('scripts') @isset($addons) @foreach ($addons as $addon) diff --git a/resources/views/tasks/edit.blade.php b/resources/views/tasks/edit.blade.php index ab41f60767..c4d9725ec1 100644 --- a/resources/views/tasks/edit.blade.php +++ b/resources/views/tasks/edit.blade.php @@ -87,25 +87,29 @@ class="nav-link">
@can('update', $task) - + @unless($hitlEnabled) + + @else + @include('tasks.partials.hitl-iframe') + @endunless @endcan
+ +
+@else +
+ {{ __('No iframe source provided for Manual Edit.') }} +
+@endif \ No newline at end of file