Difference between revisions of "Template:User form"
From cm2.liecourt.com
Line 13: | Line 13: | ||
|Volunteer= | |Volunteer= | ||
|Roles= | |Roles= | ||
− | |Be candidate= | + | |Be candidate=overrules role |
}} | }} | ||
</pre> | </pre> | ||
Line 44: | Line 44: | ||
Candidate: | Candidate: | ||
− | {{#vardefine:@becandidatedefault|{{#if:{{{Be candidate|}}}|{{{Be candidate|}}}|{{#ifexist:User:{{CURRENTLOGGEDUSER}}|Yes|No}} }} }} | + | {{#vardefine:@becandidatedefault|{{#if:{{{Be candidate|}}}|{{{Be candidate|}}}|{{#if:{{{Roles|}}}|Yes|{{#ifexist:User:{{CURRENTLOGGEDUSER}}|Yes|No}} }} }} }} |
<wsfield type="radio" name="Be candidate[]" value="Yes" checked="{{#ifeq:{{#var:@becandidatedefault}}|Yes|checked}}" data-wssos-show="candidateoptions" /> Yes | <wsfield type="radio" name="Be candidate[]" value="Yes" checked="{{#ifeq:{{#var:@becandidatedefault}}|Yes|checked}}" data-wssos-show="candidateoptions" /> Yes | ||
<wsfield type="radio" name="Be candidate[]" value="No" checked="{{#ifeq:{{#var:@becandidatedefault}}|No|checked}}"/> No | <wsfield type="radio" name="Be candidate[]" value="No" checked="{{#ifeq:{{#var:@becandidatedefault}}|No|checked}}"/> No |
Revision as of 12:48, 22 May 2020
This is the User form template. It should be called in the following format:
{{User form |Name= |Email= |Volunteer= |Roles= |Be candidate=overrules role }}