Difference between revisions of "Template:Workflow"
From cm2.liecourt.com
(Fill database) |
|||
Line 121: | Line 121: | ||
{{#arraymap:{{#arrayprint:$judges}}|,|__JUDGE__|{{#tag:wsfield|{{PAGENAME:__JUDGE__}}|type=option|value=__JUDGE__|selected={{#if:{{#arraysearch:$judges-selected|__JUDGE__}}|selected}} }}|}} | {{#arraymap:{{#arrayprint:$judges}}|,|__JUDGE__|{{#tag:wsfield|{{PAGENAME:__JUDGE__}}|type=option|value=__JUDGE__|selected={{#if:{{#arraysearch:$judges-selected|__JUDGE__}}|selected}} }}|}} | ||
</wstoken> | </wstoken> | ||
− | <wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | + | <wsfield type="submit" class="btn btn-green" value="Save" onclick="this.classList.add('pending');" /></wsform>}} |
}} | }} | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Number of Jurors needed</b> | |1=<b>Number of Jurors needed</b> | ||
− | |2=<wsform action="addToWiki">{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Juror amount}}<wsfield type="number" name="Juror amount" value="{{{Juror amount|}}}" /><wsfield type="submit" value="Save" /></wsform> | + | |2=<wsform action="addToWiki">{{#tag:wsedit||target={{PAGEID}}|template=Workflow|formfield=Juror amount}}<wsfield type="number" name="Juror amount" value="{{{Juror amount|}}}" /><wsfield type="submit" value="Save" onclick="this.classList.add('pending');" /></wsform> |
}} | }} | ||
Line 146: | Line 146: | ||
<wstoken id="tokener2" name="Random juror[]" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" > | <wstoken id="tokener2" name="Random juror[]" multiple="multiple" placeholder="Type a minimal of 3 characters" class="form-control" > | ||
{{#arraymap:{{#arrayprint:$jurors}}|,|__JUROR__|{{#tag:wsfield|{{PAGENAME:__JUROR__}}|type=option|value=__JUROR__|selected={{#if:{{#arraysearch:$jurors-selected|__JUROR__}}|selected}} }}|}} | {{#arraymap:{{#arrayprint:$jurors}}|,|__JUROR__|{{#tag:wsfield|{{PAGENAME:__JUROR__}}|type=option|value=__JUROR__|selected={{#if:{{#arraysearch:$jurors-selected|__JUROR__}}|selected}} }}|}} | ||
− | </wstoken><wsfield type="submit" class="btn btn-green" value="Save" /></wsform>}} | + | </wstoken><wsfield type="submit" class="btn btn-green" value="Save" onclick="this.classList.add('pending');" /></wsform>}} |
Revision as of 07:49, 5 May 2022
This is the Workflow template. It should be called in the following format:
{{Workflow |Case ID= |Type= |Stage= |Filed by= |Lie= |Topic= |Description= |Lies= |Facts= |Locations= |Judge= |Juror amount= |Jurors= |Suit date= |Plaintiff verdict= |Reason for judge decline= |Random judge= |Random juror= |Declined judge= |Declined juror= }}