Workstation equipment cycle update button
This commit is contained in:
parent
f3ba489ed6
commit
a9c54f4274
|
|
@ -17,7 +17,6 @@ class WorkstationsJobsController extends Controller
|
|||
{
|
||||
public function receiveAnswersEquipment(Request $request)
|
||||
{
|
||||
|
||||
// Primeiro ele deve criar a associação entre id atual do control + perguntas e respostas
|
||||
$receiveAnswersElementalTasks = new workstationsTaskAnswers;
|
||||
$receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstationid;
|
||||
|
|
@ -54,8 +53,7 @@ public function receiveAnswersEquipment(Request $request)
|
|||
|
||||
// update departure_date value
|
||||
$receiveDataControlWs = ControlEquipmentWorkstation::find($request->control_equipment_workstationid);
|
||||
$receiveDataControlWs->departure_date = now();
|
||||
$receiveDataControlWs->save();
|
||||
|
||||
|
||||
//FINALIZOU A TAREFA ANTERIOR COM DEPARTURE
|
||||
|
||||
|
|
@ -86,6 +84,7 @@ public function receiveAnswersEquipment(Request $request)
|
|||
$receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id);
|
||||
$receiveDataEquipment = Equipment::find($recebeDataControlId->equipment_id);
|
||||
|
||||
|
||||
if ($next_todo < 25) {
|
||||
$elemental_tasks_id = $next_todo;
|
||||
$further_tasks_id = null;
|
||||
|
|
@ -93,6 +92,48 @@ public function receiveAnswersEquipment(Request $request)
|
|||
$elemental_tasks_id = null;
|
||||
$further_tasks_id = $next_todo;
|
||||
}
|
||||
// dd($recebeDataControlId->id_workstations );
|
||||
|
||||
|
||||
if ($request->stateEquipment == "cancel") {
|
||||
$deleteDataControlWhereRefreashPage = ControlEquipmentWorkstation::where('id_workstations', $receiveDataControlWs->id_workstations)
|
||||
->where('equipment_id', $receiveDataEquipment->equipment_id)
|
||||
->whereNotNull('entry_date')
|
||||
->whereNull('departure_date')
|
||||
->first();
|
||||
|
||||
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) {
|
||||
|
|
@ -120,9 +161,8 @@ public function receiveAnswersEquipment(Request $request)
|
|||
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)) {
|
||||
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
|
||||
|
|
@ -150,8 +190,11 @@ public function receiveAnswersEquipment(Request $request)
|
|||
return redirect()->route('enterWorkstation');
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Se a proxima WS for igual a atual deve criar dados para a ws
|
||||
else if ($recebeDataControlId->id_workstations == $next_workstation) {
|
||||
if ($recebeDataControlId->id_workstations == $next_workstation) {
|
||||
|
||||
|
||||
$nextEquipmentTask = DB::select("
|
||||
INSERT INTO control_equipment_workstation
|
||||
|
|
@ -167,16 +210,17 @@ public function receiveAnswersEquipment(Request $request)
|
|||
|
||||
$lastInsertedId = DB::getPdo()->lastInsertId();
|
||||
|
||||
$receiveDataNewElementalTask = ElementalTasks::find($elemental_tasks_id);
|
||||
|
||||
return view('workstations.workstations', [
|
||||
'receiveDataElementalTask' => $receiveDataElementalTask,
|
||||
'receiveDataElementalTask' => $receiveDataNewElementalTask,
|
||||
'receiveDataEquipment' => $receiveDataEquipment,
|
||||
'control_ew_id' => $lastInsertedId,
|
||||
'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("
|
||||
INSERT INTO control_equipment_workstation
|
||||
|
|
@ -191,6 +235,7 @@ public function receiveAnswersEquipment(Request $request)
|
|||
return redirect()->route('enterWorkstation');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Ao selecionar o equipamento para se inicializar a tarefa deve mostrar os dados relacionados.
|
||||
public function getEquipmentData($equipment_id)
|
||||
|
|
|
|||
|
|
@ -9,13 +9,15 @@
|
|||
<link rel="icon" type="image/x-icon" href="{{ URL::asset('assets/dist/img/favicon.ico') }}">
|
||||
|
||||
<!-- 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 -->
|
||||
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/fontawesome-free/css/all.min.css') }}">
|
||||
<!-- Ionicons -->
|
||||
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
|
||||
<!-- 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 -->
|
||||
<link rel="stylesheet" href="{{ URL::asset('assets/plugins/icheck-bootstrap/icheck-bootstrap.min.css') }}">
|
||||
<!-- JQVMap -->
|
||||
|
|
@ -48,7 +50,8 @@
|
|||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
<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 class="nav-item">
|
||||
<a class="nav-link">
|
||||
|
|
@ -78,13 +81,15 @@
|
|||
<!-- User Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<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>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST">
|
||||
@csrf
|
||||
@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>
|
||||
<span>Terminar sessão</span>
|
||||
</a>
|
||||
|
|
@ -93,7 +98,8 @@
|
|||
</li>
|
||||
<!-- Control sidebar -->
|
||||
<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>
|
||||
</a>
|
||||
</li>
|
||||
|
|
@ -105,7 +111,8 @@
|
|||
<aside class="main-sidebar sidebar-dark-primary elevation-4" style="background-color: #09255C">
|
||||
<!-- Brand Logo -->
|
||||
<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>
|
||||
</p>
|
||||
|
||||
|
|
@ -115,7 +122,8 @@
|
|||
<!-- SidebarSearch Form -->
|
||||
<div class="form-inline">
|
||||
<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">
|
||||
<button class="btn btn-sidebar">
|
||||
<i class="fas fa-search fa-fw text-white"></i>
|
||||
|
|
@ -126,7 +134,8 @@
|
|||
|
||||
<!-- Sidebar Menu -->
|
||||
<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
|
||||
with font-awesome or any other icon font library -->
|
||||
<li class="nav-item menu-closed">
|
||||
|
|
@ -153,8 +162,7 @@ class="nav-link text-white">
|
|||
<li class="nav-item menu-closed">
|
||||
<a href="#" class="nav-link text-white" style="background-color: #ba9420;">
|
||||
<i class="nav-icon fas fa-undo"></i>
|
||||
<p>
|
||||
{{ $equipmentsReturnedCount }} retornadas
|
||||
<p>{{ $equipmentsReturnedCount }} retornadas
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
|
|
@ -204,7 +212,8 @@ class="nav-link text-white">
|
|||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<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>
|
||||
Todos os direitos reservados.
|
||||
<div class="float-right d-none d-sm-inline-block">
|
||||
|
|
@ -221,14 +230,16 @@ class="nav-link text-white">
|
|||
</footer> --}}
|
||||
|
||||
<!-- 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 -->
|
||||
<div class="p-3 control-sidebar-content">
|
||||
|
||||
<!-- SidebarSearch Form -->
|
||||
<div class="form-inline">
|
||||
<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">
|
||||
<button class="btn btn-sidebar">
|
||||
<i class="fas fa-search fa-fw text-white"></i>
|
||||
|
|
@ -239,7 +250,8 @@ class="nav-link text-white">
|
|||
|
||||
<!-- Sidebar Menu -->
|
||||
<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
|
||||
with font-awesome or any other icon font library -->
|
||||
<li class="nav-item menu-closed">
|
||||
|
|
@ -364,8 +376,12 @@ function(qrCodeMessage) {
|
|||
startScan.style.display = "block";
|
||||
|
||||
// Trigger the search functionality for both sidebars
|
||||
searchForValueAndNavigate(qrCodeMessage, '.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');
|
||||
searchForValueAndNavigate(qrCodeMessage,
|
||||
'.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) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
</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
|
||||
<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>
|
||||
<div class="card-footer d-flex justify-content-between">
|
||||
<!-- Left-aligned button -->
|
||||
|
||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||
{{-- <button type="button" class="btn btn-primary">Cancelar</button> --}}
|
||||
<!-- Right-aligned button -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -184,7 +193,8 @@ class="form-control" placeholder="">
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</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
|
||||
|
||||
<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>
|
||||
<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) -->
|
||||
{{-- <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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -259,7 +275,8 @@ class="form-control" placeholder="">
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</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
|
||||
|
||||
<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>
|
||||
<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) -->
|
||||
{{-- <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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -693,7 +716,8 @@ class="form-control datetimepicker-input"
|
|||
|
||||
</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
|
||||
|
||||
<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>
|
||||
<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) -->
|
||||
{{-- <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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -1126,7 +1156,7 @@ class="form-control datetimepicker-input"
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="idDoFormulario">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form5">
|
||||
@csrf
|
||||
<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>
|
||||
<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) -->
|
||||
{{-- <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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -1484,7 +1520,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form6">
|
||||
@csrf
|
||||
<div class="card-body">
|
||||
<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>
|
||||
<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) -->
|
||||
{{-- <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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -1912,7 +1954,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form7">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -2142,14 +2184,20 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -2177,7 +2225,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form8">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -2211,14 +2259,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -2246,7 +2299,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id='form9'>
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -2307,14 +2360,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
<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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -2343,7 +2401,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form10">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -2544,14 +2602,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -2579,7 +2642,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form11">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -3171,14 +3234,19 @@ class="form-control" placeholder="" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -3207,7 +3275,7 @@ class="form-control" placeholder="" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form12">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -3587,14 +3655,19 @@ class="form-control" placeholder="" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -3622,7 +3695,7 @@ class="form-control" placeholder="" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form13">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -3788,14 +3861,19 @@ class="form-control" style="width: 100%;" placeholder="">
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -3823,7 +3901,7 @@ class="form-control" style="width: 100%;" placeholder="">
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form14">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -3854,14 +3932,19 @@ class="form-control" style="width: 100%;" placeholder="">
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -3889,7 +3972,7 @@ class="form-control" style="width: 100%;" placeholder="">
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form15">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -3928,14 +4011,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -3964,7 +4052,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="16">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -4003,14 +4091,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -4038,7 +4131,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form17">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -4072,14 +4165,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -4107,7 +4205,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form18">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -4274,14 +4372,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -4310,7 +4413,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form19">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -4690,14 +4793,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -4727,7 +4835,7 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form20">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||
<div class="card-body">
|
||||
|
|
@ -4839,14 +4947,19 @@ class="form-control select2" style="width: 100%;" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -4874,9 +4987,10 @@ class="form-control select2" style="width: 100%;" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form21">
|
||||
@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="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>
|
||||
</div>
|
||||
<div class="col-md-6 d-flex align-items-center">
|
||||
<input id="seal-brand" name="seal_brand-label" type="text" maxlength="50"
|
||||
class="form-control" style="width: 100%;" placeholder="" required>
|
||||
<input id="seal-brand" name="seal_brand-label" type="text"
|
||||
maxlength="50" class="form-control" style="width: 100%;"
|
||||
placeholder="" required>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./ Marca -->
|
||||
|
|
@ -4921,8 +5036,9 @@ class="form-control" style="width: 100%;" placeholder="" required>
|
|||
<label>Tipo <span style="color: red;">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-6 d-flex align-items-center">
|
||||
<input id="seal-type" name="seal_type-label" type="text" maxlength="50"
|
||||
class="form-control" style="width: 100%;" placeholder="" required>
|
||||
<input id="seal-type" name="seal_type-label" type="text"
|
||||
maxlength="50" class="form-control" style="width: 100%;"
|
||||
placeholder="" required>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./ Tipo -->
|
||||
|
|
@ -4991,14 +5107,19 @@ class="form-control" placeholder="" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -5026,7 +5147,7 @@ class="form-control" placeholder="" required>
|
|||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form24">
|
||||
@csrf
|
||||
<input type="hidden" name="control_equipment_workstationid"
|
||||
value="{{ $control_ew_id }}">
|
||||
|
|
@ -5057,14 +5178,19 @@ class="form-control" placeholder="" required>
|
|||
</div> <!-- End of single form-group -->
|
||||
</div>
|
||||
<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) -->
|
||||
{{-- <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 -->
|
||||
<button type="submit" class="btn btn-primary">Seguinte</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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -5075,6 +5201,11 @@ class="form-control" placeholder="" required>
|
|||
</section>
|
||||
@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">
|
||||
let formSubmitted = false;
|
||||
|
|
@ -5106,8 +5237,30 @@ function addBeforeUnload() {
|
|||
</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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user