Difference between revisions of "Template:Participant"
From cm2.liecourt.com
(Fill database) |
(Fill database) |
||
Line 90: | Line 90: | ||
-->{{Item responsive |Cols={{#var:@cols|4-8}} | -->{{Item responsive |Cols={{#var:@cols|4-8}} | ||
− | |1=<b>Lie locations</b> | + | |1=<b>Lie locations:</b> |
|2={{#arraymap:{{#show:{{{Workflow|}}}|?Locations}}|,|@@@| | |2={{#arraymap:{{#show:{{{Workflow|}}}|?Locations}}|,|@@@| | ||
{{#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>}} | ||
Line 96: | Line 96: | ||
-->{{Item responsive |Cols=6-6 | -->{{Item responsive |Cols=6-6 | ||
− | |1=<b>Evidence of lie appearance</b> | + | |1=<b>Evidence of lie appearance:</b> |
|2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{{Case ID|}}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{{Case ID|}}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{fa|image}} }}<!-- | ||
Line 122: | Line 122: | ||
-->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge| | -->{{#ifeq:{{#show:{{{Workflow}}}|?Stage }}|Settled|| {{#ifeq:{{{Role|}}}|Judge| | ||
− | {{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted| | + | {{Item responsive |Cols={{#var:@cols|4-8}} |
+ | |1=<b>Jurors:</b> | ||
+ | |2={{#vardefine:@countjur|0}}{{#arraymap:{{#ask:[[Class::Participant]][[Workflow::{{{Workflow|}}}]][[Role::Juror]]|?Role|?Name|format=array|link=none}}|,|@@@|{{#if:{{#explode:@@@|<PROP>|2}}|<div class="btn btn-green btn-square">{{#explode:@@@|<PROP>|2}}<br><small>Accepted</small></div>|<div class="btn btn-green btn-square">{{#explode:@@@|<PROP>|1}}<br><small>Accepted</small></div>}}{{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}|}}<!-- | ||
+ | -->{{#arraymap:{{#explode:{{#ask:[[{{{Workflow|}}}]]|?Random juror|format=array|link=none}}|<PROP>|1}}|<MANY>|@@@|<div class="btn btn-gray btn-square">Juror {{#vardefine:@countjur|{{#expr:{{#var:@countjur}} + 1}} }}{{#var:@countjur}}<br><small>Invited 1 day ago</small></div> |}} | ||
+ | }}<!-- | ||
+ | -->{{#ifeq:{{#show:{{{Workflow}}}|?Stage|link=none}}|Judge accepted| | ||
<wsform action="addToWiki"> | <wsform action="addToWiki"> | ||
<wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" mwfollow/> | <wscreate mwwrite="Suit/" mwtemplate="Suit" mwoption="range:00001-99999" mwfollow/> | ||
Line 243: | Line 248: | ||
--><div class="info-box"> | --><div class="info-box"> | ||
− | <h2>Chat</h2><!-- | + | <h2>Chat</h2>Talk with other participants on this case<hr><!-- |
-->{{#arraydefine:@chat|{{#ask:[[Class::Chat]][[Workflow::{{{Workflow|}}}]]|?Message|?Role|?User|?Modification date|?Name|format=array|limit=10|sort=Modification date|order=desc}} }}{{#arraysort:@chat|reverse}}<!-- | -->{{#arraydefine:@chat|{{#ask:[[Class::Chat]][[Workflow::{{{Workflow|}}}]]|?Message|?Role|?User|?Modification date|?Name|format=array|limit=10|sort=Modification date|order=desc}} }}{{#arraysort:@chat|reverse}}<!-- | ||
-->{{#ifexpr:{{#arraysize:@chat}} > 9 |<span class="btn btn-green pt-1 pb-1 pr-4 pl-4">{{fa|history}} Load older</span><hr>}}<!-- | -->{{#ifexpr:{{#arraysize:@chat}} > 9 |<span class="btn btn-green pt-1 pb-1 pr-4 pl-4">{{fa|history}} Load older</span><hr>}}<!-- |
Revision as of 08:31, 22 May 2020
This is the Participant template. It should be called in the following format:
{{Participant |User= |Workflow= |Case ID= |Role= }}