Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
| (46 intermediate revisions by 3 users not shown) | |||
| Line 35: | Line 35: | ||
-->{{#if:{{{Filed by|}}}|{{#set:Class=Workflow | -->{{#if:{{{Filed by|}}}|{{#set:Class=Workflow | ||
|Case ID={{{Case ID|}}} | |Case ID={{{Case ID|}}} | ||
| + | |uuid={{{uuid|}}} | ||
|Type={{{Type|}}} | |Type={{{Type|}}} | ||
|Stage={{{Stage|}}} | |Stage={{{Stage|}}} | ||
| Line 40: | Line 41: | ||
|Lie={{{Lie|}}} | |Lie={{{Lie|}}} | ||
|Topic={{{Topic|}}} | |Topic={{{Topic|}}} | ||
| + | |Accusation={{{Accusation|}}} | ||
|Description={{{Description|}}} | |Description={{{Description|}}} | ||
|Markup={{{Markup|}}} | |Markup={{{Markup|}}} | ||
|Locations={{{Locations|}}} | |Locations={{{Locations|}}} | ||
|Judge={{{Judge|}}} | |Judge={{{Judge|}}} | ||
| + | |Meeting={{{Meeting|}}} | ||
|Juror amount={{{Juror amount|}}} | |Juror amount={{{Juror amount|}}} | ||
|Jurors={{{Jurors|}}}|+sep=, | |Jurors={{{Jurors|}}}|+sep=, | ||
|Suit date={{{Suit date|}}} | |Suit date={{{Suit date|}}} | ||
| + | |Meeting date={{{Meeting date|}}} | ||
| + | |Settlement date={{{Settlement date|}}} | ||
|Plaintiff verdict={{{Plaintiff verdict|No}}} | |Plaintiff verdict={{{Plaintiff verdict|No}}} | ||
|Reason for judge decline={{{Reason for judge decline|}}} | |Reason for judge decline={{{Reason for judge decline|}}} | ||
|Random judge={{{Random judge|}}} | |Random judge={{{Random judge|}}} | ||
| − | |Random juror={{{Random juror|}}} | + | |Random juror={{{Random juror|}}}|+sep=, |
|Declined judge={{{Declined judge|}}}|+sep=, | |Declined judge={{{Declined judge|}}}|+sep=, | ||
|Declined juror={{{Declined juror|}}}|+sep=, | |Declined juror={{{Declined juror|}}}|+sep=, | ||
| Line 57: | Line 62: | ||
|Class title={{{Class title|}}} | |Class title={{{Class title|}}} | ||
|Change={{{Change|none}}} | |Change={{{Change|none}}} | ||
| + | |Slot={{{Slot|}}} | ||
| + | |Slot month={{#explode:{{{Slot|}}}|-|1}} | ||
| + | |Slot day={{#explode:{{#explode:{{{Slot|}}}|/|0}}|-|2}} | ||
| + | |Slot year={{#explode:{{{Slot|}}}|-|0}} | ||
|Change seen by={{{Change seen by|none}}}|+sep=, | |Change seen by={{{Change seen by|none}}}|+sep=, | ||
|Settled seen by={{{Settled seen by|none}}}|+sep=, | |Settled seen by={{{Settled seen by|none}}}|+sep=, | ||
}} }}<!-- | }} }}<!-- | ||
| − | --> | + | --><h1>{{{Lie|}}}</h1> {{#ask:[[Class::Suit]][[Case ID::{{{Case ID|}}}]]}} |
{{#switch:{{{Stage|}}} | {{#switch:{{{Stage|}}} | ||
| − | |Waiting for Plaintiff verdict=<div class="d-flex flow-index"><div>Case is | + | |Waiting for Plaintiff verdict=<div class="d-flex flow-index"><div>Case is proposed</div><div class="active">Waiting for Plaintiff verdict</div><div>Case is waiting for approval</div><div>Case needs a judge</div><div>Judge accepted</div><div>Case is filed</div><div>Case needs jurors</div><div>Suit in progress</div><div>Settled</div></div> |
| − | |Needs judge=<div class="d-flex flow-index"><div>Case is | + | |Needs judge=<div class="d-flex flow-index"><div>Case is proposed</div><div>Waiting for Plaintiff verdict</div><div>Case is waiting for approval</div><div class="active">Case needs a judge</div><div>Judge accepted</div><div>Case is filed</div><div>Case needs jurors</div><div>Suit in progress</div><div>Settled</div></div> |
| − | |Judge accepted=<div class="d-flex flow-index"><div>Case is | + | |Judge accepted=<div class="d-flex flow-index"><div>Case is proposed</div><div>Waiting for Plaintiff verdict</div><div>Case is waiting for approval</div><div>Case needs a judge</div><div class="active">Judge accepted</div><div>Case is filed</div><div>Case needs jurors</div><div>Suit in progress</div><div>Settled</div></div> |
| − | |Needs jurors=<div class="d-flex flow-index"><div>Case is | + | |Needs jurors=<div class="d-flex flow-index"><div>Case is proposed</div><div>Waiting for Plaintiff verdict</div><div>Case is waiting for approval</div><div>Case needs a judge</div><div>Judge accepted</div><div>Case is filed</div><div class="active">Case needs jurors</div><div>Suit in progress</div><div>Settled</div></div> |
| − | |In progress=<div class="d-flex flow-index"><div>Case is | + | |In progress=<div class="d-flex flow-index"><div>Case is proposed</div><div>Waiting for Plaintiff verdict</div><div>Case is waiting for approval</div><div>Case needs a judge</div><div>Judge accepted</div><div>Case is filed</div><div>Case needs jurors</div><div class="active">Suit in progress</div><div>Settled</div></div> |
| − | |Settled=<div class="d-flex flow-index"><div>Case is | + | |Settled=<div class="d-flex flow-index"><div>Case is proposed</div><div>Waiting for Plaintiff verdict</div><div>Case is waiting for approval</div><div>Case needs a judge</div><div>Judge accepted</div><div>Case is filed</div><div>Case needs jurors</div><div>Suit in progress</div><div class="active">Settled</div></div> |
}} | }} | ||
{{#if:{{{Type|}}}| | {{#if:{{{Type|}}}| | ||
| Line 96: | Line 105: | ||
|2={{{Stage|}}} | |2={{{Stage|}}} | ||
}} | }} | ||
| − | {{#if:{{{ | + | |
| + | {{#if:{{{Judge|}}}| | ||
| + | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
| + | |1=<b>Judge</b> | ||
| + | |2={{{Judge|}}} | ||
| + | }} | ||
| + | | | ||
| + | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
| + | |1=<b>Invited judge</b> | ||
| + | |2=<wsform action="addToWiki"> | ||
| + | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random judge}} | ||
| + | {{#arraydefine:$judges|{{#ask: [[User group::icol-user]][[Class::Member]][[Role::Judge]] |limit=9999|link=none|format=plainlist}} }} | ||
| + | {{#arraydefine:$judges-selected|{{{Random judge|}}} }} | ||
| + | <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}} }}|}} | ||
| + | </wstoken> | ||
| + | <wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | ||
| + | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Number of Jurors needed</b> | |1=<b>Number of Jurors needed</b> | ||
| − | |2={{{Juror amount|}}} | + | |2=<wsform action="addToWiki">{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Juror amount}}<wsfield type="number" name="Juror amount" value="{{{Juror amount|}}}" /><wsfield type="submit" value="Save" /></wsform> |
}} | }} | ||
| − | + | ||
| − | |||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Number of Jurors accepted invite</b> | |1=<b>Number of Jurors accepted invite</b> | ||
| − | |2={{#arraysize:@jurrors}} | + | |2={{#arraydefine:@jurrors|{{{Jurors|}}} }}{{#arraysize:@jurrors}} |
}} | }} | ||
| + | |||
| + | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
| + | |1=<b>Accepted Jurors</b> | ||
| + | |2={{{Jurors|}}} | ||
}} | }} | ||
| − | + | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
| − | |1=<b> | + | |1=<b>Invited Jurors</b> |
| − | |2={{{ | + | |2=<wsform action="addToWiki"> |
| − | }} | + | {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Random juror }} |
| − | }} | + | {{#arraydefine:$jurors|{{#ask: [[User group::icol-user]][[Class::Member]][[Role::Juror]] |limit=9999|link=none|format=plainlist}} }} |
| + | {{#arraydefine:$jurors-selected|{{{Random juror|}}} }} | ||
| + | <wstoken id="tokener2" name="Random juror[]" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" > | ||
| + | {{#arraymap:{{#arrayprint:$jurors}}|,|__JUROR__|{{#tag:wsfield|{{PAGENAME:__JUROR__}}|type=option|value=__JUROR__|selected={{#if:{{#arraysearch:$jurors-selected|__JUROR__}}|selected}} }}|}} | ||
| + | </wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | ||
| + | |||
| + | |||
| + | |||
| + | |||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Plaintiff</b> | |1=<b>Plaintiff</b> | ||
|2={{{Filed by|}}} | |2={{{Filed by|}}} | ||
| − | }} | + | }}{{DISPLAYTITLE:{{{Lie|}}} {{#ifeq:{{#var:@type}}|Class|(Class)}} - Workflow }} |
</includeonly> | </includeonly> | ||
Latest revision as of 10:08, 25 August 2022
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=
}}