Difference between revisions of "Template:Participant"

From cm2.liecourt.com
(Fill database)
 
(Fill database)
Line 88: Line 88:
 
|2=<div class="lie-input">{{#show:{{{Workflow}}}|?Markup|Link=none }}</div>
 
|2=<div class="lie-input">{{#show:{{{Workflow}}}|?Markup|Link=none }}</div>
 
}}<!--
 
}}<!--
 +
 +
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Lie locations</b>
 +
|2={{#arraymap:{{#show:{{{Workflow|}}}|?Locations}}|,|@@@|
 +
{{#widget:link|href=http:@@@|text=@@@|type=a}} |<br>}}
 +
}}<!--
 +
 +
-->{{Item responsive |Cols=6-6
 +
|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}} }}<!--
 +
 +
-->{{Modal
 +
|Targetid=image-modal-{{#var:@counter}}
 +
|Dialog class=image-modal
 +
|ModalHeading=Image
 +
|BodyText=[[{{#explode:@@@|<PROP>|0}}]]Uploaded on: {{#explode:@@@|<PROP>|1}}
 +
|FooterText={{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=btn btn-submit  |text=close}}
 +
|Hide link=Yes
 +
}}<!--
 +
-->|}} }}<!--
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Verdicts:</b>
 
|1=<b>Verdicts:</b>
Line 132: Line 152:
 
{{#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=Change|value=yes }}
 +
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Change seen by|value=none }}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }}
 
{{#tag:wsedit||target={{PAGEID:{{{Workflow}}} }}|template=Workflow|formfield=Suit date }}
 
{{#ifeq:{{#show:{{{Workflow}}}|?Jurors|link=none}}|done|
 
{{#ifeq:{{#show:{{{Workflow}}}|?Jurors|link=none}}|done|
Line 168: Line 190:
 
<h2>Chat</h2>
 
<h2>Chat</h2>
 
{{#arraymap:{{#ask:[[Class::Chat]][[Workflow::{{{Workflow|}}}]]|?Message|?Role|?User|?Modification date|format=array|sort=Modification date}}|,|@@@|  
 
{{#arraymap:{{#ask:[[Class::Chat]][[Workflow::{{{Workflow|}}}]]|?Message|?Role|?User|?Modification date|format=array|sort=Modification date}}|,|@@@|  
<div class="chat {{#ifeq:{{#explode:@@@|<PROP>|3}}|{{{User|}}}|me}} "><h3>{{#explode:@@@|<PROP>|2}}</h3>{{#explode:@@@|<PROP>|1}}<h4>{{#explode:@@@|<PROP>|4}}</h4></div>
+
<div class="chat {{#ifeq:{{#explode:@@@|<PROP>|3}}|{{{User|}}}|me}} "><div class="d-flex"><h3>{{#explode:@@@|<PROP>|2}}</h3><h4 class="pl-2">{{#explode:@@@|<PROP>|4}}</h4></div>{{#explode:@@@|<PROP>|1}}</div>
 
|}}
 
|}}
  

Revision as of 14:45, 15 May 2020


This is the Participant template. It should be called in the following format:

{{Participant
|User=
|Workflow=
|Case ID=
|Role=
}}