Sjabloon:Form aanmelden: verschil tussen versies
Uit Dorpsbelang Den Hout
(12 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 5: | Regel 5: | ||
<pre> | <pre> | ||
{{Form aanmelden | {{Form aanmelden | ||
+ | |Domein= | ||
|Email address= | |Email address= | ||
|First name= | |First name= | ||
|Last name= | |Last name= | ||
|Address= | |Address= | ||
+ | |Postcode= | ||
+ | |Woonplaats= | ||
|Mobile phone= | |Mobile phone= | ||
|Wants to contribute= | |Wants to contribute= | ||
+ | |Has been approved= | ||
}} | }} | ||
</pre> | </pre> | ||
− | </noinclude><includeonly>{{#vardefine:@cols|6-6}}<wsform action="addToWiki"> | + | </noinclude><includeonly>{{#vardefine:@cols|6-6}}<wsform action="addToWiki" restrictions=lifted> |
− | + | <wscreate mwwrite="{{FULLPAGENAME}}" restrictions=lifted mwtemplate="Member" mwreturn="{{fullurl:{{SERVERNAME}}/Dank voor aanmelden}}"/> | |
+ | <wsfield type="hidden" name="Domein" value="{{SERVERNAME}}" /> | ||
+ | <wsfield type="hidden" name="Has been approved" value="{{{Has been approved|0}}}" /> | ||
{{Item responsive |Cols={{#var:@cols}} | {{Item responsive |Cols={{#var:@cols}} | ||
|1=<wslabel>Email adres *:</wslabel> | |1=<wslabel>Email adres *:</wslabel> | ||
Regel 28: | Regel 34: | ||
}} | }} | ||
{{Item responsive |Cols={{#var:@cols}} | {{Item responsive |Cols={{#var:@cols}} | ||
− | |1=<wslabel> | + | |1=<wslabel>Adres (voor gerichte mailings en vragen):</wslabel> |
− | |2=<wsfield name="Address" type="text" id="address" value="{{{Address|}}}" class="form-control row-formitemresponsive mb-3" /> | + | |2=<wsfield name="Address" type="text" id="address" value="{{{Address|}}}" class="form-control row-formitemresponsive mb-3" placeholder="Straat + huisnummer"/> |
+ | }} | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |2=<wsfield name="Postcode" type="text" id="postcode" value="{{{Postcode|}}}" class="form-control row-formitemresponsive mb-3" placeholder="Postcode" /> <wsfield name="Woonplaats" type="text" id="woonplaats" value="{{{Woonplaats|}}}" class="form-control row-formitemresponsive mb-3" placeholder="Woonplaats" /> | ||
}} | }} | ||
{{Item responsive |Cols={{#var:@cols}} | {{Item responsive |Cols={{#var:@cols}} | ||
Regel 37: | Regel 46: | ||
{{Item responsive |Cols=10-2 | {{Item responsive |Cols=10-2 | ||
|1=<wslabel for="contribute-checkbox">Mee beslissen over de toekomst van Den Hout?<br>Mogen wij jou vragen stellen als er zaken zijn waarover wij de mening van de dorpsbewoners willen weten? *</wslabel> | |1=<wslabel for="contribute-checkbox">Mee beslissen over de toekomst van Den Hout?<br>Mogen wij jou vragen stellen als er zaken zijn waarover wij de mening van de dorpsbewoners willen weten? *</wslabel> | ||
− | |2=<wsfield name="Wants to contribute" type="checkbox" value="1" id="contribute-checkbox" class="form-control row-formitemresponsive mb-3" /> | + | |2={{#vardefine: checked | {{#ifeq:{{{Wants to contribute|}}}|1|checked}} }}<wsfield name="Wants to contribute" type="checkbox" value="1" checked="{{#var:checked}}" id="contribute-checkbox" class="form-control row-formitemresponsive mb-3" /> |
}} | }} | ||
*betekent: verplicht veld<br><br> | *betekent: verplicht veld<br><br> | ||
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /> | <wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /> | ||
</wsform></includeonly> | </wsform></includeonly> | ||
+ | |||
+ | |||
+ | <wsform action="addToWiki" restrictions=lifted mwreturn="//www.denhout.eu/index.php/Www.denhout.eu/Dank_voor_aanmelden" > | ||
+ | <wscreate mwwrite="{{SERVERNAME}}/Member/" mwoption="add_random" mwtemplate="Member" /> | ||
+ | <wsfield type="hidden" name="Domein" value="{{SERVERNAME}}" /> | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |1=<wslabel>Email adres *:</wslabel> | ||
+ | |2=<wsfield name="Email address" type="text" id="email" value="{{{Email address|}}}" class="form-control row-formitemresponsive mb-3" required="required" /> | ||
+ | }} | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |1=<wslabel>Voornaam:</wslabel> | ||
+ | |2=<wsfield name="First name" type="text" id="fname" value="{{{First name|}}}" class="form-control row-formitemresponsive mb-3" /> | ||
+ | }} | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |1=<wslabel>Naam:</wslabel> | ||
+ | |2=<wsfield name="Last name" type="text" id="lname" value="{{{Last name|}}}" class="form-control row-formitemresponsive mb-3" /> | ||
+ | }} | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |1=<wslabel>Adres (voor gerichte mailings en vragen):</wslabel> | ||
+ | |2=<wsfield name="Address" type="text" id="address" value="{{{Address|}}}" class="form-control row-formitemresponsive mb-3" placeholder="Straat + huisnummer"/> | ||
+ | }} | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |2=<wsfield name="Postcode" type="text" id="postcode" value="{{{Postcode|}}}" class="form-control row-formitemresponsive mb-3" placeholder="Postcode" /> <wsfield name="Woonplaats" type="text" id="woonplaats" value="{{{Woonplaats|}}}" class="form-control row-formitemresponsive mb-3" placeholder="Woonplaats" /> | ||
+ | }} | ||
+ | {{Item responsive |Cols={{#var:@cols}} | ||
+ | |1=<wslabel>06 nummer (voor evt. Whatsapp berichten):</wslabel> | ||
+ | |2=<wsfield name="Mobile phone" type="text" id="phone" value="{{{Mobile phone|}}}" class="form-control row-formitemresponsive mb-3" /> | ||
+ | }} | ||
+ | {{Item responsive |Cols=10-2 | ||
+ | |1=<wslabel for="contribute-checkbox">Mee beslissen over de toekomst van Den Hout?<br>Mogen wij jou vragen stellen als er zaken zijn waarover wij de mening van de dorpsbewoners willen weten? *</wslabel> | ||
+ | |2=<wsfield name="Wants to contribute" type="checkbox" value="1" id="contribute-checkbox" class="form-control row-formitemresponsive mb-3" /> | ||
+ | }} | ||
+ | <wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /> | ||
+ | </wsform> | ||
+ | *betekent: verplicht veld |
Huidige versie van 25 feb 2021 om 16:24
This is the "Form aanmelden" template. It should be called in the following format:
{{Form aanmelden |Domein= |Email address= |First name= |Last name= |Address= |Postcode= |Woonplaats= |Mobile phone= |Wants to contribute= |Has been approved= }}
- betekent: verplicht veld