Skip to content

Commit

Permalink
Kursübersicht
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisDotDoNothing committed Apr 7, 2024
1 parent 17b6dca commit 701568a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 23 deletions.
23 changes: 21 additions & 2 deletions templates/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>Kontakt</h1>
<p>Ich freue mich, von Ihnen zu hören! Nutzen Sie eine der folgenden Kontaktmöglichkeiten, um mich zu erreichen:</p>
<h2>Telefon / Mobil</h2>
<p><a href="tel:+4915143353735" title="Mobil"><strong>Mobil:</strong> +49 (0) 151 433 53735</a></p>
<h2>Kontaktformular</h2>
<h2 id="kontaktformular">Kontaktformular</h2>
<p>Verwenden Sie das Kontaktformular auf dieser Seite, um mir eine Nachricht zu senden.</p>
<form name="contact" action="https://formspree.io/f/mnqylged" method="POST" enctype="multipart/form-data" {%if config.extra.netlify_forms %}data-netlify="true" {%endif%}>
<div class="control-group">
Expand Down Expand Up @@ -87,4 +87,23 @@ <h2>Kontaktformular</h2>
</div>
</div>
</div>
{% endblock content %}
{% endblock content %}

{% block extrascripts %}
<script>
document.addEventListener('DOMContentLoaded', function() {
function getQueryParam(param) {
var params = new URLSearchParams(window.location.search);
return params.get(param);
}

var betreff = getQueryParam('betreff');
var nachricht = getQueryParam('nachricht');

if (betreff) document.getElementById('betreff').value = betreff;
if (nachricht) document.getElementById('message').value = nachricht;
});
</script>
</body>

{% endblock extrascripts %}
43 changes: 22 additions & 21 deletions templates/kurse.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,31 @@ <h1>Entdecke Kurse für Tiergesundheit</h1>
<p>Beginnen wir gemeinsam die Reise in die faszinierende Welt der Tiergesundheit.</p>
</div>
</div>
<div class="row featurette">
<h2 style="text-align:center;">Anstehende Veranstaltungen</h2>
<table class="table">
<thead>
<tr>
<th scope="col">Datum</th>
<th scope="col">Kurs</th>
<th scope="col">Ort</th>
<th scope="col">Status</th> <!-- In Planung, Warteliste, Belegt/Voll, Abgesagt, Anmeldung offen-->
</tr>
</thead>
<tbody>
<tr>
<th scope="row">11.05.2024</th>
<td>Akupressur für Pferde</td>
<td>Pulsnitz</td>
<td><a href="https://tierheilpraxis-jessican.de/contact/?betreff=Kurs%20Akupressur%20f%C3%BCr%20Pferde%20am%2011.%20Mai%202024&nachricht=Liebe%20Jessi%20von%20JessICan%2C%0Aich%20bin%20sehr%20interessiert%20an%20Ihrem%20Kurs%20%22Akupressur%20f%C3%BCr%20Pferde%22%20am%2011.%20Mai%202024%20und%20m%C3%B6chte%20mich%20gerne%20daf%C3%BCr%20anmelden.%20Es%20w%C3%A4re%20gro%C3%9Fartig%2C%20wenn%20im%20Kurs%20das%20Thema%20%28bei%20Bedarf%20gern%20ein%20Thema%20Ihrer%20Wahl%2C%20z.B.%20Atemwegserkrankungen%20oder%20Hufrehe%2C%20angeben%29%20behandelt%20werden%20k%C3%B6nnte.%0AMit%20besten%20Gr%C3%BC%C3%9Fen#kontaktformular" class="link-success link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover" title="Anmelden">Jetzt hier anmelden</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>

<hr class="featurette-divider">
<!--
<table class="table">
<thead>
<tr>
<th scope="col">Datum</th>
<th scope="col">Kurs</th>
<th scope="col">Ort</th>
<th scope="col">Status?</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">11.05.2024</th>
<td>Akupressur für Pferde</td>
<td>Pulsnitz</td>
<td>Anmeldung offen</td>
</tr>
</tbody>
</table>
-->

<div class="container">
<div class="row">
<div class="col-md-12 mx-auto">
Expand Down

0 comments on commit 701568a

Please sign in to comment.