Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
(Fill database) |
|||
Line 112: | Line 112: | ||
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | ||
{{#arraydefine:@members |{{{Random judge|}}} }} | {{#arraydefine:@members |{{{Random judge|}}} }} | ||
− | <wstoken id="tokener52" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[User group::icol-user]][[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > | + | <wstoken id="tokener52" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Pagename::!!!]][[User group::icol-user]][[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > |
{{#arraymap:{{#arrayprint:@members}}|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} | {{#arraymap:{{#arrayprint:@members}}|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} | ||
</wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | </wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | ||
Line 136: | Line 136: | ||
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | ||
{{#arraydefine:@members |{{{Random juror|}}} }} | {{#arraydefine:@members |{{{Random juror|}}} }} | ||
− | <wstoken id="tokener2" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[User group::icol-user]][[Class::Member]][[Role::Juror]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | + | <wstoken id="tokener2" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Pagename::!!!]][[User group::icol-user]][[Class::Member]][[Role::Juror]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> |
{{#arraymap:{{#arrayprint:@members}}|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} | {{#arraymap:{{#arrayprint:@members}}|,|@@@|{{#ifeq:@@@|done||{{#tag:wsfield |{{#show:@@@ |?Pagename |default=@@@ }} |type=option |value=@@@ |selected=selected}} }}|}} | ||
</wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | </wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} |
Revision as of 14:33, 17 June 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= }}