Workstation equipment cycle update button
This commit is contained in:
parent
f3ba489ed6
commit
a9c54f4274
|
|
@ -16,8 +16,7 @@
|
||||||
class WorkstationsJobsController extends Controller
|
class WorkstationsJobsController extends Controller
|
||||||
{
|
{
|
||||||
public function receiveAnswersEquipment(Request $request)
|
public function receiveAnswersEquipment(Request $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Primeiro ele deve criar a associação entre id atual do control + perguntas e respostas
|
// Primeiro ele deve criar a associação entre id atual do control + perguntas e respostas
|
||||||
$receiveAnswersElementalTasks = new workstationsTaskAnswers;
|
$receiveAnswersElementalTasks = new workstationsTaskAnswers;
|
||||||
$receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstationid;
|
$receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstationid;
|
||||||
|
|
@ -54,8 +53,7 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
|
|
||||||
// update departure_date value
|
// update departure_date value
|
||||||
$receiveDataControlWs = ControlEquipmentWorkstation::find($request->control_equipment_workstationid);
|
$receiveDataControlWs = ControlEquipmentWorkstation::find($request->control_equipment_workstationid);
|
||||||
$receiveDataControlWs->departure_date = now();
|
|
||||||
$receiveDataControlWs->save();
|
|
||||||
|
|
||||||
//FINALIZOU A TAREFA ANTERIOR COM DEPARTURE
|
//FINALIZOU A TAREFA ANTERIOR COM DEPARTURE
|
||||||
|
|
||||||
|
|
@ -86,6 +84,7 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
$receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id);
|
$receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id);
|
||||||
$receiveDataEquipment = Equipment::find($recebeDataControlId->equipment_id);
|
$receiveDataEquipment = Equipment::find($recebeDataControlId->equipment_id);
|
||||||
|
|
||||||
|
|
||||||
if ($next_todo < 25) {
|
if ($next_todo < 25) {
|
||||||
$elemental_tasks_id = $next_todo;
|
$elemental_tasks_id = $next_todo;
|
||||||
$further_tasks_id = null;
|
$further_tasks_id = null;
|
||||||
|
|
@ -93,103 +92,149 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
$elemental_tasks_id = null;
|
$elemental_tasks_id = null;
|
||||||
$further_tasks_id = $next_todo;
|
$further_tasks_id = $next_todo;
|
||||||
}
|
}
|
||||||
|
// dd($recebeDataControlId->id_workstations );
|
||||||
|
|
||||||
|
|
||||||
// Para criar a divisao do equipamento em entre compo e Obturador
|
if ($request->stateEquipment == "cancel") {
|
||||||
if ($receiveDataControlWs->elemental_tasks_id == 5 && $receiveDataEquipment->equipment_type_id == 3) {
|
$deleteDataControlWhereRefreashPage = ControlEquipmentWorkstation::where('id_workstations', $receiveDataControlWs->id_workstations)
|
||||||
|
->where('equipment_id', $receiveDataEquipment->equipment_id)
|
||||||
|
->whereNotNull('entry_date')
|
||||||
|
->whereNull('departure_date')
|
||||||
|
->first();
|
||||||
|
|
||||||
$nextEquipmentTask1 = DB::select("
|
if ($deleteDataControlWhereRefreashPage) {
|
||||||
|
$deleteDataControlWhereRefreashPage->id_workstations = null;
|
||||||
|
$deleteDataControlWhereRefreashPage->entry_date = null;
|
||||||
|
$deleteDataControlWhereRefreashPage->departure_date = null;
|
||||||
|
$deleteDataControlWhereRefreashPage->save();
|
||||||
|
}
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
|
|
||||||
|
} if ($request->stateEquipment == "finish") {
|
||||||
|
|
||||||
|
$receiveDataControlWs->departure_date = now();
|
||||||
|
$receiveDataControlWs->save();
|
||||||
|
|
||||||
|
$nextEquipmentTaskStateEquipmentFinish = DB::select("
|
||||||
|
INSERT INTO control_equipment_workstation
|
||||||
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
|
VALUES
|
||||||
|
(:equipment_id,NULL,:elemental_tasks_id,:further_tasks_id,NULL,NULL,NULL)
|
||||||
|
", [
|
||||||
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
|
'elemental_tasks_id' => $elemental_tasks_id,
|
||||||
|
'further_tasks_id' => $further_tasks_id
|
||||||
|
]);
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($request->stateEquipment == 'next') {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$receiveDataControlWs->departure_date = now();
|
||||||
|
$receiveDataControlWs->save();
|
||||||
|
|
||||||
|
// Para criar a divisao do equipamento em entre compo e Obturador
|
||||||
|
if ($receiveDataControlWs->elemental_tasks_id == 5 && $receiveDataEquipment->equipment_type_id == 3) {
|
||||||
|
|
||||||
|
$nextEquipmentTask1 = DB::select("
|
||||||
INSERT INTO control_equipment_workstation
|
INSERT INTO control_equipment_workstation
|
||||||
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
VALUES
|
VALUES
|
||||||
(:equipment_id,NULL,8,:further_tasks_id,NULL,NULL,NULL)
|
(:equipment_id,NULL,8,:further_tasks_id,NULL,NULL,NULL)
|
||||||
", [
|
", [
|
||||||
'equipment_id' => $receiveDataEquipment->equipment_id,
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
'further_tasks_id' => $further_tasks_id
|
'further_tasks_id' => $further_tasks_id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$nextEquipmentTask2 = DB::select("
|
$nextEquipmentTask2 = DB::select("
|
||||||
INSERT INTO control_equipment_workstation
|
INSERT INTO control_equipment_workstation
|
||||||
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
VALUES
|
VALUES
|
||||||
(:equipment_id,NULL,9,:further_tasks_id,NULL,NULL,NULL)
|
(:equipment_id,NULL,9,:further_tasks_id,NULL,NULL,NULL)
|
||||||
", [
|
", [
|
||||||
'equipment_id' => $receiveDataEquipment->equipment_id,
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
'further_tasks_id' => $further_tasks_id
|
'further_tasks_id' => $further_tasks_id
|
||||||
]);
|
|
||||||
// Equipamento separado em 2 corpo/ Obturador
|
|
||||||
return redirect()->route('enterWorkstation');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Quando concluir as tarefas 8 e 9
|
|
||||||
else if ($receiveDataEquipment->equipment_type_id == 3 && ($receiveDataControlWs->elemental_tasks_id == 8 || $receiveDataControlWs->elemental_tasks_id == 9)) {
|
|
||||||
// dd('recebe if Quando concluir as tarefas 8 e 9 ');
|
|
||||||
|
|
||||||
// Verifique se já existem registros na tabela control_equipment_workstation
|
|
||||||
$existingRecords = DB::table('control_equipment_workstation')
|
|
||||||
->where('equipment_id', $receiveDataControlWs->equipment_id)
|
|
||||||
->whereIn('elemental_tasks_id', [8, 9])
|
|
||||||
->whereNotNull('departure_date')
|
|
||||||
->get();
|
|
||||||
|
|
||||||
// Verifique se há pelo menos dois registros que atendem às condições
|
|
||||||
if ($existingRecords->count() >= 2) {
|
|
||||||
|
|
||||||
// Crie um novo registro com elemental_tasks_id igual a 10
|
|
||||||
$nextEquipmentTask3 = DB::table('control_equipment_workstation')->insertGetId([
|
|
||||||
'equipment_id' => $receiveDataControlWs->equipment_id,
|
|
||||||
'id_workstations' => NULL,
|
|
||||||
'elemental_tasks_id' => 10,
|
|
||||||
'further_tasks_id' => $further_tasks_id,
|
|
||||||
'equipment_comments_id' => NULL,
|
|
||||||
'entry_date' => NULL,
|
|
||||||
'departure_date' => NULL,
|
|
||||||
]);
|
]);
|
||||||
|
// Equipamento separado em 2 corpo/ Obturador
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->route('enterWorkstation');
|
// Quando concluir as tarefas 8 e 9
|
||||||
}
|
if ($receiveDataEquipment->equipment_type_id == 3 && ($receiveDataControlWs->elemental_tasks_id == 8 || $receiveDataControlWs->elemental_tasks_id == 9)) {
|
||||||
|
// dd('recebe if Quando concluir as tarefas 8 e 9 ');
|
||||||
|
|
||||||
//Se a proxima WS for igual a atual deve criar dados para a ws
|
// Verifique se já existem registros na tabela control_equipment_workstation
|
||||||
else if ($recebeDataControlId->id_workstations == $next_workstation) {
|
$existingRecords = DB::table('control_equipment_workstation')
|
||||||
|
->where('equipment_id', $receiveDataControlWs->equipment_id)
|
||||||
|
->whereIn('elemental_tasks_id', [8, 9])
|
||||||
|
->whereNotNull('departure_date')
|
||||||
|
->get();
|
||||||
|
|
||||||
$nextEquipmentTask = DB::select("
|
// Verifique se há pelo menos dois registros que atendem às condições
|
||||||
|
if ($existingRecords->count() >= 2) {
|
||||||
|
|
||||||
|
// Crie um novo registro com elemental_tasks_id igual a 10
|
||||||
|
$nextEquipmentTask3 = DB::table('control_equipment_workstation')->insertGetId([
|
||||||
|
'equipment_id' => $receiveDataControlWs->equipment_id,
|
||||||
|
'id_workstations' => NULL,
|
||||||
|
'elemental_tasks_id' => 10,
|
||||||
|
'further_tasks_id' => $further_tasks_id,
|
||||||
|
'equipment_comments_id' => NULL,
|
||||||
|
'entry_date' => NULL,
|
||||||
|
'departure_date' => NULL,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Se a proxima WS for igual a atual deve criar dados para a ws
|
||||||
|
if ($recebeDataControlId->id_workstations == $next_workstation) {
|
||||||
|
|
||||||
|
|
||||||
|
$nextEquipmentTask = DB::select("
|
||||||
INSERT INTO control_equipment_workstation
|
INSERT INTO control_equipment_workstation
|
||||||
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
VALUES
|
VALUES
|
||||||
(:equipment_id,:next_workstation,:elemental_tasks_id,:further_tasks_id,NULL,CURRENT_TIMESTAMP,NULL)
|
(:equipment_id,:next_workstation,:elemental_tasks_id,:further_tasks_id,NULL,CURRENT_TIMESTAMP,NULL)
|
||||||
", [
|
", [
|
||||||
'equipment_id' => $receiveDataEquipment->equipment_id,
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
'next_workstation' => $next_workstation,
|
'next_workstation' => $next_workstation,
|
||||||
'elemental_tasks_id' => $elemental_tasks_id,
|
'elemental_tasks_id' => $elemental_tasks_id,
|
||||||
'further_tasks_id' => $further_tasks_id
|
'further_tasks_id' => $further_tasks_id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$lastInsertedId = DB::getPdo()->lastInsertId();
|
$lastInsertedId = DB::getPdo()->lastInsertId();
|
||||||
|
|
||||||
return view('workstations.workstations', [
|
$receiveDataNewElementalTask = ElementalTasks::find($elemental_tasks_id);
|
||||||
'receiveDataElementalTask' => $receiveDataElementalTask,
|
|
||||||
'receiveDataEquipment' => $receiveDataEquipment,
|
return view('workstations.workstations', [
|
||||||
'control_ew_id' => $lastInsertedId,
|
'receiveDataElementalTask' => $receiveDataNewElementalTask,
|
||||||
'task_todo' => $next_todo
|
'receiveDataEquipment' => $receiveDataEquipment,
|
||||||
]);
|
'control_ew_id' => $lastInsertedId,
|
||||||
// Se verificar que a proxima tarefa e Null ele deve apenas voltar ao start
|
'task_todo' => $next_todo
|
||||||
|
]);
|
||||||
}
|
// Se verificar que a proxima tarefa e Null ele deve apenas voltar ao start
|
||||||
else if ($next_workstation == null) {
|
|
||||||
|
} else if ($next_workstation == null) {
|
||||||
$nextEquipmentTask = DB::select("
|
|
||||||
|
$nextEquipmentTask = DB::select("
|
||||||
INSERT INTO control_equipment_workstation
|
INSERT INTO control_equipment_workstation
|
||||||
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
VALUES
|
VALUES
|
||||||
(:equipment_id,NULL,:elemental_tasks_id,:further_tasks_id,NULL,NULL,NULL)
|
(:equipment_id,NULL,:elemental_tasks_id,:further_tasks_id,NULL,NULL,NULL)
|
||||||
", [
|
", [
|
||||||
'equipment_id' => $receiveDataEquipment->equipment_id,
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
'elemental_tasks_id' => $elemental_tasks_id,
|
'elemental_tasks_id' => $elemental_tasks_id,
|
||||||
'further_tasks_id' => $further_tasks_id
|
'further_tasks_id' => $further_tasks_id
|
||||||
]);
|
]);
|
||||||
return redirect()->route('enterWorkstation');
|
return redirect()->route('enterWorkstation');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ao selecionar o equipamento para se inicializar a tarefa deve mostrar os dados relacionados.
|
// Ao selecionar o equipamento para se inicializar a tarefa deve mostrar os dados relacionados.
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,15 @@
|
||||||
<link rel="icon" type="image/x-icon" href="{{ URL::asset('assets/dist/img/favicon.ico') }}">
|
<link rel="icon" type="image/x-icon" href="{{ URL::asset('assets/dist/img/favicon.ico') }}">
|
||||||
|
|
||||||
<!-- Google Font: Source Sans Pro -->
|
<!-- Google Font: Source Sans Pro -->
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
<link rel="stylesheet"
|
||||||
|
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
||||||
<!-- Font Awesome -->
|
<!-- Font Awesome -->
|
||||||
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/fontawesome-free/css/all.min.css') }}">
|
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/fontawesome-free/css/all.min.css') }}">
|
||||||
<!-- Ionicons -->
|
<!-- Ionicons -->
|
||||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
||||||
<!-- Tempusdominus Bootstrap 4 -->
|
<!-- Tempusdominus Bootstrap 4 -->
|
||||||
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css') }}">
|
<link rel="stylesheet"
|
||||||
|
href="{{ URL::asset('assets/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css') }}">
|
||||||
<!-- iCheck -->
|
<!-- iCheck -->
|
||||||
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/icheck-bootstrap/icheck-bootstrap.min.css') }}">
|
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/icheck-bootstrap/icheck-bootstrap.min.css') }}">
|
||||||
<!-- JQVMap -->
|
<!-- JQVMap -->
|
||||||
|
|
@ -48,7 +50,8 @@
|
||||||
<!-- Left navbar links -->
|
<!-- Left navbar links -->
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars" style="color:#1f2d3d"></i></a>
|
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"
|
||||||
|
style="color:#1f2d3d"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link">
|
<a class="nav-link">
|
||||||
|
|
@ -78,13 +81,15 @@
|
||||||
<!-- User Dropdown Menu -->
|
<!-- User Dropdown Menu -->
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||||
<img src="{{ URL::asset('assets/dist/img/ispt.jpg') }}" class="img-circle elevation-2" alt="User Image" style="width:30px;height:30px;">
|
<img src="{{ URL::asset('assets/dist/img/ispt.jpg') }}" class="img-circle elevation-2"
|
||||||
|
alt="User Image" style="width:30px;height:30px;">
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right">
|
||||||
<form id="logout-form" action="{{ route('logout') }}" method="POST">
|
<form id="logout-form" action="{{ route('logout') }}" method="POST">
|
||||||
@csrf
|
@csrf
|
||||||
@method('POST')
|
@method('POST')
|
||||||
<a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
<a class="dropdown-item" href="{{ route('logout') }}"
|
||||||
|
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
||||||
<i class="fas fa-sign-out-alt text-danger"></i>
|
<i class="fas fa-sign-out-alt text-danger"></i>
|
||||||
<span>Terminar sessão</span>
|
<span>Terminar sessão</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -93,7 +98,8 @@
|
||||||
</li>
|
</li>
|
||||||
<!-- Control sidebar -->
|
<!-- Control sidebar -->
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#" role="button" style="color:#1f2d3d">
|
<a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#"
|
||||||
|
role="button" style="color:#1f2d3d">
|
||||||
<i class="fas fa-bars"></i>
|
<i class="fas fa-bars"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -105,7 +111,8 @@
|
||||||
<aside class="main-sidebar sidebar-dark-primary elevation-4" style="background-color: #09255C">
|
<aside class="main-sidebar sidebar-dark-primary elevation-4" style="background-color: #09255C">
|
||||||
<!-- Brand Logo -->
|
<!-- Brand Logo -->
|
||||||
<p class="brand-link">
|
<p class="brand-link">
|
||||||
<img src="{{ URL::asset('assets/dist/img/ispt40.jpg') }}" alt="Ispt4.0 Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
|
<img src="{{ URL::asset('assets/dist/img/ispt40.jpg') }}" alt="Ispt4.0 Logo"
|
||||||
|
class="brand-image img-circle elevation-3" style="opacity: .8">
|
||||||
<span class="brand-text font-weight-light">{{ config('app.name') }}</span>
|
<span class="brand-text font-weight-light">{{ config('app.name') }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
@ -115,7 +122,8 @@
|
||||||
<!-- SidebarSearch Form -->
|
<!-- SidebarSearch Form -->
|
||||||
<div class="form-inline">
|
<div class="form-inline">
|
||||||
<div class="input-group" data-widget="sidebar-search">
|
<div class="input-group" data-widget="sidebar-search">
|
||||||
<input id="qrtextleft" class="form-control form-control-sidebar text-white" type="search" placeholder="Procurar" aria-label="Search">
|
<input id="qrtextleft" class="form-control form-control-sidebar text-white" type="search"
|
||||||
|
placeholder="Procurar" aria-label="Search">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-sidebar">
|
<button class="btn btn-sidebar">
|
||||||
<i class="fas fa-search fa-fw text-white"></i>
|
<i class="fas fa-search fa-fw text-white"></i>
|
||||||
|
|
@ -126,7 +134,8 @@
|
||||||
|
|
||||||
<!-- Sidebar Menu -->
|
<!-- Sidebar Menu -->
|
||||||
<nav class="mt-2">
|
<nav class="mt-2">
|
||||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
|
||||||
|
data-accordion="false">
|
||||||
<!-- Add icons to the links using the .nav-icon class
|
<!-- Add icons to the links using the .nav-icon class
|
||||||
with font-awesome or any other icon font library -->
|
with font-awesome or any other icon font library -->
|
||||||
<li class="nav-item menu-closed">
|
<li class="nav-item menu-closed">
|
||||||
|
|
@ -153,19 +162,18 @@ class="nav-link text-white">
|
||||||
<li class="nav-item menu-closed">
|
<li class="nav-item menu-closed">
|
||||||
<a href="#" class="nav-link text-white" style="background-color: #ba9420;">
|
<a href="#" class="nav-link text-white" style="background-color: #ba9420;">
|
||||||
<i class="nav-icon fas fa-undo"></i>
|
<i class="nav-icon fas fa-undo"></i>
|
||||||
<p>
|
<p>{{ $equipmentsReturnedCount }} retornadas
|
||||||
{{ $equipmentsReturnedCount }} retornadas
|
|
||||||
<i class="right fas fa-angle-left"></i>
|
<i class="right fas fa-angle-left"></i>
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
<ul class="nav nav-treeview">
|
<ul class="nav nav-treeview">
|
||||||
@foreach ($equipmentsReturned as $equipmentReturned)
|
@foreach ($equipmentsReturned as $equipmentReturned)
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="#" class="nav-link text-white">
|
<a href="#" class="nav-link text-white">
|
||||||
<i class="fas fa-tag nav-icon"></i>
|
<i class="fas fa-tag nav-icon"></i>
|
||||||
<p>{{ $equipmentReturned->equipment_tag }}</p>
|
<p>{{ $equipmentReturned->equipment_tag }}</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -204,7 +212,8 @@ class="nav-link text-white">
|
||||||
</div>
|
</div>
|
||||||
<!-- /.content-wrapper -->
|
<!-- /.content-wrapper -->
|
||||||
<footer class="main-footer" style="background-color: #00B0EA">
|
<footer class="main-footer" style="background-color: #00B0EA">
|
||||||
<strong>Copyright © 2017-{{ date('Y') }} <a href="https://www.isptgroup.com" target="_blank">ISPT - Industrial Services,
|
<strong>Copyright © 2017-{{ date('Y') }} <a href="https://www.isptgroup.com" target="_blank">ISPT -
|
||||||
|
Industrial Services,
|
||||||
SA</a>.</strong>
|
SA</a>.</strong>
|
||||||
Todos os direitos reservados.
|
Todos os direitos reservados.
|
||||||
<div class="float-right d-none d-sm-inline-block">
|
<div class="float-right d-none d-sm-inline-block">
|
||||||
|
|
@ -221,14 +230,16 @@ class="nav-link text-white">
|
||||||
</footer> --}}
|
</footer> --}}
|
||||||
|
|
||||||
<!-- Control Sidebar -->
|
<!-- Control Sidebar -->
|
||||||
<aside class="control-sidebar control-sidebar-dark" data-widget="control-treeview" style="background-color: #09255C">
|
<aside class="control-sidebar control-sidebar-dark" data-widget="control-treeview"
|
||||||
|
style="background-color: #09255C">
|
||||||
<!-- Control sidebar content goes here -->
|
<!-- Control sidebar content goes here -->
|
||||||
<div class="p-3 control-sidebar-content">
|
<div class="p-3 control-sidebar-content">
|
||||||
|
|
||||||
<!-- SidebarSearch Form -->
|
<!-- SidebarSearch Form -->
|
||||||
<div class="form-inline">
|
<div class="form-inline">
|
||||||
<div class="input-group" data-widget="sidebar-search">
|
<div class="input-group" data-widget="sidebar-search">
|
||||||
<input id="qrtextright" class="form-control form-control-sidebar text-white" type="search" placeholder="Procurar" aria-label="Search">
|
<input id="qrtextright" class="form-control form-control-sidebar text-white" type="search"
|
||||||
|
placeholder="Procurar" aria-label="Search">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-sidebar">
|
<button class="btn btn-sidebar">
|
||||||
<i class="fas fa-search fa-fw text-white"></i>
|
<i class="fas fa-search fa-fw text-white"></i>
|
||||||
|
|
@ -239,7 +250,8 @@ class="nav-link text-white">
|
||||||
|
|
||||||
<!-- Sidebar Menu -->
|
<!-- Sidebar Menu -->
|
||||||
<nav class="mt-2">
|
<nav class="mt-2">
|
||||||
<ul class="nav nav-pills nav-sidebar flex-column control-sidebar-treeview" role="menu" data-accordion="false">
|
<ul class="nav nav-pills nav-sidebar flex-column control-sidebar-treeview" role="menu"
|
||||||
|
data-accordion="false">
|
||||||
<!-- Add icons to the links using the .nav-icon class
|
<!-- Add icons to the links using the .nav-icon class
|
||||||
with font-awesome or any other icon font library -->
|
with font-awesome or any other icon font library -->
|
||||||
<li class="nav-item menu-closed">
|
<li class="nav-item menu-closed">
|
||||||
|
|
@ -252,12 +264,12 @@ class="nav-link text-white">
|
||||||
</a>
|
</a>
|
||||||
<ul class="nav nav-treeview">
|
<ul class="nav nav-treeview">
|
||||||
@foreach ($equipmentsDone as $equipmentDone)
|
@foreach ($equipmentsDone as $equipmentDone)
|
||||||
<li class="nav-item-right">
|
<li class="nav-item-right">
|
||||||
<a href="#" class="nav-link text-white">
|
<a href="#" class="nav-link text-white">
|
||||||
<i class="fas fa-tag nav-icon"></i>
|
<i class="fas fa-tag nav-icon"></i>
|
||||||
<p>{{ $equipmentDone->equipment_tag }}</p>
|
<p>{{ $equipmentDone->equipment_tag }}</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -364,8 +376,12 @@ function(qrCodeMessage) {
|
||||||
startScan.style.display = "block";
|
startScan.style.display = "block";
|
||||||
|
|
||||||
// Trigger the search functionality for both sidebars
|
// Trigger the search functionality for both sidebars
|
||||||
searchForValueAndNavigate(qrCodeMessage, '.main-sidebar .nav.nav-pills.nav-sidebar.flex-column li a', '.main-sidebar');
|
searchForValueAndNavigate(qrCodeMessage,
|
||||||
searchForValueAndNavigate(qrCodeMessage, '.control-sidebar .nav.nav-pills.nav-sidebar.flex-column li a', '.control-sidebar');
|
'.main-sidebar .nav.nav-pills.nav-sidebar.flex-column li a',
|
||||||
|
'.main-sidebar');
|
||||||
|
searchForValueAndNavigate(qrCodeMessage,
|
||||||
|
'.control-sidebar .nav.nav-pills.nav-sidebar.flex-column li a',
|
||||||
|
'.control-sidebar');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function(errorMessage) {
|
function(errorMessage) {
|
||||||
|
|
@ -447,4 +463,4 @@ function handleSearch(inputSelector, itemsSelector, containerSelector) {
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form1" class="monitored-form">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form1"
|
||||||
|
class="monitored-form">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
|
@ -151,12 +152,20 @@ class="form-control" placeholder="">
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary">Cancelar</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
<!-- Right-aligned button -->
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -184,7 +193,8 @@ class="form-control" placeholder="">
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form id="form2" class="monitored-form" action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form id="form2" class="monitored-form" action="{{ route('receiveAnswersEquipment') }}"
|
||||||
|
method="POST">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
@ -224,14 +234,20 @@ class="form-control" placeholder="">
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -259,7 +275,8 @@ class="form-control" placeholder="">
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form3" class="monitored-form" >
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form3"
|
||||||
|
class="monitored-form">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
@ -657,14 +674,20 @@ class="form-control datetimepicker-input"
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -693,7 +716,8 @@ class="form-control datetimepicker-input"
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form id="form4" class="monitored-form" action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form id="form4" class="monitored-form" action="{{ route('receiveAnswersEquipment') }}"
|
||||||
|
method="POST">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
@ -1089,14 +1113,20 @@ class="form-control datetimepicker-input"
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1126,7 +1156,7 @@ class="form-control datetimepicker-input"
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="idDoFormulario">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form5">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
|
@ -1447,14 +1477,20 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1484,7 +1520,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form6">
|
||||||
@csrf
|
@csrf
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-group"> <!-- Single form-group for all content -->
|
<div class="form-group"> <!-- Single form-group for all content -->
|
||||||
|
|
@ -1875,14 +1911,20 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1912,7 +1954,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form7">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -2142,14 +2184,20 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
|
<!-- Botão centralizado -->
|
||||||
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2177,12 +2225,12 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form8">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
<input type="hidden" name="elemental_tasks_id"
|
<input type="hidden" name="elemental_tasks_id"
|
||||||
value="{{ $receiveDataElementalTask->elemental_tasks_id }}">
|
value="{{ $receiveDataElementalTask->elemental_tasks_id }}">
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
@ -2211,14 +2259,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2246,12 +2299,12 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id='form9'>
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
<input type="hidden" name="elemental_tasks_code"
|
<input type="hidden" name="elemental_tasks_code"
|
||||||
value="{{ $receiveDataElementalTask->elemental_tasks_code }}">
|
value="{{ $receiveDataElementalTask->elemental_tasks_code }}">
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
@ -2307,14 +2360,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2343,7 +2401,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form10">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -2544,14 +2602,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2579,7 +2642,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form11">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -3171,14 +3234,19 @@ class="form-control" placeholder="" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -3207,7 +3275,7 @@ class="form-control" placeholder="" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form12">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -3587,14 +3655,19 @@ class="form-control" placeholder="" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -3622,7 +3695,7 @@ class="form-control" placeholder="" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form13">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -3788,14 +3861,19 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -3823,7 +3901,7 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form14">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -3854,14 +3932,19 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -3889,7 +3972,7 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form15">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -3928,14 +4011,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -3964,7 +4052,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="16">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -4003,14 +4091,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4038,7 +4131,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form17">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -4072,14 +4165,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4107,7 +4205,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form18">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -4274,14 +4372,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4310,7 +4413,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form19">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -4690,14 +4793,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4727,7 +4835,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form20">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
@ -4839,14 +4947,19 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4874,10 +4987,11 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form21">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
|
value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-group"> <!-- Single form-group for all content -->
|
<div class="form-group"> <!-- Single form-group for all content -->
|
||||||
|
|
||||||
|
|
@ -4909,8 +5023,9 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<label>Marca <span style="color: red;">*</span></label>
|
<label>Marca <span style="color: red;">*</span></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 d-flex align-items-center">
|
<div class="col-md-6 d-flex align-items-center">
|
||||||
<input id="seal-brand" name="seal_brand-label" type="text" maxlength="50"
|
<input id="seal-brand" name="seal_brand-label" type="text"
|
||||||
class="form-control" style="width: 100%;" placeholder="" required>
|
maxlength="50" class="form-control" style="width: 100%;"
|
||||||
|
placeholder="" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- ./ Marca -->
|
<!-- ./ Marca -->
|
||||||
|
|
@ -4921,8 +5036,9 @@ class="form-control" style="width: 100%;" placeholder="" required>
|
||||||
<label>Tipo <span style="color: red;">*</span></label>
|
<label>Tipo <span style="color: red;">*</span></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 d-flex align-items-center">
|
<div class="col-md-6 d-flex align-items-center">
|
||||||
<input id="seal-type" name="seal_type-label" type="text" maxlength="50"
|
<input id="seal-type" name="seal_type-label" type="text"
|
||||||
class="form-control" style="width: 100%;" placeholder="" required>
|
maxlength="50" class="form-control" style="width: 100%;"
|
||||||
|
placeholder="" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- ./ Tipo -->
|
<!-- ./ Tipo -->
|
||||||
|
|
@ -4991,14 +5107,19 @@ class="form-control" placeholder="" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -5026,7 +5147,7 @@ class="form-control" placeholder="" required>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form24">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
@ -5057,14 +5178,19 @@ class="form-control" placeholder="" required>
|
||||||
</div> <!-- End of single form-group -->
|
</div> <!-- End of single form-group -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
|
||||||
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
<!-- Botão alinhado à esquerda -->
|
||||||
|
<button type="submit" data-action="cancel" value="cancel" name="stateEquipment"
|
||||||
|
class="btn btn-danger">Cancelar</button>
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Botão centralizado -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" data-action="finish" value="finish" name="stateEquipment"
|
||||||
|
class="btn btn-success mx-auto">Finalizar</button>
|
||||||
|
|
||||||
|
<!-- Botão alinhado à direita -->
|
||||||
|
<button type="submit"data-action="next" value="next" name="stateEquipment"
|
||||||
|
class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -5075,10 +5201,15 @@ class="form-control" placeholder="" required>
|
||||||
</section>
|
</section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
{{-- <div class="row content">
|
||||||
|
<div class="col-sm-6"><button class="btn btn-danger float-left">Voltar</button></div>
|
||||||
|
<div class="col-sm-6"><button class="btn btn-success float-right">Avançar -> Tarefa :: {{}}</button></div>
|
||||||
|
</div> --}}
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
let formSubmitted = false;
|
let formSubmitted = false;
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', (event) => {
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
const forms = document.querySelectorAll('.monitored-form');
|
const forms = document.querySelectorAll('.monitored-form');
|
||||||
forms.forEach(form => {
|
forms.forEach(form => {
|
||||||
|
|
@ -5086,14 +5217,14 @@ class="form-control" placeholder="" required>
|
||||||
form.addEventListener('submit', function() {
|
form.addEventListener('submit', function() {
|
||||||
formSubmitted = true;
|
formSubmitted = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
form.addEventListener('input', function() {
|
form.addEventListener('input', function() {
|
||||||
addBeforeUnload();
|
addBeforeUnload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function addBeforeUnload() {
|
function addBeforeUnload() {
|
||||||
window.addEventListener('beforeunload', function(e) {
|
window.addEventListener('beforeunload', function(e) {
|
||||||
if (!formSubmitted) {
|
if (!formSubmitted) {
|
||||||
|
|
@ -5104,10 +5235,32 @@ function addBeforeUnload() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
// Seletor para todos os botões dentro de qualquer formulário com ID form1 até form23
|
||||||
|
$('form[id^="form"] button').on('click', function(e) {
|
||||||
|
var action = $(this).data('action');
|
||||||
|
|
||||||
|
if (action === 'cancel') {
|
||||||
|
// Previne a validação padrão do formulário
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
// Determina a qual formulário este botão pertence
|
||||||
|
var form = $(this).closest('form');
|
||||||
|
|
||||||
|
// Adiciona um campo input oculto com o valor "cancel" ao formulário específico
|
||||||
|
$('<input>').attr({
|
||||||
|
type: 'hidden',
|
||||||
|
name: 'stateEquipment',
|
||||||
|
value: 'cancel'
|
||||||
|
}).appendTo(form);
|
||||||
|
|
||||||
|
// Envia o formulário específico manualmente
|
||||||
|
form.off('submit').submit();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user