Difference between revisions of "Template:Workflow"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 111: Line 111:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Judge</b>
 
|1=<b>Judge</b>
|2={{{Judge|}}}
+
|2=<div class="mt-4 mb-4 tab-content"><!--
}}
+
  --><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">
 +
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge|value=done }}
 +
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=Needs jurors }}
 +
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }}
 +
<wsfield type="text" name="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="Save" /></wsform></div></div>
 +
}}|{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Judge</b>
 +
|2=<wsform action="addToWiki">
 +
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge|value=done }}
 +
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value=Judge accepted}}
 +
{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }}
 +
<wsfield type="text" name="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="Save" /></wsform>}}
 
}}
 
}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}

Revision as of 09:19, 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= 
}}