refactor: update form actions, reintroduce captcha and modify button styles
Some checks failed
Build and Deploy Hugo Site / buildAndDeploy (push) Failing after 43s

This commit is contained in:
Andreas Hnida 2024-04-26 23:12:43 +02:00
commit d5867d2a7d
6 changed files with 59 additions and 50 deletions

View file

@ -22,7 +22,7 @@ bestellformular = true
{{% /aligncenter %}}
<form action="https://verua.dev-1.andreashnida.de/php/ajaxmail.php" method="POST" id="bestellformular">
<form action="/php/ajaxmail.php" method="POST" id="bestellformular">
<div id="formPartOne">
<input type="hidden" name="formularart" value="Formulaire de commande pour les Professionnels de santé libéraux">
<div>
@ -116,12 +116,12 @@ bestellformular = true
<textarea id="anmerkung" name="anmerkung" rows="4"></textarea>
</div>
</div>
<!-- <div class ="captcha-container"></div> nous renonçons pour le moment au Captcha -->
<div class="w-full flex justify-center">
<button id="bestellformular-btn" type="submit" class="submitbutton text-white mx-auto submit-after-valid-captcha-bak">Commander avec obligation de paiement</button>
<center class="w-full">
{{< captcha >}}
<button id="bestellformular-btn" type="submit" class="submitbutton text-white mx-auto submit-after-valid-captcha" >Commander avec obligation de paiement</button>
<div id="notification" class="bg-blue-500 text-white rounded invisible opacity-0 hidden">Notification</div>
</div>
<p><div id="notification" class="bg-blue-500 text-white rounded invisible opacity-0 hidden">Notification</div></p>
</center>
</form>
{{% /section %}}

View file

@ -22,7 +22,7 @@ bestellformular = true
{{% /aligncenter %}}
<form action="https://verua.dev-1.andreashnida.de/php/ajaxmail.php" method="POST" id="bestellformular">
<form action="/php/ajaxmail.php" method="POST" id="bestellformular">
<input type="hidden" name="formularart" value="Zusatzmodule Freiberufliche">
<div>
<label class="hidden" for="gender">Sexe</label>
@ -88,10 +88,12 @@ bestellformular = true
<input type="checkbox" id="zusatzmodul-perigon" name="zusatzmodul-perigon" value="Ja">
<label for="zusatzmodul-perigon">Module complémentaire Perigon, frais de désactivation uniques 50.00 CHF</label>
</div>
<!-- <div class ="captcha-container"></div> nous renonçons pour le moment au Captcha -->
<div class="w-full flex justify-center">
<button id="bestellformular-btn" type="submit" class="submitbutton text-white mx-auto submit-after-valid-captcha-bak">Commander avec obligation de paiement</button>
<div id="notification" class="bg-blue-500 text-white rounded invisible opacity-0 hidden">Notification</div>
</div>
<center class="w-full">
{{< captcha >}}
<button id="bestellformular-btn" type="submit" class="submitbutton text-white mx-auto submit-after-valid-captcha" >Commander avec obligation de paiement</button>
<p><div id="notification" class="bg-blue-500 text-white rounded invisible opacity-0 hidden">Notification</div></p>
</center>
</form>
{{% /section %}}