Difference between revisions of "Template:Participant"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 22: | Line 22: | ||
{{#ifeq:{{#var:@allowed}}|Yes|<!-- | {{#ifeq:{{#var:@allowed}}|Yes|<!-- | ||
--><div class="row mt-4"> | --><div class="row mt-4"> | ||
− | <div class="col-12 col-lg-8 mt-4"><h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }} {{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }}</h1> | + | <div class="col-12 col-lg-8 mt-4"><h1>{{#switch:{{{Role|}}}|Judge={{fa|gavel}}|Plaintiff={{fa|book}}|Juror={{fa|balance-scale}} }} {{#if:{{{Name|}}}|{{{Name|}}}|{{{Role|}}} }} - {{#ask:[[Class::Suit]][[Workflow::{{{Workflow|}}}]]}}</h1> |
<!-- | <!-- | ||
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#if:{{#var:@judge}}|<!-- | -->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#if:{{#var:@judge}}|<!-- | ||
Line 133: | Line 133: | ||
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Juror amount }} | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Juror amount }} | ||
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }} | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }} | ||
+ | {{#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=4|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=4|format=array|order=random}} }}</div><!-- | ||
Line 141: | Line 142: | ||
{{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}} | + | |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 settlement</b> | ||
+ | |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="button" onclick="setJurors()" class="btn btn-green mb-4" >Create docket</wsfield> | ||
Line 167: | Line 173: | ||
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Change|value=yes }} | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Change|value=yes }} | ||
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Change seen by|value=none }} | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Change seen by|value=none }} | ||
+ | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Settlement date }} | ||
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }}<!-- | {{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }}<!-- | ||
--><div id="jurrors" class="d-none">{{#vardefine:@wf|{{#ask:[[{{{Workflow}}}]]|?Random juror|?Declined juror|?Jurors|?Filed by|link=none|format=array}} }}{{#arraymap:{{#explode:{{#var:@wf}}|<PROP>|1}}|<MANY>|@@@|@@@|,}}</div> | --><div id="jurrors" class="d-none">{{#vardefine:@wf|{{#ask:[[{{{Workflow}}}]]|?Random juror|?Declined juror|?Jurors|?Filed by|link=none|format=array}} }}{{#arraymap:{{#explode:{{#var:@wf}}|<PROP>|1}}|<MANY>|@@@|@@@|,}}</div> | ||
Line 178: | Line 185: | ||
|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 }}}} | ||
− | }} | + | }}<!-- |
− | <wsfield type="button" onclick="changeJurors()" class="btn btn-green mb-4" >Change suit</wsfield> | + | -->{{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"/> | <wsfield type="submit" value="Change suit" id="change-suit" class="btn btn-green mb-4 d-none"/> | ||
{{#tag:html|<script> | {{#tag:html|<script> |
Revision as of 11:29, 20 May 2020
This is the Participant template. It should be called in the following format:
{{Participant |User= |Workflow= |Case ID= |Role= }}