Telegram bot contact intergratie
This commit is contained in:
@ -79,42 +79,55 @@
|
||||
|
||||
<div class="contact-form">
|
||||
<h2>Stuur een bericht</h2>
|
||||
<form action="#" method="POST">
|
||||
|
||||
{{if .ErrorMessage}}
|
||||
<div class="alert alert-error">
|
||||
<strong>❌ Fout:</strong> {{.ErrorMessage}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .SuccessMessage}}
|
||||
<div class="alert alert-success">
|
||||
<strong>✅ Gelukt:</strong> {{.SuccessMessage}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<form action="/contact" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="name">Naam *</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
<input type="text" id="name" name="name" value="{{.FormData.Name}}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email">Email *</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
<input type="email" id="email" name="email" value="{{.FormData.Email}}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="phone">Telefoon</label>
|
||||
<input type="tel" id="phone" name="phone">
|
||||
<input type="tel" id="phone" name="phone" value="{{.FormData.Phone}}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="computer">Huidige computer</label>
|
||||
<input type="text" id="computer" name="computer" placeholder="Bijv. Dell Inspiron 2015, HP Pavilion 2018">
|
||||
<input type="text" id="computer" name="computer" value="{{.FormData.Computer}}" placeholder="Bijv. Dell Inspiron 2015, HP Pavilion 2018">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="service">Gewenste service</label>
|
||||
<select id="service" name="service">
|
||||
<option value="">Selecteer een optie</option>
|
||||
<option value="advice">Gratis advies</option>
|
||||
<option value="installation">Linux installatie</option>
|
||||
<option value="migration">Data migratie</option>
|
||||
<option value="training">Training & ondersteuning</option>
|
||||
<option value="other">Anders</option>
|
||||
<option value="advice" {{if eq .FormData.Service "advice"}}selected{{end}}>Gratis advies</option>
|
||||
<option value="installation" {{if eq .FormData.Service "installation"}}selected{{end}}>Linux installatie</option>
|
||||
<option value="migration" {{if eq .FormData.Service "migration"}}selected{{end}}>Data migratie</option>
|
||||
<option value="training" {{if eq .FormData.Service "training"}}selected{{end}}>Training & ondersteuning</option>
|
||||
<option value="other" {{if eq .FormData.Service "other"}}selected{{end}}>Anders</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="message">Bericht *</label>
|
||||
<textarea id="message" name="message" rows="5" required placeholder="Vertel ons over uw situatie en hoe wij u kunnen helpen..."></textarea>
|
||||
<textarea id="message" name="message" rows="5" required placeholder="Vertel ons over uw situatie en hoe wij u kunnen helpen...">{{.FormData.Message}}</textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Verstuur bericht</button>
|
||||
@ -172,7 +185,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-bottom">
|
||||
<p>© 2024 {{.CompanyName}}. Alle rechten voorbehouden.</p>
|
||||
<p>© {{.CurrentYear}} {{.CompanyName}}. Alle rechten voorbehouden.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
Reference in New Issue
Block a user