Difference between revisions of "Template:Workflow"

From cm2.liecourt.com
Line 113: Line 113:
 
   {{#arraydefine:$judges|{{#ask: [[User group::icol-user]][[Class::Member]][[Role::Judge]] |limit=9999|link=none|format=plainlist}} }}
 
   {{#arraydefine:$judges|{{#ask: [[User group::icol-user]][[Class::Member]][[Role::Judge]] |limit=9999|link=none|format=plainlist}} }}
 
   {{#arraydefine:$judges-selected|{{{Random judge|}}} }}
 
   {{#arraydefine:$judges-selected|{{{Random judge|}}} }}
   <wstoken id="tokener52" name="Random judge" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" >
+
   <wstoken id="tokener52" name="Random judge[]" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" >
 
{{#arraymap:{{#arrayprint:$judges}}|,|__JUDGE__|{{#tag:wsfield|{{PAGENAME:__JUDGE__}}|type=option|value=__JUDGE__|selected={{#if:{{#arraysearch:$judges-selected|__JUDGE__}}|selected}} }}|}}
 
{{#arraymap:{{#arrayprint:$judges}}|,|__JUDGE__|{{#tag:wsfield|{{PAGENAME:__JUDGE__}}|type=option|value=__JUDGE__|selected={{#if:{{#arraysearch:$judges-selected|__JUDGE__}}|selected}} }}|}}
 
</wstoken>
 
</wstoken>

Revision as of 07:37, 17 August 2021


This is the Workflow template. It should be called in the following format:

{{Workflow
|Case ID=
|Type=
|Stage=
|Filed by=
|Lie=
|Topic=
|Description=
|Lies=
|Facts=
|Locations=
|Judge=
|Juror amount=
|Jurors=
|Suit date=
|Plaintiff verdict=
|Reason for judge decline=
|Random judge=
|Random juror=
|Declined judge=
|Declined juror= 
}}