Difference between revisions of "Template:Participant"
From cm2.liecourt.com
(Fill database) |
|||
Line 23: | Line 23: | ||
{{#ifeq:{{#var:@allowed}}|Yes|<h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }} {{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }} - {{#ask:[[Class::Suit]][[Workflow::{{{Workflow|}}}]]}}</h1><!-- | {{#ifeq:{{#var:@allowed}}|Yes|<h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }} {{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }} - {{#ask:[[Class::Suit]][[Workflow::{{{Workflow|}}}]]}}</h1><!-- | ||
--><h2>Case Progress:</h2>{{#switch:{{#show:{{{Workflow|}}}|?Stage}} | --><h2>Case Progress:</h2>{{#switch:{{#show:{{{Workflow|}}}|?Stage}} | ||
− | |Waiting for Plaintiff verdict=<div class="d-flex flow-index"><div class="done">Case is | + | |Waiting for Plaintiff verdict=<div class="d-flex flow-index"><div class="done">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 class="done">Case is | + | |Needs judge=<div class="d-flex flow-index"><div class="done">Case is prosecuted</div><div class="done">Waiting for Plaintiff verdict</div><div class="done">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 class="done">Case is | + | |Judge accepted=<div class="d-flex flow-index"><div class="done">Case is prosecuted</div><div class="done">Waiting for Plaintiff verdict</div><div class="done">Case is waiting for approval</div><div class="done">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 class="done">Case is | + | |Needs jurors=<div class="d-flex flow-index"><div class="done">Case is prosecuted</div><div class="done">Waiting for Plaintiff verdict</div><div class="done">Case is waiting for approval</div><div class="done">Case needs a judge</div><div class="done">Judge accepted</div><div class="done">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 class="done">Case is | + | |In progress=<div class="d-flex flow-index"><div class="done">Case is prosecuted</div><div class="done">Waiting for Plaintiff verdict</div><div class="done">Case is waiting for approval</div><div class="done">Case needs a judge</div><div class="done">Judge accepted</div><div class="done">Case is filed</div><div class="done">Case needs jurors</div><div class="active">Suit in progress</div><div>Settled</div></div> |
− | |Settled=<div class="d-flex flow-index"><div class="done">Case is | + | |Settled=<div class="d-flex flow-index"><div class="done">Case is prosecuted</div><div class="done">Waiting for Plaintiff verdict</div><div class="done">Case is waiting for approval</div><div class="done">Case needs a judge</div><div class="done">Judge accepted</div><div class="done">Case is filed</div><div class="done">Case needs jurors</div><div class="done">Suit in progress</div><div class="active">Settled</div></div> |
}} | }} | ||
<h2>Your checklist:</h2>{{#vardefine:@check|{{#ask:[[{{{Workflow|}}}]]|?Juror amount|?Suit date|?Settlement date|?Meeting date|format=array|link=none}} }} | <h2>Your checklist:</h2>{{#vardefine:@check|{{#ask:[[{{{Workflow|}}}]]|?Juror amount|?Suit date|?Settlement date|?Meeting date|format=array|link=none}} }} | ||
{{#switch:{{{Role|}}} | {{#switch:{{{Role|}}} | ||
− | |Plaintiff=<div class="d-flex flow-index"><div class="done"> | + | |Plaintiff=<div class="d-flex flow-index"><div class="done">Prosecute a case</div><div class="done">Complete verdict |
</div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|2}}|class="done"}}>Reevaluate verdict</div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|4}}|{{#ifexpr:{{#time: U |{{#explode:{{#var:@check}}|<PROP>|4}} }} < {{#time: U | now}} |class="done"}} }}>Attend meeting</div></div> | </div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|2}}|class="done"}}>Reevaluate verdict</div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|4}}|{{#ifexpr:{{#time: U |{{#explode:{{#var:@check}}|<PROP>|4}} }} < {{#time: U | now}} |class="done"}} }}>Attend meeting</div></div> | ||
|Judge=<div class="d-flex flow-index"><div class="done">Read the Plaintiff pleading and proposed verdict</div><div class="done">Accept or Reject the Plaintiff filing | |Judge=<div class="d-flex flow-index"><div class="done">Read the Plaintiff pleading and proposed verdict</div><div class="done">Accept or Reject the Plaintiff filing | ||
Line 92: | Line 92: | ||
-->{{Item responsive |Cols=6-6 | -->{{Item responsive |Cols=6-6 | ||
|1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} | |1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} | ||
− | |2={{#vardefine:@counter|0}} | + | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!-- |
-->{{Modal | -->{{Modal | ||
Line 102: | Line 102: | ||
|Hide link=Yes | |Hide link=Yes | ||
}}<!-- | }}<!-- | ||
− | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1 }} }}| | + | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1 }} }}|}} }}<!-- |
-->{{Item responsive |Cols={{#var:@cols|4-8}} | -->{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Verdicts:</b> | |1=<b>Verdicts:</b> | ||
Line 142: | Line 142: | ||
|action=addToWiki}}</div>}} |}} | |action=addToWiki}}</div>}} |}} | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted| |
− | + | <wsform action="addToWiki"> | |
− | < | + | {{#vardefine:@tokenstats|<nowiki>{{subst:award token}}</nowiki>}} |
− | <wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" /> | + | <wscreate mwwrite="Order/" mwtemplate="Order" mwoption="range:00001-99999" mwfields="User, Version"/> |
− | <wsfield type="hidden" name="Title" value="{{#show:{{{Workflow | + | <wsfield type="hidden" name="User" value="{{#show:{{{Workflow}}}|?Filed by|link=none}}" /> |
+ | <wsfield type="hidden" name="Version" value="Free" /> | ||
+ | <wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" mwfollow mwfields="Title, Case ID, Workflow, Status"/> | ||
+ | <wsfield type="hidden" name="Title" value="{{#show:{{{Workflow}}}|?Lie|link=none}}" /> | ||
<wsfield type="hidden" name="Case ID" value="{{{Case ID|}}}" /> | <wsfield type="hidden" name="Case ID" value="{{{Case ID|}}}" /> | ||
− | <wsfield type="hidden" name="Workflow" value="{{{Workflow | + | <wsfield type="hidden" name="Workflow" value="{{{Workflow}}}" /> |
− | <wsfield type="hidden" name=" | + | <wsfield type="hidden" name="Status" value="{{#var:@tokenstats}}" /> |
<h2>Suit settings</h2> | <h2>Suit settings</h2> | ||
<p>Choose a date for the suit, choose the number of jurors needed for the suit, and file the suit. Random jurors will be ask to participate, and the plaintiff will be notified about the suit date</p> | <p>Choose a date for the suit, choose the number of jurors needed for the suit, and file the suit. Random jurors will be ask to participate, and the plaintiff will be notified about the suit date</p> | ||
− | {{#tag:wsedit||target={{PAGEID:{{{Workflow | + | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Stage|value=Needs jurors}} |
− | {{#tag:wsedit||target={{PAGEID:{{{Workflow | + | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Juror amount }} |
− | {{#tag:wsedit||target={{PAGEID:{{{Workflow | + | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }} |
− | {{#tag:wsedit||target={{PAGEID:{{{Workflow | + | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Settlement date }} |
<div id="jurors">{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[Role::Juror]][[!{{{User|}}}]][[!{{#show:{{{Workflow}}}|?Filed by|link=none}}]]|Limit=5|format=array|order=random}} }}</div><!-- | <div id="jurors">{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Random juror|value={{#ask:[[Class::Member]][[Role::Juror]][[!{{{User|}}}]][[!{{#show:{{{Workflow}}}|?Filed by|link=none}}]]|Limit=5|format=array|order=random}} }}</div><!-- | ||
Line 161: | Line 164: | ||
|1=<b>Number of Jurors needed for the case</b> | |1=<b>Number of Jurors needed for the case</b> | ||
|2={{#tag:wsfield||type=number|name=Juror amount|min=1|max=5|class=form-number form-control|value=5}} | |2={{#tag:wsfield||type=number|name=Juror amount|min=1|max=5|class=form-number form-control|value=5}} | ||
− | }} | + | }} |
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=<b>Date for the suit</b> | ||
+ | |2={{#tag:wsfield||type=date|name=Suit date|class=form-control|value={{#time:Y-m-d|now}} }} | ||
+ | }}<!-- | ||
+ | -->{{Item responsive |Cols={{#var:@cols|4-8}} | ||
+ | |1=<b>Date for online meeting</b> | ||
+ | |2={{#tag:wsfield||type=date|name=Meeting date|class=form-control|value={{#time:Y-m-d|now + 1 weeks}} }} | ||
+ | }}<!-- | ||
+ | --> Set the settlement date on the docket. This should be a minimum of two days and a maximum of 14 days. By default it is five. This will be the date when you set your verdict based on the plaintiff and juror proposed verdicts.{{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Date for settlement</b> | |1=<b>Date for settlement</b> | ||
|2={{#tag:wsfield||type=date|name=Settlement date|class=form-control|value={{#time:Y-m-d|now + 2 weeks}}}} | |2={{#tag:wsfield||type=date|name=Settlement date|class=form-control|value={{#time:Y-m-d|now + 2 weeks}}}} | ||
− | }} | + | }}<!-- |
− | + | --><wsfield type="button" onclick="setJurors()" class="btn btn-green mb-4" >Create docket</wsfield> | |
− | + | <wsfield type="submit" value="Create docket" id="submit-docket" class="btn btn-green mb-4 d-none"/><!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | --> | ||
− | <wsfield type="button" onclick="setJurors()" class="btn btn-green mb-4" >Create docket</wsfield> | ||
− | <wsfield type="submit" value="Create docket" id="submit-docket" class="btn btn-green mb-4 d-none"/> | ||
-->{{#tag:html|<script> | -->{{#tag:html|<script> | ||
var oldjurrors = document.getElementById('jurors').querySelector('input').value; | var oldjurrors = document.getElementById('jurors').querySelector('input').value; |
Revision as of 15:50, 29 May 2020
This is the Participant template. It should be called in the following format:
{{Participant |User= |Workflow= |Case ID= |Role= }}