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> | ||
| − | + | <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> | ||
| − | + | <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=
}}