diff --git a/resources/views/show/list-defs.blade.php b/resources/views/show/list-defs.blade.php index 8a00bbb..2976459 100644 --- a/resources/views/show/list-defs.blade.php +++ b/resources/views/show/list-defs.blade.php @@ -27,7 +27,7 @@ @foreach ($workflowDefinitions as $workflowDefinition) - {{ $workflowDefinition->name }} + {{ $workflowDefinition->name }} {{ $workflowDefinition->description }} diff --git a/resources/views/show/show-def.blade.php b/resources/views/show/show-def.blade.php new file mode 100644 index 0000000..60ebcf2 --- /dev/null +++ b/resources/views/show/show-def.blade.php @@ -0,0 +1,57 @@ +@extends('layouts.app') + +@can('admin') + @section('content') + Voltar aos Workflows +
+ @foreach ($workflowDefinitionData['roles'] as $role => $name) +
+ +
+
+
+ @csrf + @method('put') + + +
+ + {{ $name }} + @include('partials.codpes-adicionar-btn') +
+
+
+ @foreach (Spatie\Permission\Models\Role::findByName($role)->users as $user) +
+ {{ $user->name }} + + @if ($user->codpes != auth()->user()->codpes) + @include('partials.codpes-remover-btn', ['codpes' => $user->codpes]) + @endif + +
+ @endforeach +
+
+ +
+
+
+ @endforeach +
+ +
+

Detalhes do workflow {{ $workflowDefinitionData['definitionName'] }}

+ Editar workflow +
+
+
+

Definições

+
{{ $workflowDefinitionData['formattedJson'] }}
+
+
+ +
+ @endsection + @endcan