Difference between revisions of "Template:Suit"
From cm2.liecourt.com
(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 | + | <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>}} |
<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> | ||
Line 227: | Line 227: | ||
{{Item responsive |Cols={{#var:@cols|4-8}} | {{Item responsive |Cols={{#var:@cols|4-8}} | ||
|1=<b>Number of Jurors</b> | |1=<b>Number of Jurors</b> | ||
− | |2={{#arraydefine:@jurors|{{#explode:{{#var:@workflow}}|<PROP>|5}} | + | |2={{#arraydefine:@jurors|{{#explode:{{#var:@workflow}}|<PROP>|5}} }}{{#arraysize:@jurors}} / {{#explode:{{#var:@workflow}}|<PROP>|6}} accepted |
}} | }} | ||
− | <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}} }}|<!-- | + | <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:@participantpage}}|?Role|link=none}} }}<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}}|Plaintiff={{fa|book}} }}</h2> | <h2>{{#switch:{{#var:@participantrole}}|Juror={{Fa|balance-scale}}|Judge={{Fa|gavel}}|Plaintiff={{fa|book}} }}</h2> | ||
Line 251: | Line 251: | ||
{{#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>{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{{Workflow|}}}]][[Role::Judge]]}}|{{#tag:html|<details | + | --><h1>Class information</h1>{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{{Workflow|}}}]][[Role::Judge]]}}|{{#tag:html|<details> |
<summary>Settlement Records</summary> | <summary>Settlement Records</summary> | ||
}}<br><!-- | }}<br><!-- | ||
Line 285: | Line 285: | ||
}}<!-- | }}<!-- | ||
--><div class="row"> | --><div class="row"> | ||
− | <div class="col-lg-8 col-12 | + | <div class="col-lg-8 col-12"> |
<h2>The Case</h2> | <h2>The Case</h2> | ||
{{Item responsive |Cols=4-8 | {{Item responsive |Cols=4-8 | ||
Line 305: | Line 305: | ||
{{Item responsive |Cols=4-8 | {{Item responsive |Cols=4-8 | ||
|1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} | |1=<b>Evidence of lie appearance:</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} | ||
− | |2={{#vardefine:@counter|0}} | + | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!-- |
-->{{Modal | -->{{Modal | ||
Line 316: | Line 316: | ||
}}<!-- | }}<!-- | ||
− | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1 | + | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1}} }} |}} |
}} | }} | ||
</div> | </div> | ||
− | <div class="col- | + | <div class="col-1 d-none d-lg-block"> |
− | <div class=" | + | </div> |
+ | <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}}|,|@@@| | ||
Line 328: | Line 329: | ||
}} | }} | ||
|}} | |}} | ||
− | |||
</div> | </div> | ||
</div> | </div> | ||
<!-- | <!-- | ||
− | --><br>{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{#explode:{{#var:@workflow}}|<PROP>|0}}]][[Role::Judge]]}}|{{#tag:html|<details> | + | --><br>hoi{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{#explode:{{#var:@workflow}}|<PROP>|0}}]][[Role::Judge]]}}|{{#tag:html|<details> |
<summary>Settlement Records</summary> | <summary>Settlement Records</summary> | ||
}}<br><!-- | }}<br><!-- | ||
Line 354: | Line 354: | ||
| | | | ||
<div class="row"> | <div class="row"> | ||
− | <div class="col-12 col-lg-8 | + | <div class="col-12 col-lg-8"> |
<h2>The Case</h2> | <h2>The Case</h2> | ||
{{Item responsive |Cols=4-8 | {{Item responsive |Cols=4-8 | ||
Line 374: | Line 374: | ||
{{Item responsive |Cols=4-8 | {{Item responsive |Cols=4-8 | ||
|1=<b>Evidence of lie appearance</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} | |1=<b>Evidence of lie appearance</b>{{#vardefine:@uuid|{{#show:{{{Workflow|}}}|?uuid|link=none}} }} | ||
− | |2={{#vardefine:@counter|0}} | + | |2={{#vardefine:@counter|0}}{{#arraymap:{{#ask:[[Class::Case file]][[Case file::{{#var:@uuid}}]]|?=|?Modification date|?Type|Format=array|link=none}}|,|@@@|{{#widget:link |type=a|href=#image-modal-{{#var:@counter}} |datatoggle=modal |class=attachment |text={{#ifeq:{{#explode:@@@|<PROP>|2}}|pdf|{{fa|file-pdf}}|{{fa|image}} }} }}<!-- |
-->{{Modal | -->{{Modal | ||
Line 385: | Line 385: | ||
}}<!-- | }}<!-- | ||
− | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1}} }} | | + | -->{{#vardefine:@counter|{{#expr:{{#var:@counter}} + 1}} }} |}} |
}} | }} | ||
</div> | </div> | ||
− | <div class="col- | + | <div class="col-1 d-none d-lg-block"> |
− | <div class=" | + | </div> |
+ | <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}}|,|@@@| | ||
Line 400: | Line 401: | ||
</div> | </div> | ||
</div> | </div> | ||
− | < | + | <br>{{#if:{{#ask:[[Class::Verdict]][[Workflow::{{{Workflow|}}}]][[Role::Judge]]}}|{{#tag:html|<details> |
− | |||
<summary>Settlement Records</summary> | <summary>Settlement Records</summary> | ||
}}<br><!-- | }}<br><!-- | ||
Line 416: | Line 416: | ||
-->{{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 | ||
Revision as of 15:50, 29 May 2020
This is the Suit template. It should be called in the following format:
{{Suit |Case ID= |Title= |Workflow= }}