Difference between revisions of "Template:Participant"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 87: Line 87:
 
{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}} |<br>}}
 
{{#widget:link|href=@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}} |<br>}}
 
}}<!--
 
}}<!--
 +
 +
-->{{#vardefine:@meeting|{{#show:{{{Workflow}}}|?Meeting|link=none }} }}<!--
 +
 +
-->{{#if:{{#var:@meeting}}|{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Meeting link</b>
 +
|2=[{{#var:@meeting}} Meeting]
 +
}} }}<!--
 +
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Suit date</b>
 +
|2={{#show:{{{Workflow}}}|?Slot|link=none }}
 +
}} <!--
  
 
-->{{Item responsive |Cols=6-6
 
-->{{Item responsive |Cols=6-6
Line 113: Line 125:
 
|}}</div>
 
|}}</div>
 
<!--
 
<!--
 +
 +
--> {{#ifeq:{{{Role|}}}|Plaintiff|{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Needs judge|
 +
{{#vardefine:@randomjudge|{{#ask:[[User group::icol-user]][[Class::Member]][[Role::Judge]][[!{{{User|{{CURRENTLOGGEDUSER}} }}}]] [[Online since::>{{#time: r | now - 1 hour}}]]
 +
|Limit=1
 +
|format=array
 +
|order=random
 +
|default={{#ask:[[User group::icol-user]][[Class::Member]][[Role::Judge]][[!{{{User|{{CURRENTLOGGEDUSER}} }}}]]|Limit=1|format=array|order=random}} }} }}
 +
{{#tag:wsform|<h2>Invite a Judge</h2>
 +
  {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Stage|value=Needs judge}}
 +
{{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Random judge|value={{#var:@randomjudge}} }}
 +
  {{#tag:wsfield||type=submit|class=btn btn-green|value=Invite Judge}}
 +
  |action=addToWiki|mwreturn={{fullurl:{{FULLPAGENAME}} }} }}
 +
}} }}<!--
  
 
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge|<div class="box"><h2>Case settings</h2>
 
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge|<div class="box"><h2>Case settings</h2>
Line 156: Line 181:
 
|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}}
 
}}<small class="text-muted">Set the number of Jurors you are requesting</small>
 
}}<small class="text-muted">Set the number of Jurors you are requesting</small>
{{Item responsive |Cols={{#var:@cols|4-8}}
+
<div class="clear-both"></div><!--  
|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}}}}
 
}}<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={{#time:Y-m-d|now + 1 weeks}} }}
 
}}<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}}
 
|1=<b>Date for the suit</b>
 
|2={{#tag:wsfield||type=date|name=Suit date|class=form-control|value={{#time:Y-m-d|now}} }}
 
}}<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><!--
 
--><div class="clear-both"></div><!--  
 
 
--><!--
 
--><!--
  
Line 207: Line 220:
 
|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>
 
}}<small class="text-muted">Set the number of Jurors you are requesting</small>
{{Item responsive |Cols={{#var:@cols|4-8}}
+
<div class="clear-both"></div><!--  
|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}}
 
|1=<b>Date for the suit</b>
 
|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><!--
 
--><div class="clear-both"></div><!--  
 
 
--><wsfield type="button" onclick="changeJurors()" class="btn btn-green mb-4 mt-4 float-left" >Change suit</wsfield>
 
--><wsfield type="button" onclick="changeJurors()" class="btn btn-green mb-4 mt-4 float-left" >Change suit</wsfield>
 
<wsfield type="submit" value="Change suit" id="change-suit" class="btn btn-green mb-4 d-none "/>
 
<wsfield type="submit" value="Change suit" id="change-suit" class="btn btn-green mb-4 d-none "/>

Revision as of 08:43, 22 November 2021


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

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