Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
Line 147: | Line 147: | ||
{{#arraydefine:@members |{{{Random juror|}}} }} | {{#arraydefine:@members |{{{Random juror|}}} }} | ||
<wstoken id="tokener" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Juror]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | <wstoken id="tokener" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Juror]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | ||
− | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}}|}} }} | + | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} }} |
</wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | ||
Revision as of 11:58, 20 May 2020
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= }}