Difference between revisions of "Template:Participant"

From cm2.liecourt.com
(Fill database)
Line 17: Line 17:
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
 
<div class="d-none">__NOTOC__ __NOTITLE__{{#if:{{{User|}}}|{{#set:Class=Participant|Role={{{Role|}}}|Workflow={{{Workflow|}}}|User={{{User|}}}|Case ID={{{Case ID|}}}|Name={{{Name|}}} }} }}</div><!--
 
<div class="d-none">__NOTOC__ __NOTITLE__{{#if:{{{User|}}}|{{#set:Class=Participant|Role={{{Role|}}}|Workflow={{{Workflow|}}}|User={{{User|}}}|Case ID={{{Case ID|}}}|Name={{{Name|}}} }} }}</div><!--
 
-->{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{{User|}}}|Yes|{{#ifsysop:Yes|No}}}}}}
 
-->{{#vardefine:@allowed|{{#ifeq:User:{{CURRENTLOGGEDUSER}}|{{{User|}}}|Yes|{{#ifsysop:Yes|No}}}}}}
 
{{#vardefine:@judge|{{#show:{{{Workflow|}}}|?Judge}} }}
 
{{#vardefine:@judge|{{#show:{{{Workflow|}}}|?Judge}} }}
{{#ifeq:{{#var:@allowed}}|Yes|<!--
+
{{#ifeq:{{#var:@allowed}}|Yes|<h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }}&nbsp;{{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }} - {{#ask:[[Class::Suit]][[Workflow::{{{Workflow|}}}]]}}</h1><!--
--><div class="row mt-4">
+
--><h2>Case Progress:</h2>{{#switch:{{#show:{{{Workflow|}}}|?Stage}}
<div class="col-12 col-lg-8 mt-4"><h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }}&nbsp;{{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }} - {{#ask:[[Class::Suit]][[Workflow::{{{Workflow|}}}]]}}</h1>
+
|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 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 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 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 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 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}} }}
 +
{{#switch:{{{Role|}}}
 +
|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>
 +
|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
 +
</div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|2}}|class="done"}}>Set settlement date </div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|1}}|class="done"}}>Set the number of Jurors</div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|2}}|class="done"}}>Set date for Jurors verdicts</div><div {{#vardefine:@verdict|{{#ask:[[Class::Verdict]][[Case ID::{{{Case ID|}}}]][[User::{{{User|}}}]]|link=none}} }}{{#if:{{#var:@verdict}}|class="done"}}>Complete your verdict</div><div {{#if:{{#explode:{{#var:@check}}|<PROP>|4}}|class="done"}}>Set date for meeting with Jurors and the Plaintiff</div><div {{#ifeq:{{#show:{{{Workflow|}}}|?Stage}}|Settled|class="done"}}>Complete your verdict and settle the case</div></div>
 +
|Juror=<div class="d-flex flow-index"><div class="done">Read the Plaintiff pleading and proposed verdict</div><div  {{#vardefine:@verdict|{{#ask:[[Class::Verdict]][[Case ID::{{{Case ID|}}}]][[User::{{{User|}}}]]|link=none}} }}{{#if:{{#var:@verdict}}|class="done"}}>Create 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 class="row ">
 +
<div class="col-12 col-lg-8 ">
 +
<div class="box"><h2>Case information</h2><!--
 
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#if:{{#var:@judge}}|<!--
 
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#if:{{#var:@judge}}|<!--
  
  
--> }}<br><br><br><!--
+
--> }}<!--
  
 
-->{{#vardefine:@classQ|{{#show:{{{Workflow|}}}|?Class request|link=none}} }}{{#if:{{#var:@classQ}}|
 
-->{{#vardefine:@classQ|{{#show:{{{Workflow|}}}|?Class request|link=none}} }}{{#if:{{#var:@classQ}}|
Line 44: Line 62:
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Suit:</b>
 
|1=<b>Suit:</b>
|2={{#ask:[[Class::Suit]][[Case ID::{{{Case ID|}}}]]}}
+
|2={{#vardefine:@title|{{#ask:[[Class::Suit]][[Case ID::{{{Case ID|}}}]]}} }}{{#if:{{#var:@title}}|{{#var:@title}}|{{#show:{{{Workflow}}}|?Lie|link=none }} }}
 
}}<!--
 
}}<!--
  
Line 73: Line 91:
  
 
-->{{Item responsive |Cols=6-6
 
-->{{Item responsive |Cols=6-6
|1=<b>Evidence of lie appearance:</b>
+
|1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }}
|2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{{Case ID|}}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{fa|image}} }}<!--
+
|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
 
|Targetid=image-modal-{{#var:@counter}}
 
|Targetid=image-modal-{{#var:@counter}}
 
|Dialog class=image-modal
 
|Dialog class=image-modal
|ModalHeading=Image
+
|ModalHeading={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|Pdf|Image}}
|BodyText=[[{{#explode:@@@|<PROP>|0}}]]Uploaded on: {{#explode:@@@|<PROP>|1}}
+
|BodyText={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{#widget:pdf|pdf={{filepath:{{#explode:{{#explode:@@@|<PROP>|0}}|:|1}} }}  }}|[[{{#explode:@@@|<PROP>|0}}]]}}Uploaded on: {{#explode:@@@|<PROP>|1}}
 
|FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit  |text=close}}
 
|FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit  |text=close}}
 
|Hide link=Yes
 
|Hide link=Yes
 
}}<!--  
 
}}<!--  
  -->|}} }}<!--
+
  -->{{#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 95: Line 113:
 
{{verdict results|Verdict={{#explode:@@@|<PROP>|0}} }}
 
{{verdict results|Verdict={{#explode:@@@|<PROP>|0}} }}
 
{{#tag:html|</details>}}
 
{{#tag:html|</details>}}
|}}
+
|}}</div>
 
<!--
 
<!--
  
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge|
+
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge|<div class="box"><h2>Case settings</h2>
{{Item responsive |Cols={{#var:@cols|4-8}}
+
{{Item responsive |Cols={{#var:@cols|2-10}}
 
|1=<b>Jurors:</b>
 
|1=<b>Jurors:</b>
 
|2={{#vardefine:zz|{{#ask:[[{{{Workflow|}}}]]|?Random juror|?Declined juror|?Judge|?Filed by|?Jurors|format=array|link=none}} }}
 
|2={{#vardefine:zz|{{#ask:[[{{{Workflow|}}}]]|?Random juror|?Declined juror|?Judge|?Filed by|?Jurors|format=array|link=none}} }}
Line 108: Line 126:
 
{{#tag:wsfield||type=submit|value=x|class=remove-juror}}
 
{{#tag:wsfield||type=submit|value=x|class=remove-juror}}
 
|action=addToWiki}}</div>|<div class="btn btn-green btn-square">{{#explode:@@@|<PROP>|1}}<br><small>Accepted</small></div>}}{{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}|}}<!--  
 
|action=addToWiki}}</div>|<div class="btn btn-green btn-square">{{#explode:@@@|<PROP>|1}}<br><small>Accepted</small></div>}}{{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}|}}<!--  
  -->{{#arraymap:{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>|@@@|{{#ifeq:@@@|done||<div class="btn btn-gray btn-square"> Juror {{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}{{#var:@countjur}}<br><small>Invited 1 day ago</small><br><!--
+
  -->{{#arraymap:{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>|@@@|{{#ifeq:@@@|done||<div class="btn btn-gray btn-square"> Juror {{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}{{#var:@countjur}}<br><small>Invited<!-- 1 day ago --></small><br><!--
  
 
-->{{#vardefine:@user|{{PAGENAME:@@@}} }}<!--
 
-->{{#vardefine:@user|{{PAGENAME:@@@}} }}<!--
Line 121: Line 139:
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Random juror|value={{#if:{{#arrayprint:new_key}}| {{#arrayprint:new_key}}, }}{{#ask:[[Class::Member]][[!{{#explode:@@@|<PROP>|3}}]][[Role::Juror]][[!{{#explode:{{#var:zz}}|<PROP>|4}}]][[!{{#explode:{{#var:zz}}|<PROP>|3}}]]{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|1}}|<MANY>|###|[[!###]]|}}{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|5}}|<MANY>|###|[[!###]]|}}{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|2}}|<MANY>|###|[[!###]]|}}|Limit=1|format=array|order=random}} }}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Random juror|value={{#if:{{#arrayprint:new_key}}| {{#arrayprint:new_key}}, }}{{#ask:[[Class::Member]][[!{{#explode:@@@|<PROP>|3}}]][[Role::Juror]][[!{{#explode:{{#var:zz}}|<PROP>|4}}]][[!{{#explode:{{#var:zz}}|<PROP>|3}}]]{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|1}}|<MANY>|###|[[!###]]|}}{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|5}}|<MANY>|###|[[!###]]|}}{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|2}}|<MANY>|###|[[!###]]|}}|Limit=1|format=array|order=random}} }}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:{{#var:zz}}|<PROP>|2}}|{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|2}}|<MANY>|###|###|,}}, @@@| @@@ }} }}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Declined juror|value={{#if:{{#explode:{{#var:zz}}|<PROP>|2}}|{{#arraymap:{{#explode:{{#var:zz}}|<PROP>|2}}|<MANY>|###|###|,}}, @@@| @@@ }} }}
{{#tag:wsfield||type=submit|value=x|class=remove-juror}}
+
<!--{{#tag:wsfield||type=submit|value=x|class=remove-juror}}-->
 
|action=addToWiki}}</div>}} |}}
 
|action=addToWiki}}</div>}} |}}
 
}}<!--  
 
}}<!--  
 
  -->{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted|
 
  -->{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted|
 
<wsform action="addToWiki">
 
<wsform action="addToWiki">
 +
{{#vardefine:@tokenstats|<nowiki>{{subst:award token}}</nowiki>}}
 
<wscreate mwwrite="Order/" mwtemplate="Order" mwoption="range:00001-99999" mwfields="User, Version"/>
 
<wscreate mwwrite="Order/" mwtemplate="Order" mwoption="range:00001-99999" mwfields="User, Version"/>
 
<wsfield type="hidden" name="User" value="{{#show:{{{Workflow}}}|?Filed by|link=none}}" />
 
<wsfield type="hidden" name="User" value="{{#show:{{{Workflow}}}|?Filed by|link=none}}" />
 
<wsfield type="hidden" name="Version" value="Free" />
 
<wsfield type="hidden" name="Version" value="Free" />
<wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" mwfollow mwfields="Title, Case ID, Workflow"/>
+
<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="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="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>
Line 153: Line 173:
 
|2={{#tag:wsfield||type=date|name=Meeting date|class=form-control|value={{#time:Y-m-d|now + 1 weeks}} }}
 
|2={{#tag:wsfield||type=date|name=Meeting date|class=form-control|value={{#time:Y-m-d|now + 1 weeks}} }}
 
}}<!--
 
}}<!--
-->{{Item responsive |Cols={{#var:@cols|4-8}}
+
--> 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}}}}
Line 190: Line 210:
 
|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|class=form-number form-control|value={{#show:{{{Workflow}}}|?Juror amount }}|min={{#show:{{{Workflow}}}|?Juror amount }}|max=5 }}
 
|2={{#tag:wsfield||type=number|name=Juror amount|class=form-number form-control|value={{#show:{{{Workflow}}}|?Juror amount }}|min={{#show:{{{Workflow}}}|?Juror amount }}|max=5 }}
}}
+
}}<small class="text-muted">Set the number of Jurors you are requesting</small>
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Date for settlement</b>
 +
|2={{#tag:wsfield||type=date|name=Settlement date|class=form-control|value={{#show:{{{Workflow}}}|?Settlement date }}}}
 +
}}<small class="text-muted">The settlement date should be a minimum of two days and a maximum of 14 days. This will be the date when you set your verdict based on the plaintiff and juror proposed verdicts</small>
 +
{{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={{#show:{{{Workflow}}}|?Meeting date}} }}
 +
}}<small class="text-muted">Set the docket date where all Jurors and the Plaintiff can meet with you for chat based on your proposed verdict</small><!--
 +
-->
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Date for the suit</b>
 
|1=<b>Date for the suit</b>
 
|2={{#tag:wsfield||type=date|name=Suit date|class=form-control|value={{#show:{{{Workflow}}}|?Suit date }}}}
 
|2={{#tag:wsfield||type=date|name=Suit date|class=form-control|value={{#show:{{{Workflow}}}|?Suit date }}}}
}}<!--
+
}}<small class="text-muted">Set the docket date where all Jurors should have their verdicts done. You will complete your verdict the next day for all jurors you have</small><!--
-->{{Item responsive |Cols={{#var:@cols|4-8}}
+
--><div class="clear-both"></div><!--  
|1=<b>Date for online meeting</b>
+
--><wsfield type="button" onclick="changeJurors()" class="btn btn-green mb-4 mt-4 float-left" >Change suit</wsfield>
|2={{#tag:wsfield||type=date|name=Meeting date|class=form-control|value={{#show:{{{Workflow}}}|?Meeting date}} }}
+
<wsfield type="submit" value="Change suit" id="change-suit" class="btn btn-green mb-4 d-none "/>
}}<!--
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Date for settlement</b>
 
|2={{#tag:wsfield||type=date|name=Settlement date|class=form-control|value={{#show:{{{Workflow}}}|?Settlement date }}}}
 
}}<!--  
 
--><wsfield type="button" onclick="changeJurors()" class="btn btn-green mb-4" >Change suit</wsfield>
 
<wsfield type="submit" value="Change suit" id="change-suit" 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;
Line 238: Line 260:
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Stage|value=Settled}}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Stage|value=Settled}}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Random juror|value=done}}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Random juror|value=done}}
<wsfield type="submit" value="Mark case settled" class="btn btn-red mb-4 float-right"/>
+
<wsfield type="submit" value="Mark case settled" class="btn btn-red mb-4 float-right mt-4"/><div class="clear-both"></div>
 
</wsform>
 
</wsform>
}}}} }}<!--
+
}}</div>}} }}<!--
  
  
  
--><h2>Your verdict :</h2>{{#vardefine:@verdict|{{#ask:[[Class::Verdict]][[Case ID::{{{Case ID|}}}]][[User::{{{User|}}}]]|link=none}} }}{{#if:{{#var:@verdict}}|{{verdict results|Verdict={{#var:@verdict}} }}<br>{{#widget:link|type=a|href={{fullurl:{{#var:@verdict}}|Participant={{FULLPAGENAME}} }}|text=Edit verdict|class=btn btn-green }}|<!--
+
--><div class="box"><h2>Your verdict :</h2>{{#vardefine:@verdict|{{#ask:[[Class::Verdict]][[Case ID::{{{Case ID|}}}]][[User::{{{User|}}}]]|link=none}} }}{{#if:{{#var:@verdict}}|{{verdict results|Verdict={{#var:@verdict}} }}<br>{{#widget:link|type=a|href={{fullurl:{{#var:@verdict}}|Participant={{FULLPAGENAME}} }}|text=Edit verdict|class=btn btn-green }}|<!--
 
--><wsform action="addToWiki">{{#ifeq:{{{Role|}}}|Juror|{{#vardefine:@verdictdate|{{#show:{{{Workflow}}}|?Suit date|link=none}} }} {{#if:{{#var:@verdictdate}}|Create your Verdict before {{#var:@verdictdate}} }}<br>  }}  
 
--><wsform action="addToWiki">{{#ifeq:{{{Role|}}}|Juror|{{#vardefine:@verdictdate|{{#show:{{{Workflow}}}|?Suit date|link=none}} }} {{#if:{{#var:@verdictdate}}|Create your Verdict before {{#var:@verdictdate}} }}<br>  }}  
 
<wscreate mwwrite="Verdict:{{{Case ID|}}}/" mwtemplate="Verdict" mwoption="range:00001-99999"  mwfollow/>
 
<wscreate mwwrite="Verdict:{{{Case ID|}}}/" mwtemplate="Verdict" mwoption="range:00001-99999"  mwfollow/>
Line 254: Line 276:
 
<wsfield type="hidden" name="Participant" value="{{FULLPAGENAME}}" />
 
<wsfield type="hidden" name="Participant" value="{{FULLPAGENAME}}" />
 
<wsfield type="submit" value="Create verdict" class="btn btn-green"/>
 
<wsfield type="submit" value="Create verdict" class="btn btn-green"/>
</wsform>}}</div><div class="col-12 col-lg-4"><!--
+
</wsform>}}</div></div><div class="col-12 col-lg-4"><!--
 
-->{{#vardefine:@meetingdate|{{#show:{{{Workflow}}}|?Meeting date}} }}{{#if:{{#var:@meetingdate}}|<div class="info-box"><h2>Online meeting</h2>A online meeting with all the participants on this case is planned on <h2>{{#time:d-M-Y|{{#var:@meetingdate}} }}</h2> [[file:zoom.png|150px|link=]]</div>}}
 
-->{{#vardefine:@meetingdate|{{#show:{{{Workflow}}}|?Meeting date}} }}{{#if:{{#var:@meetingdate}}|<div class="info-box"><h2>Online meeting</h2>A online meeting with all the participants on this case is planned on <h2>{{#time:d-M-Y|{{#var:@meetingdate}} }}</h2> [[file:zoom.png|150px|link=]]</div>}}
 
<!--
 
<!--

Revision as of 14:07, 27 May 2020


This is the Participant template. It should be called in the following format:

{{Participant
|User=
|Workflow=
|Case ID=
|Role=
}}