feat: improve Kontaktformular error handling and enhance UI feedback

Updated error message formatting for more user-friendly feedback. Enhanced UI by restructuring success and error notifications with improved styles and layout. Added a `name` attribute to the submit button for better form submission handling. Adjusted text field IDs and names for consistency.
This commit is contained in:
2025-07-13 17:57:40 +02:00
parent 78789132a4
commit 3b36b83b40
2 changed files with 22 additions and 14 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
} catch (Exception $error) {
if (option('debug')):
$alert['error'] = 'Beim Versenden ist ein Fehler aufgetreten: <strong>' . $error->getMessage() . '</strong>';
$alert['error'] = 'Beim Versenden ist ein Fehler aufgetreten:<br /> <strong>' . $error->getMessage() . '</strong>';
else:
$alert['error'] = 'Beim Versenden ist ein Fehler aufgetreten!';
endif;