Difference between revisions of "Template:User form"
From cm2.liecourt.com
Line 39: | Line 39: | ||
|1=<b>Roles</b> | |1=<b>Roles</b> | ||
|2={{#arraydefine:@roles|{{{Roles|}}} }} | |2={{#arraydefine:@roles|{{{Roles|}}} }} | ||
+ | <div class="WSShowOnSelect"> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <wsfield type="radio" name="Be candidate[]" value="Yes" checked="{{#ifeq:{{{Be candidate|Yes}}}|Yes|checked}}" /> | ||
+ | <wsfield type="radio" name="Be candidate[]" value="No" checked="{{#ifeq:{{{Be candidate|Yes}}}|No|checked}}" data-wssos-show="candidateoptions" /> | ||
+ | <div class="hidden" data-wssos-value="candidateoptions"> | ||
<wslabel>None<wsfield type="checkbox" name="Roles[]" value="None" checked="{{#if:{{#arraysearch:@roles|None}}|checked}}" /></wslabel><br> | <wslabel>None<wsfield type="checkbox" name="Roles[]" value="None" checked="{{#if:{{#arraysearch:@roles|None}}|checked}}" /></wslabel><br> | ||
<wslabel>Juror<wsfield type="checkbox" name="Roles[]" value="Juror" checked="{{#if:{{#arraysearch:@roles|Juror}}|checked}}" /></wslabel><br> | <wslabel>Juror<wsfield type="checkbox" name="Roles[]" value="Juror" checked="{{#if:{{#arraysearch:@roles|Juror}}|checked}}" /></wslabel><br> | ||
<wslabel>Judge<wsfield type="checkbox" name="Roles[]" value="Judge" checked="{{#if:{{#arraysearch:@roles|Judge}}|checked}}" /></wslabel> | <wslabel>Judge<wsfield type="checkbox" name="Roles[]" value="Judge" checked="{{#if:{{#arraysearch:@roles|Judge}}|checked}}" /></wslabel> | ||
+ | </div> | ||
+ | </div> | ||
}} | }} | ||
Revision as of 12:04, 22 May 2020
This is the User form template. It should be called in the following format:
{{User form |Name= |Email= |Volunteer= |Roles= }}