Sjabloon:Www.denhout.eu/Form member: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
(Nieuwe pagina aangemaakt met '<noinclude> This is the "Form member" template. It should be called in the following format: <pre> {{Form member |Action= |Domein= |Email address= |First name= |L...')
 
 
(29 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
 
<noinclude>
 
<noinclude>
  
This is the "Form member" template. It should be called in the following format:
+
  This is the "www.denhout.eu/Form member" template. It should be called in the following format:
  
 
<pre>
 
<pre>
{{Form member
+
{{www.denhout.eu/Form member
 
|Action=
 
|Action=
 
|Domein=
 
|Domein=
Regel 17: Regel 17:
 
|Has been approved=
 
|Has been approved=
 
}}
 
}}
 +
 
</pre>
 
</pre>
 
The form should be used for the following actions regarding members:
 
The form should be used for the following actions regarding members:
 
   * Aanmelden (new member page will be created, member not approved)
 
   * Aanmelden (new member page will be created, member not approved)
 
   * Wijzigen (existing member page changed by member or admin)
 
   * Wijzigen (existing member page changed by member or admin)
</noinclude><includeonly>{{#vardefine:@cols|6-6}}<wsform action="addToWiki" restrictions=lifted {{#switch: {{{Action|}}}  
+
</noinclude><includeonly>{{#vardefine:@cols|6-6}}<wsform action="addToWiki" restrictions=lifted mwreturn="//{{{Domein|}}}{{localurl: {{{Return page|}}} }}" messageonsuccess="{{{Success message|}}}" >
|Wijzigen=messageonsuccess="Wijzigingen zijn opgeslagen"
+
<wscreate mwwrite="www.denhout.eu/Member" mwoption="add_random" mwtemplate="Member" />
|#default=
 
}} >
 
<wscreate {{#switch: {{{Action|}}}  
 
|Aanmelden=mwwrite="{{SERVERNAME}}/Member/" mwoption="add_random"
 
|Wijzigen=mwwrite="{{FULLPAGENAME}}"
 
|#default=
 
}} mwtemplate="Member" {{#switch: {{{Action|}}}
 
|Aanmelden=mwreturn="{{fullurl:{{SERVERNAME}}/Dank voor aanmelden}}"
 
|Wijzigen=mwreturn="{{FULLPAGENAME}}"
 
|#default=
 
}} />
 
 
<wsfield type="hidden" name="Domein" value="{{{Domein|}}}" />
 
<wsfield type="hidden" name="Domein" value="{{{Domein|}}}" />
 
<wsfield type="hidden" name="Has been approved" value="{{{Has been approved|}}}" />
 
<wsfield type="hidden" name="Has been approved" value="{{{Has been approved|}}}" />
Regel 42: Regel 32:
 
{{Item responsive |Cols={{#var:@cols}}
 
{{Item responsive |Cols={{#var:@cols}}
 
|1=<wslabel>Voornaam:</wslabel>
 
|1=<wslabel>Voornaam:</wslabel>
|2=<wsfield name="First name" type="text" id="fname" value="{{{First name|}}}" class="form-control row-formitemresponsive mb-3" />
+
|2=<wsfield name="First name" type="text" id="fname" value="{{{First name|}}}" class="form-control row-formitemresponsive mb-3" required="required"  />
 
}}
 
}}
 
{{Item responsive |Cols={{#var:@cols}}
 
{{Item responsive |Cols={{#var:@cols}}

Huidige versie van 11 okt 2022 om 17:47


 This is the "www.denhout.eu/Form member" template. It should be called in the following format:
{{www.denhout.eu/Form member
|Action=
|Domein=
|Email address=
|First name=
|Last name=
|Address=
|Postcode=
|Woonplaats=
|Mobile phone=
|Wants to contribute=
|Has been approved=
}}

The form should be used for the following actions regarding members:

 * Aanmelden (new member page will be created, member not approved)
 * Wijzigen (existing member page changed by member or admin)