Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 108: | Line 108: | ||
}} | }} | ||
}} | }} | ||
+ | |||
{{#if:{{{Judge|}}}| | {{#if:{{{Judge|}}}| | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
Line 114: | Line 115: | ||
--><div class="active tab-pane" id="info-tab">{{{Judge|}}} {{#widget:link|datatoggle=pill|href=#form-tab|text=Change|type=a|class=btn btn-green ml-4 }}</div><!-- | --><div class="active tab-pane" id="info-tab">{{{Judge|}}} {{#widget:link|datatoggle=pill|href=#form-tab|text=Change|type=a|class=btn btn-green ml-4 }}</div><!-- | ||
--><div class="tab-pane" id="form-tab"> <wsform action="addToWiki"> | --><div class="tab-pane" id="form-tab"> <wsform action="addToWiki"> | ||
− | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge | + | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} |
− | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=Needs jurors }} | + | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Needs jurors}} }}--> |
− | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }} | + | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }}--> |
− | <wsfield type="text" name=" | + | <wsfield type="text" name="Random judge" list="judges"/> |
− | {{#tag:html|<datalist id="judges">{{#arraymap:{{#ask:[[Class::Member]][[Role::Judge]]|link=none|format=array}}|,|@@@|<option value="@@@">@@@</option> |}}</datalist>}}<wsfield type="submit" class="btn btn-green" value=" | + | {{#tag:html|<datalist id="judges">{{#arraymap:{{#ask:[[Class::Member]][[Role::Judge]]|link=none|format=array}}|,|@@@|<option value="@@@">@@@</option> |}}</datalist>}}<wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> |
}}|{{Item responsive |Cols={{#var:@cols|4-8}} | }}|{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Judge</b> | |1=<b>Judge</b> | ||
|2=<wsform action="addToWiki"> | |2=<wsform action="addToWiki"> | ||
− | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge | + | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} |
− | + | <!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Judge accepted}} }} --> | |
− | + | <!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }} --> | |
− | <wsfield type="text" name=" | + | <wsfield type="text" name="Random judge" list="judges"/> |
− | {{#tag:html|<datalist id="judges">{{#arraymap:{{#ask:[[Class::Member]][[Role::Judge]]|link=none|format=array}}|,|@@@|<option value="@@@">@@@</option> |}}</datalist>}}<wsfield type="submit" class="btn btn-green" value=" | + | {{#tag:html|<datalist id="judges">{{#arraymap:{{#ask:[[Class::Member]][[Role::Judge]]|link=none|format=array}}|,|@@@|<option value="@@@">@@@</option> |}}</datalist>}}<wsfield type="submit" class="btn btn-green" value="Invite" /></wsform>}} |
}} | }} | ||
+ | |||
+ | {{#if:{{{Jurors|}}}| | ||
+ | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=<b>Accepted Jurors</b> | ||
+ | |2={{{Jurors|}}} | ||
+ | }} | ||
+ | |||
+ | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=<b>Invited Jurors</b> | ||
+ | |2=<div class="mt-4 mb-4 tab-content"><!-- | ||
+ | --><div class="active tab-pane" id="juror-info-tab">{{{Random juror|}}} {{#widget:link|datatoggle=pill|href=#juror-form-tab|text=Change|type=a|class=btn btn-green ml-4 }}</div><!-- | ||
+ | --><div class="tab-pane" id="juror-form-tab"> <wsform action="addToWiki"> | ||
+ | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror}} | ||
+ | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=In progress }}--> | ||
+ | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}--> | ||
+ | {{#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==Page" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | ||
+ | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#tag:wsfield |{{#show:@@@ |?Name |default=@@@ }} |type=option |value=@@@ |selected=selected}}|}} }} | ||
+ | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div> | ||
+ | |||
+ | }}|{{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=<b>Invited Jurors</b> | ||
+ | |2=<div class="mt-4 mb-4 tab-content"><!-- | ||
+ | --><div class="active tab-pane" id="juror-info-tab">{{{Random juror|}}} {{#widget:link|datatoggle=pill|href=#juror-form-tab|text=Change|type=a|class=btn btn-green ml-4 }}</div><!-- | ||
+ | --><div class="tab-pane" id="juror-form-tab"><wsform action="addToWiki"> | ||
+ | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} | ||
+ | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=In progress }}--> | ||
+ | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}--> | ||
+ | {{#arraydefine:@members |{{{Random juror|}}} }} | ||
+ | <wstoken id="tokener2" name="Random juror[]" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Juror]]&limit=99999&returntext==Page" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> | ||
+ | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#tag:wsfield |{{#show:@@@ |?Name |default=@@@ }} |type=option |value=@@@ |selected=selected}}|}} }} | ||
+ | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform></div></div>}} | ||
+ | }} | ||
+ | |||
+ | |||
+ | |||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Plaintiff</b> | |1=<b>Plaintiff</b> |
Revision as of 12:38, 19 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= }}