Difference between revisions of "Template:Suit"

From cm2.liecourt.com
(Fill database)
Line 230: Line 230:
 
}}
 
}}
  
<br></div></div><div class="col-12 col-lg-4"><!-- #ask: Class::Participant Workflow::{{{Workflow|}}} User::{{CURRENTLOGGEDUSER}} link=none-->{{#if:{{#vardefineecho:@participantpage|{{#ask:[[Class::Participant]] [[Workflow::{{{Workflow|}}}]] [[User::{{CURRENTLOGGEDUSER}}]]|link=none}} }}|<!--
+
<br></div></div><div class="col-12 col-lg-4">{{#if:{{CURRENTLOGGEDUSER}}|{{#if:{{#vardefineecho:@participantpage|{{#ask:[[Class::Participant]][[Workflow::{{{Workflow|}}}]][[User::User:{{CURRENTLOGGEDUSER}}]]|link=none}} }}|<!--
-->{{#vardefine:@participantrole|{{#show:{{#var:@participantrole}}|?Role}} }}<div class="info-box ">
+
-->{{#vardefine:@participantrole|{{#show:{{#var:@participantpage}}|?Role|link=none}} }}<div class="info-box ">
<h2>{{#switch:{{#var:@participantrole}}|Juror={{Fa|balance-scale}}|Judge={{Fa|gavel}} }}</h2>
+
<h2>{{#switch:{{#var:@participantrole}}|Juror={{Fa|balance-scale}}|Judge={{Fa|gavel}}|Plaintiff={{fa|book}} }}</h2>
<div ><b>[[{{#var:@participantpage}}|View]]</div>
+
<div ><b>[[{{#var:@participantpage}}|Your participant page]]</b></div>
</div>}}<!--
+
</div>}} }}<!--
  
 
--><div class="info-box ">
 
--><div class="info-box ">
 
<h2>Docket</h2>
 
<h2>Docket</h2>
<div ><b>Settlement date</b><br>{{#time:d M Y|{{{Suit date}}} }}</div>
+
<div ><b>Settlement date</b><br>{{#if:{{{Suit date}}}|{{#time:d M Y|{{{Suit date}}} }} }}</div>
 
<div ><b>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
 
<div ><b>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
 
</div></div></div>
 
</div></div></div>
Line 277: Line 277:
 
}}<!--
 
}}<!--
 
--><div class="row">
 
--><div class="row">
<div class="col-5">
+
<div class="col-lg-8 col-12">
 
<h2>The Lie</h2>
 
<h2>The Lie</h2>
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=4-8
 
|1=<b>Lie topic</b>
 
|1=<b>Lie topic</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
}}
 
}}
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=4-8
 
|1=<b>Description</b>
 
|1=<b>Description</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
}}<!--  
 
}}<!--  
  -->{{Item responsive |Cols=6-6
+
  -->{{Item responsive |Cols=4-8
 
|1=<b>Marked-up Truth and Lies </b>
 
|1=<b>Marked-up Truth and Lies </b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
}}
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=4-8
 
|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::{{#explode:{{#var:@workflow}}|<PROP>|2}}]]|?=|?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::{{#explode:{{#var:@workflow}}|<PROP>|2}}]]|?=|?Modification date|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment  |text={{fa|image}} }}<!--
Line 307: Line 307:
 
}}
 
}}
 
</div>
 
</div>
<div class="col-1">
+
<div class="col-1 d-none d-lg-block">
 
</div>
 
</div>
<div class="col-6">
+
<div class="col-12 col-lg-3">
 
<h2>Lie locations</h2>
 
<h2>Lie locations</h2>
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=2-10
|1=
+
|1=<b>{{fa|external-link-alt}}</b>
 
|2={{#widget:link|href=http:@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}
 
|2={{#widget:link|href=http:@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}
 
}}
 
}}
Line 342: Line 342:
 
|
 
|
 
<div class="row">
 
<div class="row">
<div class="col-5">
+
<div class="col-12 col-lg-8">
 
<h2>The Lie</h2>
 
<h2>The Lie</h2>
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=4-8
 
|1=<b>Lie topic</b>
 
|1=<b>Lie topic</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
}}
 
}}
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=4-8
 
|1=<b>Description</b>
 
|1=<b>Description</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
}}<!--  
 
}}<!--  
  -->{{Item responsive |Cols=6-6
+
  -->{{Item responsive |Cols=4-8
 
|1=<b>Marked-up Truth and Lies </b>
 
|1=<b>Marked-up Truth and Lies </b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
}}
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=4-8
 
|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 372: Line 372:
 
}}
 
}}
 
</div>
 
</div>
<div class="col-1">
+
<div class="col-1 d-none d-lg-block">
 
</div>
 
</div>
<div class="col-6">
+
<div class="col-12 col-lg-3">
 
<h2>Lie locations</h2>
 
<h2>Lie locations</h2>
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@|
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|2}}|,|@@@|
{{Item responsive |Cols=6-6
+
{{Item responsive |Cols=2-10
|1=
+
|1=<b>{{fa|external-link-alt}}</b>
 
|2={{#widget:link|href=http:@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}
 
|2={{#widget:link|href=http:@@@|text={{#regex:@@@|/^(?:https?:\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^:\/?\n]+)(.+)/|$1}}|type=a}}
 
}}
 
}}

Revision as of 08:31, 20 May 2020


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

{{Suit
|Case ID=
|Title=
|Workflow=
}}