Remove unused form and enhance wash certificate handling

The `book_interior_wash_f` form was removed due to redundancy. Added functionality to handle wash certificate generation, including safety seal and operator data, and added a new form `complete_booking_f` to finalize bookings without certificates. Adjustments were made to several related components to ensure seamless integration.
This commit is contained in:
Jepp9350
2025-04-10 12:57:29 +02:00
parent 849f1cc53e
commit c8df3230d1
10 changed files with 357 additions and 233 deletions
+9
View File
@@ -48,6 +48,15 @@ trait route_t
return true;
}
public function requireSameLength(mixed $arg1, mixed $arg2): bool
{
global $response;
if (strlen($arg1) !== strlen($arg2)) {
$response->error('Invalid length. Expected: ' . strlen($arg2) . ' Got: ' . strlen($arg1), 400);
}
return true;
}
/**
* Require parameter to be one of the given types
* @param mixed $value The value to check