feat: adjust newsletter registration form layout
closes #869d673mn
This commit is contained in:
+20
-7
@@ -9,9 +9,6 @@
|
|||||||
<f:form method="post" action="subscriptionFormSubmit" name="subscriptionRequest" section="newsletter-form" object="{subscriptionRequest}">
|
<f:form method="post" action="subscriptionFormSubmit" name="subscriptionRequest" section="newsletter-form" object="{subscriptionRequest}">
|
||||||
<div class="grid lg:grid-cols-2 lg:gap-x-8 items-start">
|
<div class="grid lg:grid-cols-2 lg:gap-x-8 items-start">
|
||||||
<div>
|
<div>
|
||||||
<h3>
|
|
||||||
Meine Daten
|
|
||||||
</h3>
|
|
||||||
<f:render section="Field" arguments="{property: 'firstName', label: 'Vorname'}"/>
|
<f:render section="Field" arguments="{property: 'firstName', label: 'Vorname'}"/>
|
||||||
<f:render section="Field" arguments="{property: 'lastName', label: 'Nachname'}"/>
|
<f:render section="Field" arguments="{property: 'lastName', label: 'Nachname'}"/>
|
||||||
<f:render section="Field" arguments="{property: 'email', label: 'E-Mail'}"/>
|
<f:render section="Field" arguments="{property: 'email', label: 'E-Mail'}"/>
|
||||||
@@ -39,11 +36,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h3>
|
|
||||||
Ich möchte folgende Newsletter erhalten
|
|
||||||
</h3>
|
|
||||||
<f:form.validationResults for="subscriptionRequest.listIds">
|
<f:form.validationResults for="subscriptionRequest.listIds">
|
||||||
<f:for each="{lists}" as="list">
|
<f:for each="{lists}" as="list" iteration="iteration">
|
||||||
|
<f:comment><!-- show different headline for first newsletter in list --></f:comment>
|
||||||
|
<f:if condition="{iteration.isFirst}">
|
||||||
|
<f:then>
|
||||||
|
<h3>
|
||||||
|
News & Angebote per Mail
|
||||||
|
</h3>
|
||||||
|
</f:then>
|
||||||
|
<f:else>
|
||||||
|
<f:comment><!-- show headline only once --></f:comment>
|
||||||
|
<f:if condition="{alertHeadline}">
|
||||||
|
<f:else>
|
||||||
|
<f:variable name="alertHeadline" value="1"/>
|
||||||
|
<h3 class="pt-4">
|
||||||
|
Benachrichtige mich bei Verfügbarkeit
|
||||||
|
</h3>
|
||||||
|
</f:else>
|
||||||
|
</f:if>
|
||||||
|
</f:else>
|
||||||
|
</f:if>
|
||||||
<label for="list-{list.id}" class="flex items-center">
|
<label for="list-{list.id}" class="flex items-center">
|
||||||
<f:form.checkbox property="listIds" multiple="1" value="{list.id}" class="form-checkbox"/>
|
<f:form.checkbox property="listIds" multiple="1" value="{list.id}" class="form-checkbox"/>
|
||||||
<span class="block ml-2">{list.label}</span>
|
<span class="block ml-2">{list.label}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user