Legal and content review.

This commit is contained in:
chriz committed 2026-10-19 20:49:57 +02:00
1 parent 167dc1dfb1
commit 086db21318
14 files changed
+425 -270

No files matched your search

+21 -3
View File
@@ -47,11 +47,11 @@ $form = $session->get('form');
<div class="form-row">
<div class="form-group">
<label class="form-label" for="email">E-Mail-Adresse <span class="required">*</span></label>
<label class="form-label" for="email">E-Mail-Adresse <span class="required" title="Bitte E-Mail-Adresse oder Telefonnummer angeben">*</span></label>
<input type="email" class="form-control" name="email" id="email" required placeholder="ihre.adresse@example.de" value="<?=isset($form) ? htmlspecialchars($form['email']) : ''?>">
</div>
<div class="form-group">
<label class="form-label" for="phone">Telefonnummer <span class="required">*</span></label>
<label class="form-label" for="phone">Telefonnummer <span class="required" title="Bitte E-Mail-Adresse oder Telefonnummer angeben">*</span></label>
<input type="tel" class="form-control" name="phone" id="phone" required placeholder="030 12345678" value="<?=isset($form) ? htmlspecialchars($form['phone']) : ''?>">
</div>
</div>
@@ -63,7 +63,7 @@ $form = $session->get('form');
<div class="form-note">
<svg style="width: 16px; height: 16px; fill: currentColor; vertical-align: middle; margin-right: 4px;" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>
Ihre persönlichen Daten werden von uns nicht gespeichert und ausschließlich zur Kontaktaufnahme verwendet. Wir werden Ihre Angaben niemals an Dritte weitergeben.
Ihre persönlichen Angaben werden vertraulich behandelt, ausschließlich zur Bearbeitung Ihrer Anfrage gemäß unserer <a href="/datenschutz.html" style="text-decoration: underline;">Datenschutzerklärung</a> verarbeitet und niemals an Dritte weitergegeben.
</div>
<div class="form-actions">
@@ -82,5 +82,23 @@ $form = $session->get('form');
$('#contactForm input, #contactForm textarea').one('focus', function() {
$('#formCheck').val('send');
});
// Require at least one contact method (email OR phone) as stated in the instructions
function syncContactRequirement() {
var hasEmail = $.trim($('#email').val()).length > 0;
var hasPhone = $.trim($('#phone').val()).length > 0;
if (hasEmail && !hasPhone) {
$('#phone').prop('required', false);
$('#email').prop('required', true);
} else if (hasPhone && !hasEmail) {
$('#email').prop('required', false);
$('#phone').prop('required', true);
} else {
$('#email').prop('required', true);
$('#phone').prop('required', false);
}
}
$('#email, #phone').on('input change', syncContactRequirement);
syncContactRequirement();
});
</script>