Difference between revisions of "Template:Suit"

From cm2.liecourt.com
(Fill database)
(Fill database)
Line 211: Line 211:
 
{{#vardefine:@type|{{#show:{{{Workflow|}}}|?Type|link=none}} }}
 
{{#vardefine:@type|{{#show:{{{Workflow|}}}|?Type|link=none}} }}
  
<div class="row"><div class="col-12 col-lg-8">{{#tag:html|<h1><span>{{{Title|}}}</span><!--<span>{{#widget:link|text=Suit history|href=#|type=a|class=btn-green}}</span>--></h1>}}
+
{{#tag:html|<h1><span>{{{Title|}}}</span><!--<span>{{#widget:link|text=Suit history|href=#|type=a|class=btn-green}}</span>--></h1>}}
 
<div class="suit-info">{{Item responsive |Cols={{#var:@cols|4-8}}
 
<div class="suit-info">{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Case ID</b>
 
|1=<b>Case ID</b>
 
|2={{{Case ID|}}}
 
|2={{{Case ID|}}}
 
}}
 
}}
 
+
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Lie</b>
 +
|2=49dbe5ae-1ab8-11ea-9f27-005056020700
 +
}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Type</b>
 
|1=<b>Type</b>
Line 223: Line 226:
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Status</b>
 
|1=<b>Status</b>
|2={{#vardefine:@workflow|{{#ask:[[{{{Workflow|}}}]]|?Stage|?Locations|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|format=array|link=none}} }}{{#explode:{{#var:@workflow}}|<PROP>|1}}
+
|2={{#vardefine:@workflow|{{#ask:[[{{{Workflow|}}}]]|?Stage|?Locations|?Topic|?Filed by|?Jurors|format=array|link=none}} }}{{#explode:{{#var:@workflow}}|<PROP>|1}}
 +
}}
 +
{{Item responsive |Cols={{#var:@cols|4-8}}
 +
|1=<b>Settlement date</b>
 +
|2=2020-6-4
 
}}
 
}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
 
{{Item responsive |Cols={{#var:@cols|4-8}}
Line 229: Line 236:
 
|2={{#arraydefine:@jurors|{{#explode:{{#var:@workflow}}|<PROP>|5}} }}{{#arraysize:@jurors}}
 
|2={{#arraydefine:@jurors|{{#explode:{{#var:@workflow}}|<PROP>|5}} }}{{#arraysize:@jurors}}
 
}}
 
}}
 
+
<!--{{Item responsive |Cols={{#var:@cols|4-8}}
<br></div></div><div class="col-12 col-lg-4"><div class="info-box ">
+
|1=<b>Plaintiff ID</b>
<h2>Docket</h2>
+
|2={{#explode:{{#var:@workflow}}|<PROP>|4}}
<div ><b>Settlement date</b><br>{{#time:d M Y|{{{Suit date}}} }}</div>
+
}}-->
<div ><b>Jurors needed</b><br>{{#explode:{{#var:@workflow}}|<PROP>|6}}</div>
+
<br>
</div></div></div>
 
 
{{#ifeq:{{#var:@type}}|Class|
 
{{#ifeq:{{#var:@type}}|Class|
{{#arraydefine:@cases|{{#show:{{{Workflow|}}}|?Class case IDs|link=none}} }}<!--
+
{{#arraydefine:@cases|{{#show:{{{Workflow|}}}|?Class case IDs|link=none}} }}
--><h1>Class information</h1>{{#tag:html|<details>
 
<summary>Settlement Records</summary>
 
}}<br><!--
 
  --><ul class="nav nav-tabs"><!--
 
    --><li class="active nav-item">{{#widget:link|datatoggle=pill|href=#mainid|text=Verdicts|type=a|class=nav-link active}}</li>
 
{{#arraymap:{{#ask:[[Class::Verdict]][[Case ID::{{{Case ID|}}}]][[Context::!None]]|?Context|format=array|link=none}}|,|@@@|<li>{{#widget:link|datatoggle=pill|href=#{{#replace:{{#explode:@@@|<PROP>|1}}| |_}}|text={{#explode:@@@|<PROP>|1}}|type=a|class=nav-link}}</li> |}}
 
  </ul><!--
 
 
 
--><div class="tab-content"><!--
 
    --><div id="mainid" class="tab-pane  active"><!--
 
      -->{{verdict results|id={{{Case ID|}}} }}<!--
 
    --></div><!--
 
-->{{#arraymap:{{#ask:[[Class::Verdict]][[Case ID::{{{Case ID|}}}]][[Context::!None]]|?Context|format=array|link=none}}|,|@@@|<div id="{{#explode:@@@|<PROP>|1}}" class="tab-pane fade"><!--
 
      -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
    --></div>|}}<!--
 
--></div>{{#tag:html|</details>}}
 
 
<h1>Cases</h1>
 
<h1>Cases</h1>
 
<h2>This Class suit contains {{#arraysize:@cases}} cases</h2>
 
<h2>This Class suit contains {{#arraysize:@cases}} cases</h2>
Line 265: Line 255:
 
{{#arraymap:{{#arrayprint:@cases}}|,|@@@|<!--
 
{{#arraymap:{{#arrayprint:@cases}}|,|@@@|<!--
 
--><div id="cases-{{#var:@casecounter2}}" class="tab-pane  {{#ifeq:{{#var:@casecounter2}}|0|active}}"><!--
 
--><div id="cases-{{#var:@casecounter2}}" class="tab-pane  {{#ifeq:{{#var:@casecounter2}}|0|active}}"><!--
-->{{#vardefine:@workflow|{{#ask:[[@@@]]|?Lie|?Case ID|?Topic|?Filed by|?Jurors|?Juror amount|?Description|?Markup|?Locations|format=array|link=none}} }}<!--
+
-->{{#vardefine:@workflow|{{#ask:[[@@@]]|?Lie|?Case ID|format=array|link=none}} }}<!--
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
-->{{Item responsive |Cols={{#var:@cols|4-8}}
 
|1=<b>Lie</b>
 
|1=<b>Lie</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|1}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|1}}
}}<!--
 
--><div class="row">
 
<div class="col-5">
 
<h2>The Lie</h2>
 
{{Item responsive |Cols=6-6
 
|1=<b>Lie topic</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
}}
 
{{Item responsive |Cols=6-6
 
|1=<b>Description</b>
 
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
 
}}<!--
 
-->{{Item responsive |Cols=6-6
 
|1=<b>Marked-up Truth and Lies </b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
{{Item responsive |Cols=6-6
 
|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}} }}<!--
 
 
-->{{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
 
 
}}<!--
 
}}<!--
  
-->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1}} }} |}}
 
}}
 
</div>
 
<div class="col-1">
 
</div>
 
<div class="col-6">
 
<h2>Lie locations</h2>
 
{{#arraymap:{{#explode:{{#var:@workflow}}|<PROP>|9}}|,|@@@|
 
{{Item responsive |Cols=6-6
 
|1=<b>{{#explode:@@@|.|0}}</b>
 
|2={{#widget:link|href=http://@@@|text=@@@|type=a}}
 
}}
 
|}}
 
</div>
 
</div>
 
<!--
 
 
--><br>{{#tag:html|<details>
 
--><br>{{#tag:html|<details>
 
<summary>Settlement Records</summary>
 
<summary>Settlement Records</summary>
Line 342: Line 289:
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
|2={{#explode:{{#var:@workflow}}|<PROP>|3}}
 
}}
 
}}
{{Item responsive |Cols=6-6
+
<!--{{Item responsive |Cols=6-6
|1=<b>Description</b>
+
|1=<b>Liar</b>
|2={{#explode:{{#var:@workflow}}|<PROP>|7}}
+
|2=Darla Shine@DarlaShine
}}<!--  
+
}}-->
-->{{Item responsive |Cols=6-6
 
|1=<b>Marked-up Truth and Lies </b>
 
|2=<div class="lie-input">{{#explode:{{#var:@workflow}}|<PROP>|8}}</div>
 
}}
 
 
{{Item responsive |Cols=6-6
 
{{Item responsive |Cols=6-6
 
|1=<b>Evidence of lie appearance</b>
 
|1=<b>Evidence of lie appearance</b>
Line 394: Line 337:
 
       -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
       -->{{verdict results|id={{{Case ID|}}}|Context={{#explode:@@@|<PROP>|1}}}}<!--
 
     --></div>|}}<!--
 
     --></div>|}}<!--
--></div>{{#tag:html|</details>}}<!--
+
--></div>{{#tag:html|</details>}}}}<!-- end if class
-->}}<!-- end if class
 
  
 
-->}}<!--
 
-->}}<!--
 
-->{{DISPLAYTITLE:{{{Title|}}} {{#ifeq:{{#var:@type}}|Class|(Class)}} }}  
 
-->{{DISPLAYTITLE:{{{Title|}}} {{#ifeq:{{#var:@type}}|Class|(Class)}} }}  
 
</includeonly>
 
</includeonly>

Revision as of 13:36, 18 May 2020


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

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