diff --git a/app/Filament/Admin/Resources/BenefitResource/Pages/EditBenefit.php b/app/Filament/Admin/Resources/BenefitResource/Pages/EditBenefit.php index 5e703812..cc0cd3d9 100644 --- a/app/Filament/Admin/Resources/BenefitResource/Pages/EditBenefit.php +++ b/app/Filament/Admin/Resources/BenefitResource/Pages/EditBenefit.php @@ -5,6 +5,7 @@ namespace App\Filament\Admin\Resources\BenefitResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Actions\ChangeNomenclatureStatusAction; use App\Filament\Admin\Resources\BenefitResource; use Filament\Actions; @@ -13,6 +14,8 @@ class EditBenefit extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = BenefitResource::class; public function getBreadcrumbs(): array diff --git a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php index fd321705..c0166661 100644 --- a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php +++ b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php @@ -5,6 +5,7 @@ namespace App\Filament\Admin\Resources\InstitutionResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Resources\InstitutionResource; use App\Forms\Components\Repeater; use App\Models\Organization; @@ -16,6 +17,8 @@ class EditInstitutionCenters extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = InstitutionResource::class; protected function getRedirectUrl(): ?string diff --git a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php index 9b75b22e..58256ffd 100644 --- a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php +++ b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php @@ -5,6 +5,7 @@ namespace App\Filament\Admin\Resources\InstitutionResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Enums\AreaType; use App\Enums\OrganizationType; use App\Filament\Admin\Resources\InstitutionResource; @@ -20,6 +21,8 @@ class EditInstitutionDetails extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = InstitutionResource::class; protected function getRedirectUrl(): ?string diff --git a/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/AdminsRelationManager.php b/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/AdminsRelationManager.php index a43f792e..01d968eb 100644 --- a/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/AdminsRelationManager.php +++ b/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/AdminsRelationManager.php @@ -4,6 +4,7 @@ namespace App\Filament\Admin\Resources\InstitutionResource\RelationManagers; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Resources\InstitutionResource; use App\Filament\Admin\Resources\UserInstitutionResource\Pages\EditUserInstitution; use App\Tables\Columns\DateTimeColumn; @@ -19,6 +20,8 @@ class AdminsRelationManager extends RelationManager { + use PreventSubmitFormOnEnter; + protected static string $relationship = 'admins'; public function isReadOnly(): bool diff --git a/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/OrganizationsRelationManager.php b/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/OrganizationsRelationManager.php index 235a58f8..8fa01c1c 100644 --- a/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/OrganizationsRelationManager.php +++ b/app/Filament/Admin/Resources/InstitutionResource/RelationManagers/OrganizationsRelationManager.php @@ -4,6 +4,7 @@ namespace App\Filament\Admin\Resources\InstitutionResource\RelationManagers; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Resources\InstitutionResource; use App\Infolists\Components\DocumentPreview; use App\Infolists\Components\SectionHeader; @@ -19,6 +20,8 @@ class OrganizationsRelationManager extends RelationManager { + use PreventSubmitFormOnEnter; + protected static string $relationship = 'organizations'; protected static string $view = 'infolists.infolist-relation-manager'; diff --git a/app/Filament/Admin/Resources/ResultResource/Pages/EditResult.php b/app/Filament/Admin/Resources/ResultResource/Pages/EditResult.php index 86b4ecd4..7d7d3af5 100644 --- a/app/Filament/Admin/Resources/ResultResource/Pages/EditResult.php +++ b/app/Filament/Admin/Resources/ResultResource/Pages/EditResult.php @@ -5,6 +5,7 @@ namespace App\Filament\Admin\Resources\ResultResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Actions\ChangeNomenclatureStatusAction; use App\Filament\Admin\Resources\ResultResource; use Filament\Actions; @@ -13,6 +14,8 @@ class EditResult extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = ResultResource::class; public function getBreadcrumbs(): array diff --git a/app/Filament/Admin/Resources/RoleResource/Pages/EditRole.php b/app/Filament/Admin/Resources/RoleResource/Pages/EditRole.php index 5ed88bae..6fd83868 100644 --- a/app/Filament/Admin/Resources/RoleResource/Pages/EditRole.php +++ b/app/Filament/Admin/Resources/RoleResource/Pages/EditRole.php @@ -5,6 +5,7 @@ namespace App\Filament\Admin\Resources\RoleResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Actions\ChangeNomenclatureStatusAction; use App\Filament\Admin\Resources\RoleResource; use Filament\Actions\DeleteAction; @@ -13,6 +14,8 @@ class EditRole extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = RoleResource::class; public function getTitle(): string|Htmlable diff --git a/app/Filament/Admin/Resources/ServiceResource/Pages/EditService.php b/app/Filament/Admin/Resources/ServiceResource/Pages/EditService.php index d9b4c302..0b7da039 100644 --- a/app/Filament/Admin/Resources/ServiceResource/Pages/EditService.php +++ b/app/Filament/Admin/Resources/ServiceResource/Pages/EditService.php @@ -5,6 +5,7 @@ namespace App\Filament\Admin\Resources\ServiceResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Actions\ChangeNomenclatureStatusAction; use App\Filament\Admin\Resources\ServiceResource; use Filament\Actions\DeleteAction; @@ -13,6 +14,8 @@ class EditService extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = ServiceResource::class; public function getBreadcrumbs(): array diff --git a/app/Filament/Admin/Resources/UserResource/Pages/EditUser.php b/app/Filament/Admin/Resources/UserResource/Pages/EditUser.php index 5b6c83e1..a914d9d1 100644 --- a/app/Filament/Admin/Resources/UserResource/Pages/EditUser.php +++ b/app/Filament/Admin/Resources/UserResource/Pages/EditUser.php @@ -4,12 +4,15 @@ namespace App\Filament\Admin\Resources\UserResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Admin\Resources\UserResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; class EditUser extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = UserResource::class; protected function getHeaderActions(): array diff --git a/app/Filament/Organizations/Resources/BeneficiaryInterventionResource/Pages/EditBeneficiaryIntervention.php b/app/Filament/Organizations/Resources/BeneficiaryInterventionResource/Pages/EditBeneficiaryIntervention.php index d7834cd5..f5e49d28 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryInterventionResource/Pages/EditBeneficiaryIntervention.php +++ b/app/Filament/Organizations/Resources/BeneficiaryInterventionResource/Pages/EditBeneficiaryIntervention.php @@ -6,6 +6,7 @@ use App\Actions\BackAction; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\BeneficiaryInterventionResource; use App\Filament\Organizations\Resources\InterventionPlanResource; use App\Filament\Organizations\Resources\InterventionServiceResource; @@ -17,6 +18,7 @@ class EditBeneficiaryIntervention extends EditRecord { use HasParentResource; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryInterventionResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileDetails.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileDetails.php index 17758a2c..89733708 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileDetails.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileDetails.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\CloseFile; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToCloseFile; use App\Filament\Organizations\Resources\BeneficiaryResource; use App\Forms\Components\DatePicker; @@ -21,6 +22,7 @@ class EditCloseFileDetails extends EditRecord { use RedirectToCloseFile; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileGeneralDetails.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileGeneralDetails.php index 3ed5c12a..bec9d928 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileGeneralDetails.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/CloseFile/EditCloseFileGeneralDetails.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\CloseFile; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToCloseFile; use App\Enums\AdmittanceReason; use App\Enums\CloseMethod; @@ -23,6 +24,7 @@ class EditCloseFileGeneralDetails extends EditRecord { use RedirectToCloseFile; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditBeneficiaryPartner.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditBeneficiaryPartner.php index fa448286..80241d0b 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditBeneficiaryPartner.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditBeneficiaryPartner.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\DetailedEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToDetailedEvaluation; use App\Enums\AddressType; use App\Enums\Occupation; @@ -25,6 +26,7 @@ class EditBeneficiaryPartner extends EditRecord { use RedirectToDetailedEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluation.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluation.php index 03199fbb..1e786847 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluation.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluation.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\DetailedEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToDetailedEvaluation; use App\Filament\Organizations\Resources\BeneficiaryResource; use App\Forms\Components\DatePicker; @@ -21,6 +22,7 @@ class EditDetailedEvaluation extends EditRecord { use RedirectToDetailedEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluationResult.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluationResult.php index 401083db..c9e84015 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluationResult.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditDetailedEvaluationResult.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\DetailedEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToDetailedEvaluation; use App\Enums\RecommendationService; use App\Filament\Organizations\Resources\BeneficiaryResource; @@ -21,6 +22,7 @@ class EditDetailedEvaluationResult extends EditRecord { use RedirectToDetailedEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditMultidisciplinaryEvaluation.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditMultidisciplinaryEvaluation.php index ffb2ea1a..c80b3fda 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditMultidisciplinaryEvaluation.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/DetailedEvaluation/EditMultidisciplinaryEvaluation.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\DetailedEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToDetailedEvaluation; use App\Enums\Applicant; use App\Filament\Organizations\Resources\BeneficiaryResource; @@ -25,6 +26,7 @@ class EditMultidisciplinaryEvaluation extends EditRecord { use RedirectToDetailedEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAggressor.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAggressor.php index 1ab04e33..ef82522e 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAggressor.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAggressor.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToPersonalInformation; use App\Enums\AggressorLegalHistory; use App\Enums\AggressorRelationship; @@ -36,6 +37,7 @@ class EditAggressor extends EditRecord { use RedirectToPersonalInformation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAntecedents.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAntecedents.php index 6ab8ec94..94d3170d 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAntecedents.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditAntecedents.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToPersonalInformation; use App\Enums\Ternary; use App\Filament\Organizations\Resources\BeneficiaryResource; @@ -22,6 +23,7 @@ class EditAntecedents extends EditRecord { use RedirectToPersonalInformation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryIdentity.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryIdentity.php index 1507b729..15162c06 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryIdentity.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryIdentity.php @@ -5,6 +5,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages; use alcea\cnp\Cnp; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToIdentity; use App\Enums\AddressType; use App\Enums\Citizenship; @@ -38,6 +39,7 @@ class EditBeneficiaryIdentity extends EditRecord { use RedirectToIdentity; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryPersonalInformation.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryPersonalInformation.php index 1371a693..43906b57 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryPersonalInformation.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditBeneficiaryPersonalInformation.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToPersonalInformation; use App\Enums\DisabilityDegree; use App\Enums\DisabilityType; @@ -30,6 +31,7 @@ class EditBeneficiaryPersonalInformation extends EditRecord { use RedirectToPersonalInformation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditChildrenIdentity.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditChildrenIdentity.php index 87e98d54..dc337e22 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditChildrenIdentity.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditChildrenIdentity.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToIdentity; use App\Enums\GenderShortValues; use App\Filament\Organizations\Resources\BeneficiaryResource; @@ -27,6 +28,7 @@ class EditChildrenIdentity extends EditRecord { use RedirectToIdentity; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditFlowPresentation.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditFlowPresentation.php index b02f29d2..6a275031 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditFlowPresentation.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/EditFlowPresentation.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToPersonalInformation; use App\Enums\ActLocation; use App\Enums\NotificationMode; @@ -26,6 +27,7 @@ class EditFlowPresentation extends EditRecord { use RedirectToPersonalInformation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditBeneficiarySituation.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditBeneficiarySituation.php index 65f9141c..3c4c461a 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditBeneficiarySituation.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditBeneficiarySituation.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\InitialEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToInitialEvaluation; use App\Filament\Organizations\Resources\BeneficiaryResource; use App\Services\Breadcrumb\BeneficiaryBreadcrumb; @@ -20,6 +21,7 @@ class EditBeneficiarySituation extends EditRecord { use RedirectToInitialEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditEvaluationDetails.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditEvaluationDetails.php index 8aeb522c..f5e1efdb 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditEvaluationDetails.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditEvaluationDetails.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\InitialEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToInitialEvaluation; use App\Filament\Organizations\Resources\BeneficiaryResource; use App\Forms\Components\DatePicker; @@ -24,6 +25,7 @@ class EditEvaluationDetails extends EditRecord { use RedirectToInitialEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRequestedServices.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRequestedServices.php index c73177ac..352badb4 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRequestedServices.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRequestedServices.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\InitialEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToInitialEvaluation; use App\Enums\RecommendationService; use App\Filament\Organizations\Resources\BeneficiaryResource; @@ -20,6 +21,7 @@ class EditRequestedServices extends EditRecord { use RedirectToInitialEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRiskFactors.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRiskFactors.php index b41b034c..945b524a 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRiskFactors.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditRiskFactors.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\InitialEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToInitialEvaluation; use App\Enums\AggravatingFactorsSchema; use App\Enums\Helps; @@ -32,6 +33,7 @@ class EditRiskFactors extends EditRecord { use RedirectToInitialEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditViolence.php b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditViolence.php index a961b5dc..1512889a 100644 --- a/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditViolence.php +++ b/app/Filament/Organizations/Resources/BeneficiaryResource/Pages/InitialEvaluation/EditViolence.php @@ -4,6 +4,7 @@ namespace App\Filament\Organizations\Resources\BeneficiaryResource\Pages\InitialEvaluation; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToInitialEvaluation; use App\Enums\Frequency; use App\Enums\Violence; @@ -23,6 +24,7 @@ class EditViolence extends EditRecord { use RedirectToInitialEvaluation; + use PreventSubmitFormOnEnter; protected static string $resource = BeneficiaryResource::class; diff --git a/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/CreateInterventionPlan.php b/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/CreateInterventionPlan.php index f38909d5..c6002d88 100644 --- a/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/CreateInterventionPlan.php +++ b/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/CreateInterventionPlan.php @@ -11,6 +11,7 @@ class CreateInterventionPlan extends CreateRecord { use PreventSubmitFormOnEnter; + use PreventSubmitFormOnEnter; protected static string $resource = InterventionPlanResource::class; } diff --git a/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/EditInterventionPlan.php b/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/EditInterventionPlan.php index df8bf921..4d6fe9c2 100644 --- a/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/EditInterventionPlan.php +++ b/app/Filament/Organizations/Resources/InterventionPlanResource/Pages/EditInterventionPlan.php @@ -4,12 +4,15 @@ namespace App\Filament\Organizations\Resources\InterventionPlanResource\Pages; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\InterventionPlanResource; use Filament\Actions; use Filament\Resources\Pages\EditRecord; class EditInterventionPlan extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = InterventionPlanResource::class; protected function getHeaderActions(): array diff --git a/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php b/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php index 8f84f977..f4dad21c 100644 --- a/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php +++ b/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditCounselingSheet.php @@ -5,6 +5,7 @@ namespace App\Filament\Organizations\Resources\InterventionServiceResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Enums\CounselingSheet; use App\Enums\ExtendedFrequency; use App\Enums\FamilyRelationship; @@ -45,6 +46,8 @@ class EditCounselingSheet extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = InterventionServiceResource::class; public function getTitle(): string|Htmlable diff --git a/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditInterventionService.php b/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditInterventionService.php index ca3da853..cf9d944e 100644 --- a/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditInterventionService.php +++ b/app/Filament/Organizations/Resources/InterventionServiceResource/Pages/EditInterventionService.php @@ -6,6 +6,7 @@ use App\Actions\BackAction; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\BeneficiaryResource; use App\Filament\Organizations\Resources\InterventionPlanResource; use App\Filament\Organizations\Resources\InterventionPlanResource\Widgets\ServicesWidget; @@ -20,6 +21,7 @@ class EditInterventionService extends EditRecord { use HasParentResource; + use PreventSubmitFormOnEnter; protected static string $resource = InterventionServiceResource::class; diff --git a/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditChildren.php b/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditChildren.php index 352699f9..c9e841f2 100644 --- a/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditChildren.php +++ b/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditChildren.php @@ -5,6 +5,7 @@ namespace App\Filament\Organizations\Resources\MonitoringResource\Pages; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToMonitoring; use App\Enums\ChildAggressorRelationship; use App\Enums\MaintenanceSources; @@ -28,6 +29,7 @@ class EditChildren extends EditRecord { use HasParentResource; use RedirectToMonitoring; + use PreventSubmitFormOnEnter; protected static string $resource = MonitoringResource::class; diff --git a/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditDetails.php b/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditDetails.php index 8596386b..8cd36e79 100644 --- a/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditDetails.php +++ b/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditDetails.php @@ -5,6 +5,7 @@ namespace App\Filament\Organizations\Resources\MonitoringResource\Pages; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToMonitoring; use App\Filament\Organizations\Resources\MonitoringResource; use App\Forms\Components\DatePicker; @@ -28,6 +29,7 @@ class EditDetails extends EditRecord { use HasParentResource; use RedirectToMonitoring; + use PreventSubmitFormOnEnter; protected static string $resource = MonitoringResource::class; diff --git a/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditGeneral.php b/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditGeneral.php index 9d77f26a..b6e90de2 100644 --- a/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditGeneral.php +++ b/app/Filament/Organizations/Resources/MonitoringResource/Pages/EditGeneral.php @@ -5,6 +5,7 @@ namespace App\Filament\Organizations\Resources\MonitoringResource\Pages; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Concerns\RedirectToMonitoring; use App\Filament\Organizations\Resources\MonitoringResource; use App\Forms\Components\DatePicker; @@ -24,6 +25,7 @@ class EditGeneral extends EditRecord { use HasParentResource; use RedirectToMonitoring; + use PreventSubmitFormOnEnter; protected static string $resource = MonitoringResource::class; diff --git a/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanDetails.php b/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanDetails.php index 1183d0f5..246e3f5e 100644 --- a/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanDetails.php +++ b/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanDetails.php @@ -6,6 +6,7 @@ use App\Actions\BackAction; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\InterventionPlanResource; use App\Filament\Organizations\Resources\MonthlyPlanResource; use App\Forms\Components\DatePicker; @@ -21,6 +22,7 @@ class EditMonthlyPlanDetails extends EditRecord { use HasParentResource; + use PreventSubmitFormOnEnter; protected static string $resource = MonthlyPlanResource::class; diff --git a/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanServicesAndInterventions.php b/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanServicesAndInterventions.php index b65fb475..66583846 100644 --- a/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanServicesAndInterventions.php +++ b/app/Filament/Organizations/Resources/MonthlyPlanResource/Pages/EditMonthlyPlanServicesAndInterventions.php @@ -6,6 +6,7 @@ use App\Actions\BackAction; use App\Concerns\HasParentResource; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\InterventionPlanResource; use App\Filament\Organizations\Resources\MonthlyPlanResource; use App\Forms\Components\DatePicker; @@ -31,6 +32,7 @@ class EditMonthlyPlanServicesAndInterventions extends EditRecord { use HasParentResource; + use PreventSubmitFormOnEnter; protected static string $resource = MonthlyPlanResource::class; diff --git a/app/Filament/Organizations/Resources/ServiceResource/Pages/EditService.php b/app/Filament/Organizations/Resources/ServiceResource/Pages/EditService.php index 4337d55d..1deb03be 100644 --- a/app/Filament/Organizations/Resources/ServiceResource/Pages/EditService.php +++ b/app/Filament/Organizations/Resources/ServiceResource/Pages/EditService.php @@ -5,6 +5,7 @@ namespace App\Filament\Organizations\Resources\ServiceResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\ServiceResource; use App\Filament\Organizations\Resources\ServiceResource\Actions\ChangeStatusAction; use Filament\Actions; @@ -13,6 +14,8 @@ class EditService extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = ServiceResource::class; protected function getRedirectUrl(): ?string diff --git a/app/Filament/Organizations/Resources/UserResource/Pages/EditUser.php b/app/Filament/Organizations/Resources/UserResource/Pages/EditUser.php index 45b6ee92..f45ea7ec 100644 --- a/app/Filament/Organizations/Resources/UserResource/Pages/EditUser.php +++ b/app/Filament/Organizations/Resources/UserResource/Pages/EditUser.php @@ -5,12 +5,15 @@ namespace App\Filament\Organizations\Resources\UserResource\Pages; use App\Actions\BackAction; +use App\Concerns\PreventSubmitFormOnEnter; use App\Filament\Organizations\Resources\UserResource; use Filament\Resources\Pages\EditRecord; use Illuminate\Contracts\Support\Htmlable; class EditUser extends EditRecord { + use PreventSubmitFormOnEnter; + protected static string $resource = UserResource::class; public function getBreadcrumbs(): array