Difference between revisions of "Template:Participant"
From cm2.liecourt.com
(Fill database) |
|||
Line 142: | Line 142: | ||
|action=addToWiki}}</div>}} |}} | |action=addToWiki}}</div>}} |}} | ||
}}<!-- | }}<!-- | ||
− | -->{{# | + | -->{{#vardefine:@tokenstats|<nowiki>{{subst:#ttaward:</nowiki>{{PAGENAME:{{#show:{{{Workflow}}}|?Filed by|link=none}} }}<nowiki>}}</nowiki>}} |
− | + | {{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted| | |
− | + | <wsform action="addToWiki" > | |
− | + | <wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" /> | |
− | + | <wsfield type="hidden" name="Title" value="{{#show:{{{Workflow|}}}|?Lie|link=none}}" /> | |
− | < | ||
− | <wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999 | ||
− | <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="vbvbv" 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}}} }}|template=Workflow|formfield=Stage|value=Needs jurors}} | + | {{#tag:wsedit||target={{PAGEID:{{{Workflow|}}} }}|template=Workflow|formfield=Stage|value=Needs jurors}} |
− | {{#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 }} | + | {{#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 177: | Line 174: | ||
|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> | + | -->{{#ifeq:{{PAGENAME:{{#show:{{{Workflow}}}|?Filed by|link=none}} }}|{{CURRENTLOGGEDUSER}}|<wsfield type="button" disabled="disabled" class="btn btn-green mb-4" >Cannot create docket. You're the plaintiff.</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 16:25, 27 May 2020
This is the Participant template. It should be called in the following format:
{{Participant |User= |Workflow= |Case ID= |Role= }}