Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 47: | Line 47: | ||
|Jurors={{{Jurors|}}}|+sep=, | |Jurors={{{Jurors|}}}|+sep=, | ||
|Suit date={{{Suit date|}}} | |Suit date={{{Suit 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|}}} | ||
Line 60: | Line 61: | ||
|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 prosecuted</div><div>Waiting for Plaintiff verdict</div></div> | + | |Waiting for Plaintiff verdict=<div class="d-flex flow-index"><div>Case is prosecuted</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 prosecuted</div><div>Waiting for Plaintiff verdict</div><div>Case needs a judge</div></div> | + | |Needs judge=<div class="d-flex flow-index"><div>Case is prosecuted</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 prosecuted</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> | + | |Judge accepted=<div class="d-flex flow-index"><div>Case is prosecuted</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 prosecuted</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> | + | |Needs jurors=<div class="d-flex flow-index"><div>Case is prosecuted</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 prosecuted</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> | + | |In progress=<div class="d-flex flow-index"><div>Case is prosecuted</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 prosecuted</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>Settled</div></div> | + | |Settled=<div class="d-flex flow-index"><div>Case is prosecuted</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 118: | Line 119: | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|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 }}--> | ||
− | < | + | <wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > |
− | + | </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>Judge</b> | |1=<b>Judge</b> | ||
Line 126: | Line 127: | ||
<!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Stage|value={{#ifeq:{{{Stage|}}}|In progress|In progress|Judge accepted}} }} --> | <!-- {{#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 }} --> | <!-- {{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Judge }} --> | ||
− | < | + | <wstoken id="tokener3" name="Random judge" json="/extensions/WSForm/WSForm.api.php?action=handleExternalRequest&script=semantic_ask&query=[[Class::Member]][[Role::Judge]]&limit=99999&returntext=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" > |
− | + | </wstoken><wsfield type="submit" class="btn btn-green" value="Invite" /></wsform>}} | |
}} | }} | ||
Line 139: | Line 140: | ||
|1=<b>Invited Jurors</b> | |1=<b>Invited Jurors</b> | ||
|2=<div class="mt-4 mb-4 tab-content"><!-- | |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="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}|,}} {{#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"> | --><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=Random juror}} | ||
Line 145: | Line 146: | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}--> | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}--> | ||
{{#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= | + | <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:@@@ |? | + | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#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> | ||
Line 152: | Line 153: | ||
|1=<b>Invited Jurors</b> | |1=<b>Invited Jurors</b> | ||
|2=<div class="mt-4 mb-4 tab-content"><!-- | |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="active tab-pane" id="juror-info-tab">{{#arraymap:{{{Random juror|}}}|,|@@@|{{#ifeq:@@@|done||@@@}}|,}} {{#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"> | --><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=Random juror }} | ||
Line 158: | Line 159: | ||
<!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}--> | <!--{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Jurors }}--> | ||
{{#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=[[Class::Member]][[Role::Juror]]&limit=99999&returntext= | + | <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=Pagename" placeholder="Type a minimal of 3 characters" class="form-control" multiple="multiple"> |
− | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#tag:wsfield |{{#show:@@@ |? | + | {{#if:{{#var:@members}} |{{#arraymap:{{#arrayprint:@members|,|@@@|{{#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>}} | ||
}} | }} | ||
Line 168: | Line 169: | ||
|1=<b>Plaintiff</b> | |1=<b>Plaintiff</b> | ||
|2={{{Filed by|}}} | |2={{{Filed by|}}} | ||
− | }} | + | }}{{DISPLAYTITLE:{{{Lie|}}} {{#ifeq:{{#var:@type}}|Class|(Class)}} - Workflow }} |
</includeonly> | </includeonly> |
Revision as of 11:29, 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= }}